adshao / go-binance

A Go SDK for Binance API
MIT License
1.48k stars 664 forks source link

feat(futures): add premium index klines service #515

Closed iskorotkov closed 8 months ago

iskorotkov commented 9 months ago

The library currently doesn't support fetching premium index klines. I added a new service that implements this functionality.

Also, I discovered v2/futures/index_price_kline_service_test.go doesn't call method for fetching index price klines (despite its name). I replaced NewKlinesService() with NewIndexPriceKlinesService() and made a couple of other changes to make tests pass.

Sorry for making two almost unrelated changes in one PR. I believe it won't be a big problem apart from being a bad practice.

adshao commented 8 months ago

Thank you so much for your contribution! @iskorotkov