Skip to content

Commit

Permalink
fix symbol management for backtesting contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume De Saint Martin committed May 11, 2020
1 parent aeaede6 commit db3777d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions octobot_evaluators/api/evaluators.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,10 @@ async def create_all_type_evaluators(config: dict,
for name, symbol_list in symbols_by_crypto_currencies.items():
if symbol_list:
ticker = get_base_currency(exchange_manager, symbol_list[0])
crypto_currency_name_by_crypto_currencies[ticker] = name
symbols_by_crypto_currency_tickers[ticker] = symbol_list
crypto_currency_name_by_crypto_currencies[ticker] = \
crypto_currency_name_by_crypto_currencies.get(ticker, "") + name
symbols_by_crypto_currency_tickers[ticker] = \
symbols_by_crypto_currency_tickers.get(ticker, []) + symbol_list
return [
await create_evaluators(
evaluator_type, config, tentacles_setup_config,
Expand Down

0 comments on commit db3777d

Please sign in to comment.