Not able to get BANKEX minute data from pykiteconnect

mb12
mb12 edited September 4 in Python client
trying to fetch data for following from and to dates:
from_datetime = datetime.fromisoformat('2024-09-04 09:15:00+05:30')
to_datetime = datetime.fromisoformat('2024-09-04 09:20:00+05:30')

after enabling debug logs, i see such logs:

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443
DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /instruments/historical/282146821/minute?from=2024-09-04+09%3A15%3A00&to=2024-09-04+09%3A20%3A00&interval=minute&continuous=0&oi=1 HTTP/11" 200 46
DEBUG:kiteconnect.connect:Response: 200 b'{"status": "success", "data": { "candles":[]}}'
Empty DataFrame
Columns: []
Index: []
  • rakeshr
    from_datetime = datetime.fromisoformat('2024-09-04 09:15:00+05:30')
    to_datetime = datetime.fromisoformat('2024-09-04 09:20:00+05:30')
    There was no trade for BANKEX24909FUT during the mentioned period. First trade for the day happened at 2024-09-04 13:15:00. You will get empty candle, if there are no trade/market depth changes.
  • mb12
    oh ok, wasn't aware bank related futures would be so illiquid :) thanks for confirmation, the ticket can be closed.
This discussion has been closed.