adshao / go-binance

A Go SDK for Binance API
MIT License
1.56k stars 678 forks source link

How is the fetching of new Klines supposed to work? #88

Closed Trashed closed 5 years ago

Trashed commented 5 years ago

I tried to fetch new Klines in a loop, and the way I tried to achieve this was to update the KlineService's startTime parameter with the CloseTime value from the last Kline in a set of 1000 Klines in each iteration. I also tried to create a completely new KlineService with updated startTime value but in both cases the KlineService only fetched the same 1000 Klines over and over again. Why is this?

Trashed commented 5 years ago

I found the cause of the problem, I just made a mistake how to call the KlineService. I'm closing this issue.