Hostorical data not getting current days candle

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))


currently, I am able to fetch it

1 Like

Thankyou for the reply.
Bro kindly try this in live market and update me if it’s working. In live market it was not returning current day data

yes, agree with you, Sometimes not get it,
what’s your aim to hitting this function ?

1 Like

I calculate macd rsi and other indicators from the live candles. Till yesterday everything was fine. But now the current day candle are missing

Have you observed before I was getting full min candle like 09:15:00, 09:16:00…
so I have to change the code accordingly

I will run my code again in live market tomorrow . And let you know. Kindly you too chk it tomorrow in live market.

I too use to get 1 min candles and use to convert it to other time frame. But today the current day live candles didn’t come.

bro try the code now.