python-binance icon indicating copy to clipboard operation
python-binance copied to clipboard

can't get history of klines of perpetual futures

Open lode-runner opened this issue 2 years ago • 1 comments

Hi, I want to ask how can I get the history of klines of perpetual futures. I can't find any eg or any parameters in the function to get klines of perpetual futures.

lode-runner avatar Jul 25 '23 13:07 lode-runner

client.get_historical_klines("BTCUSDT" Client.KLINE_INTERVAL_30MINUTE, klines_type=HistoricalKlinesType.FUTURES)

optional paraameters - start_str , end_str. (date string in UTC format or timestamp in milliseconds)

tempestblaze avatar Aug 11 '23 15:08 tempestblaze