Not able to get the historical data and what is the id for Nifty50

raula_kite127
I paid the historical data subscription the service.
But when i run the examples.getHistoricalData(kiteConnect); i am getting an as well as in the response i found it was 0 candle data.

Please the console below and let me know the solution as soon as possible.

INFO: <-- 200 OK https://api.kite.trade/instruments/historical/11946498/30minute?continuous=0&from=2018-09-27 09:00:00&to=2018-09-27 12:59:12 (204ms)
Sep 28, 2018 12:03:55 PM okhttp3.internal.platform.Platform log
INFO: Date: Fri, 28 Sep 2018 06:34:04 GMT

Sep 28, 2018 12:03:55 PM okhttp3.internal.platform.Platform log
INFO: Set-Cookie: __cfduid=dfc573886f5a0cbecd1cf9e94a73bbb721538116444; expires=Sat, 28-Sep-19 06:34:04 GMT; path=/; domain=.kite.trade; HttpOnly
Sep 28, 2018 12:03:55 PM okhttp3.internal.platform.Platform log
INFO: Access-Control-Allow-Origin: *
Sep 28, 2018 12:03:55 PM okhttp3.internal.platform.Platform log

INFO: Strict-Transport-Security: max-age=15552000; includeSubDomains

Sep 28, 2018 12:03:55 PM okhttp3.internal.platform.Platform log

INFO: Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"

Sep 28, 2018 12:03:55 PM okhttp3.internal.platform.Platform log
INFO: Server: cloudflare
Sep 28, 2018 12:03:55 PM okhttp3.internal.platform.Platform log
INFO: CF-RAY: 46142ea1497d897b-MAA
Sep 28, 2018 12:03:55 PM okhttp3.internal.platform.Platform log
INFO:
Sep 28, 2018 12:03:55 PM okhttp3.internal.platform.Platform log

INFO: {"status": "success", "data": {"candles": []}}

Sep 28, 2018 12:03:55 PM okhttp3.internal.platform.Platform log
INFO: <-- END HTTP (46-byte body)


Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.zerodhatech.test.Examples.getHistoricalData(Examples.java:330)
at com.zerodhatech.test.Test.main(Test.java:60)
0
Sign In or Register to comment.