Update confirm_trade_entry to support "side" parameter

This commit is contained in:
Matthias
2021-09-26 19:32:24 +02:00
parent 4d49f1a0c7
commit 84e013de2d
6 changed files with 20 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ def test_strategy_test_v2(result, fee):
assert strategy.confirm_trade_entry(pair='ETH/BTC', order_type='limit', amount=0.1,
rate=20000, time_in_force='gtc',
current_time=datetime.utcnow()) is True
current_time=datetime.utcnow(), side='long') is True
assert strategy.confirm_trade_exit(pair='ETH/BTC', trade=trade, order_type='limit', amount=0.1,
rate=20000, time_in_force='gtc', sell_reason='roi',
current_time=datetime.utcnow()) is True