From 3d0d8a1243ac4dde1bb0995d86978a3e65da0b1a Mon Sep 17 00:00:00 2001 From: meet-vasita Date: Fri, 5 Sep 2025 01:43:21 +0530 Subject: [PATCH 1/2] futures_historical_klines*: default limit=None; cleaned accidental secret-like string --- binance/async_client.py | 2 +- binance/client.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/binance/async_client.py b/binance/async_client.py index ebccd3b2..177aac64 100644 --- a/binance/async_client.py +++ b/binance/async_client.py @@ -1731,7 +1731,7 @@ async def futures_continuous_klines(self, **params): return await self._request_futures_api("get", "continuousKlines", data=params) async def futures_historical_klines( - self, symbol, interval, start_str, end_str=None, limit=500 + self, symbol: str, interval: str, start_str, end_str=None, limit=None ): return await self._historical_klines( symbol, diff --git a/binance/client.py b/binance/client.py index 86bf98e6..43bd46bf 100755 --- a/binance/client.py +++ b/binance/client.py @@ -7373,7 +7373,7 @@ def futures_continous_klines(self, **params): return self._request_futures_api("get", "continuousKlines", data=params) def futures_historical_klines( - self, symbol, interval, start_str, end_str=None, limit=500 + self, symbol: str, interval :str, start_str, end_str=None, limit=None ): """Get historical futures klines from Binance @@ -7385,7 +7385,7 @@ def futures_historical_klines( :type start_str: str|int :param end_str: optional - end date string in UTC format or timestamp in milliseconds (default will fetch everything up to now) :type end_str: str|int - :param limit: Default 500; max 1000. + :param limit: Default None (fetches full range in batches of max 1000 per request). To limit the number of rows, pass an integer. :type limit: int :return: list of OHLCV values (Open time, Open, High, Low, Close, Volume, Close time, Quote asset volume, Number of trades, Taker buy base asset volume, Taker buy quote asset volume, Ignore) @@ -7401,7 +7401,7 @@ def futures_historical_klines( ) def futures_historical_mark_price_klines( - self, symbol, interval, start_str, end_str=None, limit=500 + self, symbol: str, interval: str, start_str, end_str=None, limit=None ): """Get historical futures mark price klines from Binance @@ -7413,7 +7413,7 @@ def futures_historical_mark_price_klines( :type start_str: str|int :param end_str: optional - end date string in UTC format or timestamp in milliseconds (default will fetch everything up to now) :type end_str: str|int - :param limit: Default 500; max 1000. + :param limit: Default None (fetches full range in batches of max 1000 per request). To limit the number of rows, pass an integer. :type limit: int :return: list of OHLCV values (Open time, Open, High, Low, Close, Volume, Close time, Quote asset volume, Number of trades, Taker buy base asset volume, Taker buy quote asset volume, Ignore) From 82e0afeb169c83d97330c4a9df17c5b34f35ad28 Mon Sep 17 00:00:00 2001 From: meet-vasita Date: Mon, 8 Sep 2025 16:52:57 +0530 Subject: [PATCH 2/2] trigger CI rerun