Complete Candle after how many Seconds? #133
Replies: 2 comments
-
I just updated the chart example to always update the last candle when called. 1571641
And it still updates the forming candle when updating with multiple candles:
If you don't want the forming candle you could just drop it before you make any calculations or whatever. I know this doesn't answer your question but it may solve your problem. I think only poloniex would know what the update time is on the candles they send out, and my guess is that the time would fluctuate. So either constantly updating the candle or dropping it is probably going to be your best option. |
Beta Was this translation helpful? Give feedback.
-
Yes. Dropping should work perfectly Thanks mate! |
Beta Was this translation helpful? Give feedback.
-
Sorry for little off-topic.
I wanted to know the exact seconds after which we get a compelte candle for a period
For instance if I m using 300 seconds (5 min) candle, after how many seconds past 300 seconds should i call there returnChartData to get fully grown candle.
I tried 30 seconds but sometimes I dont get a proper 'close' figure and it gets messed up
This is something I am using to call data every 300 seconds-
The above func will call there api after every 5minutes and 30 seconds.
Calling too late can give me data of new forming candle!!
Can someone give me exact figure?
Beta Was this translation helpful? Give feedback.
All reactions