cannot pull historical data

traderx
traderx edited May 2017 in Python client
https://api.kite.trade:443 "GET /instruments/historical/408065/15minute?from=2017-05-04&access_token=8888888888888&interval=15minute&to=2017-05-04&instrument_token=408065&api_key=8888888888 HTTP/1.1" 400 137

kiteconnect.exceptions.InputException: No candles found based on token and time and candleType or Server busy.

  • sujith
    Hi @traderx,
    I just tried and it is working fine. Infy NSE 15 min data for yesterday is present. You can find example response below,
    {"status": "success", "data": {"candles": [["2017-05-04T09:15:00+0530",937,939.15,936.5,937.25,261956],["2017-05-04T09:30:00+0530",937.25,937.6,934.55,936.5,184671],["2017-05-04T09:45:00+0530",936.4,936.4,931.55,933.4,93436],["2017-05-04T10:00:00+0530",933.4,936,933.3,935.6,66857],["2017-05-04T10:15:00+0530",935.6,937.35,935.5,937.3,78997],["2017-05-04T10:30:00+0530",937.3,939.35,935.55,936.25,80842],["2017-05-04T10:45:00+0530",936.25,937.1,935.55,936.4,20662],["2017-05-04T11:00:00+0530",936.4,936.5,933,934,44166],["2017-05-04T11:15:00+0530",934,934.9,932.5,932.85,54510],["2017-05-04T11:30:00+0530",932.85,933.65,929.2,929.4,75461],["2017-05-04T11:45:00+0530",929.5,931.6,928.9,931.45,60886],["2017-05-04T12:00:00+0530",931.5,933.85,931.5,933.2,45708],["2017-05-04T12:15:00+0530",933.25,933.25,932.35,932.85,47599],["2017-05-04T12:30:00+0530",932.85,935,932.8,934.95,57182],["2017-05-04T12:45:00+0530",934.95,935.4,931.3,932.85,64650],["2017-05-04T13:00:00+0530",932.55,932.75,931.3,932.35,46149],["2017-05-04T13:15:00+0530",932.45,934.95,932.1,934.8,55108],["2017-05-04T13:30:00+0530",934.8,935.8,933.6,934.9,80881],["2017-05-04T13:45:00+0530",934.9,936.5,934.9,936.35,68681],["2017-05-04T14:00:00+0530",936.5,937,935.6,936.6,69344],["2017-05-04T14:15:00+0530",936.6,936.9,934,934.9,42836],["2017-05-04T14:30:00+0530",934.9,936.35,934,934.5,61872],["2017-05-04T14:45:00+0530",934.5,936.7,934.05,936.15,123860],["2017-05-04T15:00:00+0530",936.15,938.5,936.15,937.55,508486],["2017-05-04T15:15:00+0530",937.9,938.55,936,936,341724]]}}
  • traderx
    Thanks but why was it not working last night? Was there some downtime?

    Thanks for looking into it
  • traderx
    It was around 2:30AM IST
  • sujith
    @traderx,
    This shouldn't be happening. We will check and let you know if there is any issue.
Sign In or Register to comment.