added logic for is_short and tests

This commit is contained in:
aezo.teo
2021-11-14 16:52:38 +08:00
parent 30fbe0c79c
commit 8df334515f
3 changed files with 37 additions and 27 deletions

View File

@@ -317,6 +317,7 @@ def mock_trade_6(fee, is_short: bool):
buy_tag='TEST2',
open_order_id=f"prod_sell_{direc(is_short)}_6",
timeframe=5,
is_short=is_short
)
o = Order.parse_from_ccxt_object(mock_order_6(is_short), 'LTC/BTC', enter_side(is_short))
trade.orders.append(o)