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.
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 replacedNewKlinesService()
withNewIndexPriceKlinesService()
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.