From ef8c596b484b40c2466ad27c16db501dc38d4b41 Mon Sep 17 00:00:00 2001 From: Gregwar Date: Sat, 27 Feb 2021 18:40:19 +0100 Subject: [PATCH] Removing sleeps --- binance/client.py | 8 -------- setup.py | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/binance/client.py b/binance/client.py index 4c50d73b3..ba1c07a8e 100644 --- a/binance/client.py +++ b/binance/client.py @@ -866,10 +866,6 @@ def get_historical_klines(self, symbol, interval, start_str, end_str=None, # increment next call by our timeframe start_ts += timeframe - # sleep after every 3rd call to be kind to the API - if idx % 3 == 0: - time.sleep(1) - return output_data def get_historical_klines_generator(self, symbol, interval, start_str, end_str=None): @@ -947,10 +943,6 @@ def get_historical_klines_generator(self, symbol, interval, start_str, end_str=N # increment next call by our timeframe start_ts += timeframe - # sleep after every 3rd call to be kind to the API - if idx % 3 == 0: - time.sleep(1) - def get_avg_price(self, **params): """Current average price for a symbol. diff --git a/setup.py b/setup.py index 5db5dd162..7a94ac2cc 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( - name='python-binance', + name='python-binance-nosleep', version='0.7.9', packages=['binance'], description='Binance REST API python implementation',