Add simple test for /stats call

This commit is contained in:
Matthias
2020-12-05 14:48:56 +01:00
parent aa27c9ace2
commit 245c19f5e9
3 changed files with 39 additions and 2 deletions

View File

@@ -82,6 +82,7 @@ def mock_trade_2(fee):
is_open=False,
open_order_id='dry_run_sell_12345',
strategy='DefaultStrategy',
sell_reason='sell_signal'
)
o = Order.parse_from_ccxt_object(mock_order_2(), 'ETC/BTC', 'buy')
trade.orders.append(o)
@@ -134,6 +135,7 @@ def mock_trade_3(fee):
close_profit=0.01,
exchange='bittrex',
is_open=False,
sell_reason='roi'
)
o = Order.parse_from_ccxt_object(mock_order_3(), 'XRP/BTC', 'buy')
trade.orders.append(o)