diff --git a/README.md b/README.md index 15a6ec0..2096e25 100644 --- a/README.md +++ b/README.md @@ -209,9 +209,10 @@ This Crypto AlgoTrading Framework can be used with Pypy, but the results will no ## TODO -* Python 3 implementation -* Cython version -* Pure Python for Pypy (without Pandas and Numpy dependency) +- [ ] Add ByBit API +- [x] Python 3 implementation +- [ ] Cython version +- [ ] Pure Python for Pypy (without Pandas and Numpy dependency) ## Additional Info diff --git a/cryptoalgotrading/aux.py b/cryptoalgotrading/aux.py index 02015de..8090f55 100644 --- a/cryptoalgotrading/aux.py +++ b/cryptoalgotrading/aux.py @@ -396,7 +396,7 @@ def get_histdata_to_file(markets=None, if isinstance(markets,str): markets = [markets] - if not markets: + if not markets: markets = get_markets_list(base_market, exchange) for market in markets: @@ -540,7 +540,7 @@ def get_time_right(date_n_time): if '-' in date_n_time: try: t_day, t_month, t_year = t_date.split('-') - except Exception as e: + except Exception: t_day, t_month = t_date.split('-') t_year = str(localtime()[0]) diff --git a/cryptoalgotrading/cryptoalgotrading.py b/cryptoalgotrading/cryptoalgotrading.py index 2ee190f..0040bfe 100644 --- a/cryptoalgotrading/cryptoalgotrading.py +++ b/cryptoalgotrading/cryptoalgotrading.py @@ -557,8 +557,9 @@ def backtest(markets, if not isinstance(exit_funcs,list): exit_funcs=[exit_funcs] # For selected markets. - if from_file: markets = manage_files(markets, interval=interval) - + if from_file: + markets = manage_files(markets, interval=interval) + log(str(len(markets)) + " files/chunks to analyse...", 1, log_level) # Create a multiprocessing Pool