BUG: 'Intraday Candle Data' API @ 30minutes returning data from last working day

At interval=30minutes, Intraday Candle Data API is returning one candle from last working day.

  • This issue is happening only for interval=30minute and not for interval=1minute.
  • This issue is happening for all instrument tokens (verified with 5 different instrument tokens)

Impact

  • SMA values are impacted due to a wrong entry for intraday calculations.

Sharing curl request and response below:

curl -kiX GET "https://api.upstox.com/v2/historical-candle/intraday/NSE_EQ%7CINE142M01025/30minute" \
-H'Accept: application/json' \
-H'Authorization: Bearer <token>'

HTTP/2 200 
date: Mon, 15 Jan 2024 14:36:44 GMT
content-type: application/json
vary: Origin
vary: Access-Control-Request-Method
vary: Access-Control-Request-Headers
requestid: 368774ee-2c96-4e12-a35b-f591e2008627
cdn-cache-control: public, max-age=30
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
expires: 0
strict-transport-security: max-age=0; includeSubDomains
x-frame-options: DENY
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=MC1XSsDK4M2CSTdXuUKZozzb5bXTRDreDt1dp1SIyfM-1705329404-1-AZJjR4jNwtyWAgpiIQm6Fg3dqzzxjZ/lr/pHjC4rd8c3cZty16IAp4xqiCVWncgQSvm1Pv8NSvxYxSPnkiwPvKI=; path=/; expires=Mon, 15-Jan-24 15:06:44 GMT; domain=.upstox.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=ZGvmeAO7qKWpTqmV7zyiTLMPoSsTDsNdtjcwwy3u1YI-1705329404703-0-604800000; path=/; domain=.upstox.com; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 845eda4b2a346f00-BOM

{"status":"success","data":{"candles":[["2024-01-15T15:15:00+05:30",1171.25,1173.9,1171.1,1173,60794,0],["2024-01-15T14:45:00+05:30",1173.15,1174.45,1170,1171.25,75053,0],["2024-01-15T14:15:00+05:30",1171.1,1174,1171,1173.15,18612,0],["2024-01-15T13:45:00+05:30",1173.85,1174.2,1171,1171.2,35322,0],["2024-01-15T13:15:00+05:30",1173.5,1174.45,1173.1,1174,21153,0],["2024-01-15T12:45:00+05:30",1173.1,1175,1172.65,1173.6,34911,0],["2024-01-15T12:15:00+05:30",1172.2,1174.2,1172,1173.55,34966,0],["2024-01-15T11:45:00+05:30",1171.55,1174,1170,1172.3,58119,0],["2024-01-15T11:15:00+05:30",1173.35,1173.95,1171.1,1172,34599,0],["2024-01-15T10:45:00+05:30",1173.35,1174.95,1172.95,1173.45,33698,0],["2024-01-15T10:15:00+05:30",1172.4,1175,1172,1173.55,29490,0],["2024-01-15T09:45:00+05:30",1175.05,1176.2,1169.15,1172.25,110648,0],["2024-01-15T09:15:00+05:30",1180,1184.9,1173.1,1175.05,201039,0],["2024-01-12T15:15:00+05:30",1165.6,1169.8,1165.15,1169.3,117063,0]]}}

Notice the last element in the array is from 2024-01-12T15:15:00+05:30

Please provide an ETA for this fix.

@Amit_Kumar_Sharma

Thank you for providing the information.

We are currently reviewing this and will get back to you with an answer soon.

Thanks!

Thanks @shanmu , really appreciate your attention to this issue. I am sure we are on the same page about the focus this needs :slightly_smiling_face: :wink:

Any updates on this?

@Amit_Kumar_Sharma

We’ve resolved the issue on our end. Could you please test it and let us know if everything is working well for you now?

Thank you!

Yes, it is fixed. Thank you for the prompt response @shanmu and team :+1:

curl -iX GET 'https://api.upstox.com/v2/historical-candle/intraday/BSE_EQ%7CINE737C01023/30minute'
HTTP/2 200 
date: Fri, 19 Jan 2024 09:57:24 GMT
content-type: application/json
vary: Origin
vary: Access-Control-Request-Method
vary: Access-Control-Request-Headers
requestid: fd9027b1-05c6-451e-a3f2-96db8fca407e
cdn-cache-control: public, max-age=30
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
expires: 0
strict-transport-security: max-age=0; includeSubDomains
x-frame-options: DENY
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=qqBLYAgGtXSEKWujnhmngM0Dcym20hLubQcWdHFQ6YM-1705658244-1-AcMdbwftawvQ/kUjwd/Oz1ewD4b+wSGDfNd8QBfGFMDLS1qMSaWC9EALxtKEqZeXQ0L8+yTKq5Z1KOzRBhEZsfM=; path=/; expires=Fri, 19-Jan-24 10:27:24 GMT; domain=.upstox.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=L56U64fLKnt.xTjvZb_qZ7CLERiUkZCUNLg1PQSg1Mc-1705658244745-0-604800000; path=/; domain=.upstox.com; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 847e36981bb61d99-BLR

{"status":"success","data":{"candles":[["2024-01-19T14:45:00+05:30",23.98,23.98,23.98,23.98,0,0],["2024-01-19T14:15:00+05:30",23.98,23.98,23.98,23.98,0,0],["2024-01-19T13:45:00+05:30",23.98,23.98,23.98,23.98,30,0],["2024-01-19T13:15:00+05:30",24,24,23.4,23.98,2030,0],["2024-01-19T12:45:00+05:30",23.45,23.45,23.45,23.45,10,0],["2024-01-19T12:15:00+05:30",23.97,23.97,23.97,23.97,0,0],["2024-01-19T11:45:00+05:30",23.97,23.98,23.97,23.97,608,0],["2024-01-19T11:15:00+05:30",23.11,23.97,23.11,23.97,935,0],["2024-01-19T10:45:00+05:30",23.49,23.49,23.12,23.12,1110,0],["2024-01-19T10:15:00+05:30",23.1,23.1,23.1,23.1,0,0],["2024-01-19T09:45:00+05:30",23.99,23.99,23.1,23.1,1618,0],["2024-01-19T09:15:00+05:30",23.1,24,23.1,24,76,0]]}}
1 Like