Improve tests for trades_proxy

This commit is contained in:
Matthias
2021-03-13 15:46:20 +01:00
parent d1acc8092c
commit 0320c8dc92
3 changed files with 27 additions and 2 deletions

View File

@@ -611,8 +611,7 @@ class LocalTrade():
else:
# Not used during backtesting, but might be used by a strategy
sel_trades = [trade for trade in LocalTrade.trades + LocalTrade.trades_open
if trade.is_open == is_open]
sel_trades = [trade for trade in LocalTrade.trades + LocalTrade.trades_open]
if pair:
sel_trades = [trade for trade in sel_trades if trade.pair == pair]