But its not giving me data till 15.30 for the end date, its just giving me data till 12 PM for end date. I have tried many start end date and end date combinations but in any case I am getting all the data for the end date. Please suggest how should I get all the data for the end date starting with a specific start date say 10 days back or 20 days back.
When I try to get just one day back data then I am getting all the candles for end date up to 3 PM. Even for one day back I am not getting all the candles for end date. Please help!!
I tried to get month by month data for last three months and even then I am not getting the candle for 15.30. Its stopping at 15.15 candle and in one case even 15.15 candle was not complete.
We checked on this. It's returning the correct candle for the given period including last candle for the end period. {'date': datetime.datetime(2020, 11, 26, 15, 15, tzinfo=tzoffset(None, 19800)), 'open': 29547.5, 'high': 29611.25, 'low': 29535.55, 'close': 29603.2, 'volume': 0}
You might be sending wrong to and from time param to fetch the required period candle. You can go through this thread to know more about this.
Thanks a lot. Your answer made me suspect my code and I found flaw in my code and fixed it. Its all good now. Thanks again for the extra effort put in!!
{'date': datetime.datetime(2020, 11, 26, 15, 15, tzinfo=tzoffset(None, 19800)), 'open': 29547.5, 'high': 29611.25, 'low': 29535.55, 'close': 29603.2, 'volume': 0}
You might be sending wrong to and from time param to fetch the required period candle. You can go through this thread to know more about this.