我需要从binance获取融资利率历史数据,但它只显示现货市场,即使我输入:
binance = ccxt.binance({'option': {'defaultType': 'future'}})
binance.fetch_markets()
怎么可能修复?
希望对您有所帮助:
import ccxt
exchange = ccxt.binance()
exchange.options = {'defaultType': 'future',
'adjustForTimeDifference': True}
symbol = 'BTC/USDT'
funding = exchange.fetchFundingRate(symbol)
print(funding)