gateio / gatews

Gate Websocket V4 SDK
89 stars 35 forks source link

How to get 'premium index' via API? #45

Closed LKresta closed 1 year ago

LKresta commented 1 year ago

Hello there,

I checked the documentation and samples but could not find any info on how to obtain premium index values (https://www.gate.io/futures_info_new/futures/btc/BTC_USD#indexinfo, 'premium index'). Is there any way in API to retrieve this value over time/subscribe to updates/...?

Thanks, L.

LKresta commented 1 year ago

I found something like /api/v4/futures/usdt/premium_index?contract=BTC_USDT&from=1667271733&to=1667314993&interval=5m, is it safe to use?

revilwang commented 1 year ago

Yes, it's safe to use. We'll also update the API details to our public documents.

LKresta commented 1 year ago

Great, thanks!