Update test for load_trades_from_db

This commit is contained in:
Matthias
2020-06-27 09:59:23 +02:00
parent afefe92523
commit 573502d972
2 changed files with 13 additions and 5 deletions

View File

@@ -180,7 +180,8 @@ def create_mock_trades(fee):
fee_close=fee.return_value,
open_rate=0.123,
exchange='bittrex',
open_order_id='dry_run_buy_12345'
open_order_id='dry_run_buy_12345',
strategy='DefaultStrategy',
)
Trade.session.add(trade)
@@ -195,7 +196,8 @@ def create_mock_trades(fee):
close_profit=0.005,
exchange='bittrex',
is_open=False,
open_order_id='dry_run_sell_12345'
open_order_id='dry_run_sell_12345',
strategy='DefaultStrategy',
)
Trade.session.add(trade)
@@ -208,7 +210,8 @@ def create_mock_trades(fee):
fee_close=fee.return_value,
open_rate=0.123,
exchange='bittrex',
open_order_id='prod_buy_12345'
open_order_id='prod_buy_12345',
strategy='DefaultStrategy',
)
Trade.session.add(trade)