I’m trying to use COIN-M methods (using python-binance
) and am running into weir errors. Analogous USD-M with same parameters are working fine.
This works:
client.get_historical_klines(
symbol="SOLBUSD",
interval="1m",
start_str="2022-09-27 11:54:17.480347+00:00",
end_str="2022-09-27 13:54:17.480347+00:00",
klines_type=HistoricalKlinesType.FUTURES,
)
This throws error BinanceAPIException: APIError(code=-4088): Maximum time interval is 200 days.
client.get_historical_klines(
symbol="SOLUSD_PERP",
interval="1m",
start_str="2022-09-27 11:54:17.480347+00:00",
end_str="2022-09-27 12:54:17.480347+00:00",
klines_type=HistoricalKlinesType.FUTURES_COIN,
)
What’s wrong?