at what time should i be able to gate last candle data? say for i am call 3minute candle range from 10:00:00AM to 10:03:00AM. at what time response will updated. at 10:03:01AM? at 10:03:10AM? at 10:03:30AM? OR AT 10:04:00AM?
also note : i am getting variable array length intermittently at every data call... why so?
no it is not, getting response late by 1minute and 1second even more. Say 10:04:01AM. Will send you my request and response log by night... For deciding timing i tried test on 10seconds increment... too So finally i am requesting every minute +1 second but getting delayed feed though i am requesting 3min data.
please find my fox-pro code to request, just to create response log.. with log file and response in text files generated at every minute+1second as i i said in previous post i am getting response late by 1minute+1second or even more
@gautam_s60 Historical api doesn't update accurately after the minute is ended and there may be other issues such as your system time not in sync with server time. You can use Websocket streaming api and build a minute candle if your app is time critical.
Ok, your answer is defered to @Kailash answer. My machine times are auto synced with google server. If api service timing defered, include function to sync timing with api server.
i tried websocket toooo, but many time faced that socket giving errors and no data... Some times error continues for 5min... Same is also posted in other discussion.
Can you share the request you are sending? Want to check out the variable length bit.
Say 10:04:01AM.
Will send you my request and response log by night...
For deciding timing i tried test on 10seconds increment... too
So finally i am requesting every minute +1 second but getting delayed feed though i am requesting 3min data.
please find my fox-pro code to request, just to create response log..
with log file and response in text files generated at every minute+1second
as i i said in previous post i am getting response late by 1minute+1second or even more
https://drive.google.com/open?id=0B803NQ-w8zE5ampSWXBMeFlvZVk
https://drive.google.com/open?id=0B803NQ-w8zE5ampSWXBMeFlvZVk
i tried websocket toooo, but many time faced that socket giving errors and no data... Some times error continues for 5min... Same is also posted in other discussion.