Montly historical data throwing invalid interval exception

Kirubakaran
Hi
Getting invalid interval exception when calling the getHistoricalData()
I am passing value "month" for interval parameter.
No issues when i pass "week" for interval parameter.
below is the exception message :
[ https://api.kite.trade/instruments/historical/2672641/month?continuous=0&from=2020-05-01%2000%3A00%3A00&oi=1&to=2021-05-31%2000%3A00%3A00 ]

INFO: <-- 400 https://api.kite.trade/instruments/historical/2672641/month?continuous=0&amp;from=2020-05-01 00:00:00&amp;oi=1&amp;to=2021-05-31 00:00:00 (1691ms)
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: date: Sun, 16 May 2021 13:50:32 GMT
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: content-type: application/json
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: content-length: 89
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: cf-cache-status: DYNAMIC
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: cf-request-id: 0a170a6e4800003977019e5000000001
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: strict-transport-security: max-age=15552000; includeSubDomains
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: server: cloudflare
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: cf-ray: 6505135d3adf3977-MAA
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO:
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: {"status":"error","message":"invalid interval","data":null,"error_type":"InputException"}
May 16, 2021 7:20:32 PM okhttp3.internal.platform.Platform log
INFO: <-- END HTTP (89-byte body)
com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:54)


Thanks
Kirubakaran Damodaran
  • sujith
    You will have to aggregate and make candles at your end for month intervals using day candles.
Sign In or Register to comment.