so, here is the issue. if i want to fetch a single candle, i would sent same time on both from and to, it worked and still works for yesterday data, but for current data "from today" I need to add 1 sec to end time to get it. weird.
The backend validation for fetching candle data differs for the current trading day compared to historical dates. Since today’s candles include real-time market data, requests where the from and to date-time are the same may not return the expected results.
To avoid this, please ensure that the from and to date-time values are not identical when requesting data for the current trading day. The API expects a valid time range between these parameters to return candle records.
now, i have a new problem, since mar 9th, even though i am asking for 1 min candle data, i am getting candles with 04, 09, 10, 35 s timestamps in bulk fetch. if i don't keep same time, i miss candles, if i keep different time, my system gets duplicate candles based on s.
this is since march 9th only. before that i didn't have this issue.
To avoid this, please ensure that the from and to date-time values are not identical when requesting data for the current trading day. The API expects a valid time range between these parameters to return candle records.
this is since march 9th only. before that i didn't have this issue.
this is for fetching candle during trading hours.