earlier the below code use to send historical data which would include current day candles. today it stopped providing current day candle. kindly help .
alice = Aliceblue(user_id=‘’,api_key=‘’)
instrument = alice.get_instrument_by_symbol(“NFO”, “RELIANCE”)
from_datetime = datetime.now() - datetime.timedelta(days=7) # From last & days
to_datetime = datetime.now() # To now
interval = “1” # [“1”, “D”]
indices = False # For Getting index data
print(alice.get_historical(instrument, from_datetime, to_datetime, interval, indices))