Historical Api issue

omkar89
omkar89 edited April 2020 in Python client
I am trying to retrive 1 min data for banknifty futures however I am either getting blank data or below error
DataException: Unknown Content-Type (text/html) with response: (b"

504 Gateway Time-out

\nThe server didn't respond in time.\n\n")

This is my query - kite.historical_data(14350850,from_date,to_date,'minute',1)

from_date = "2019-04-01"
to_date = "2019-04-05"
  • omkar89
    checked for these dates as well but getting zero results
    from_date = "2020-04-01"
    to_date = "2020-04-05"
  • omkar89
    @sujith could you help please
  • rakeshr
    @omkar89
    Continuous data is available only for day candle. You need to send interval as day instead of minute.
    kite.historical_data(instrument_token=14350850,from_date='2019-04-01', to_date='2019-04-30', interval="day",continuous=1)
  • omkar89
    Thanks @rakeshr , i was trying to get 1 min data for banknifty for last year, could you please let me know if this is possible and if yes , some guidance on how to go about it
  • sujith
    @omkar89,
    We only provide day candle data for expired futures instruments.
Sign In or Register to comment.