Skip to content

Commit

Permalink
Update TODO list.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivopetiz committed Aug 6, 2020
1 parent 0878f33 commit 12a3d98
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions cryptoalgotrading/aux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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])

Expand Down
5 changes: 3 additions & 2 deletions cryptoalgotrading/cryptoalgotrading.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12a3d98

Please sign in to comment.