It looks like you're new here. If you want to get involved, click one of these buttons!
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.
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.