Python
바이낸스 usd-m 실시간 funding rate 조회
ndlessrain
2023. 2. 21. 02:25
728x90
바이낸스에서 제공하는 funding_rate api는 history가 조회된다.
https://binance-docs.github.io/apidocs/futures/en/#mark-price
Binance API Documentation
binance-docs.github.io
fapi/v1/premiumIndex에서 funding rate를 조회할 수 있대서, 소스에서 찾아보니 mark_price api가 이걸 사용한다.
um_futures_client.mark_price("MTLUSDT")로 호출하면 현재 funding rate를 조회할 수 있다.
아래는 return 결과
{'symbol': 'MTLUSDT',
'markPrice': '1.53978737',
'indexPrice': '1.54357883',
'estimatedSettlePrice': '1.54537555',
'lastFundingRate': '-0.00261527',
'interestRate': '0.00010000',
'nextFundingTime': 1676937600000,
'time': 1676913693006}
728x90