Skip to content

Commit

Permalink
cleanup?
Browse files Browse the repository at this point in the history
  • Loading branch information
VladKochetov007 committed Dec 15, 2021
1 parent 0553d7a commit 9d8f973
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
21 changes: 11 additions & 10 deletions quick_trade/trading_sys.py
Expand Up @@ -955,16 +955,17 @@ def start_trading(pair, strat):
trader.set_client(copy(client))

items = tuple(strat.items())
for item in items:
trader.realtime_trading(strategy=trader._get_attr(item[0]),
start_time=start_time,
ticker=pair,
print_out=print_out,
wait_sl_tp_checking=wait_sl_tp_checking,
limit=limit,
strategy_in_sleep=strategy_in_sleep,
entry_start_trade=entry_start_trade,
**item[1])
item = items[0]

trader.realtime_trading(strategy=trader._get_attr(item[0]),
start_time=start_time,
ticker=pair,
print_out=print_out,
wait_sl_tp_checking=wait_sl_tp_checking,
limit=limit,
strategy_in_sleep=strategy_in_sleep,
entry_start_trade=entry_start_trade,
**item[1])

for ticker, strats in trade_config.items():
for strat in strats:
Expand Down
2 changes: 1 addition & 1 deletion quick_trade/utils.py
Expand Up @@ -175,7 +175,7 @@
calmar ratio: {}
max drawdown: {}%""" # .format(Trader.losses, Trader.trades, ...)

__version__: str = "7.0.6"
__version__: str = "7.0.7"
__author__: str = 'Vlad Kochetov'
__credits__: List[str] = [
"Hemerson Tacon -- Stack overflow",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -6,7 +6,7 @@
with open('README.md') as file:
long_desc = file.read()

__version__ = "7.0.6"
__version__ = "7.0.7"

setup(
name='quick_trade',
Expand Down

0 comments on commit 9d8f973

Please sign in to comment.