historical data function continuous data not working

kavanlimbasiya
 
symbol="12787970"
data = pd.DataFrame(kite.historical_data(symbol, dt.date.today() - dt.timedelta(310), dt.date.today(),continuous=True,interval="day"))
data.set_index("date", inplace=True)
I am trying to run above code where i am trying to get data for adani ports last 310 days daily candles. However, i get only 192 values instead of about 212 values(trading days). I am getting the same issues across multiple scripts like ABFRL21AUGFUT,ALKEM21AUGFUT,APLLTD21AUGFUT,AUBANK21AUGFUT,AUBANK21JULFUT etc.

If i try to get continuous data for last 310 calender days I am getting only a few candles. not full 212 day candles.
  • rakeshr
    If i try to get continuous data for last 310 calender days I am getting only a few candles. not full 212 day candles.
    dt.date.today() - dt.timedelta(310), these includes non-trading days as well saturday, sunday and trading holidays as well. So, there are only 212 trading days in 310 days. This FAQ explains more on this.
  • kavanlimbasiya
    What I am saying is that I am not even getting 212 days candles. I am getting 192 candles only for 12787970 token. You may try at ur end as well. Please fetch last 212 trading day candles for ABFRL21AUGFUT,ALKEM21AUGFUT,APLLTD21AUGFUT,AUBANK21AUGFUT,AUBANK21JULFUT
Sign In or Register to comment.