Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord committed Sep 19, 2024
1 parent 9818458 commit b26c74e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/procedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,16 @@ def format_config(config: dict, verbose=True) -> dict:
)
if result["live"]["approved_coins"]:
result["live"]["approved_coins"] = [
x for x in coins_to_symbols(
result["live"]["approved_coins"], verbose=verbose
) if x not in result["live"]["ignored_coins"]
x
for x in coins_to_symbols(result["live"]["approved_coins"], verbose=verbose)
if x not in result["live"]["ignored_coins"]
]
result["backtest"]["symbols"] = result["live"]["approved_coins"]
else:
result["backtest"]["symbols"] = [
x for x in get_all_eligible_symbols(result["backtest"]["exchange"]) if x not in result["live"]["ignored_coins"]
x
for x in get_all_eligible_symbols(result["backtest"]["exchange"])
if x not in result["live"]["ignored_coins"]
]
return result

Expand Down

0 comments on commit b26c74e

Please sign in to comment.