Is Historical Data available only during exchange hours?

jkrise
I was trying to get HistoricalData post exchange hours(17:00 IST), the api gives me
{"status":"error","message":"Incorrect `api_key` or `access_token`.","data":null,"error_type":"TokenException"}
though during the same session I am able to successfully call getInstruments()

Request URL: Error & URL
403 Forbidden https://api.kite.trade/instruments/historical/11382018/15minute?continuous=0&from=2019-09-03 00:00:00&to=2019-09-06 16:41:41
Tagged:
  • sujith
    You seem to be using an invalid access token.
    Generate a new access token and then fetch data.
  • jkrise
    Thank you for reverting, figured out, there was an issue in the code.
This discussion has been closed.