Enable orders via API

This commit is contained in:
Matthias
2022-02-26 16:10:54 +01:00
parent d4fbb785b5
commit 17c9c3caf3
5 changed files with 29 additions and 6 deletions

View File

@@ -114,7 +114,7 @@ def test_rpc_trade_status(default_conf, ticker, fee, mocker) -> None:
'cost': 0.0009999999999054, 'filled': 91.07468123, 'ft_order_side': 'buy',
'order_date': ANY, 'order_timestamp': ANY, 'order_filled_date': ANY,
'order_filled_timestamp': ANY, 'order_type': 'limit', 'price': 1.098e-05,
'is_open': False, 'pair': 'ETH/BTC',
'is_open': False, 'pair': 'ETH/BTC', 'order_id': ANY,
'remaining': ANY, 'status': ANY}],
'filled_exit_orders': []
}
@@ -189,7 +189,7 @@ def test_rpc_trade_status(default_conf, ticker, fee, mocker) -> None:
'cost': 0.0009999999999054, 'filled': 91.07468123, 'ft_order_side': 'buy',
'order_date': ANY, 'order_timestamp': ANY, 'order_filled_date': ANY,
'order_filled_timestamp': ANY, 'order_type': 'limit', 'price': 1.098e-05,
'is_open': False, 'pair': 'ETH/BTC',
'is_open': False, 'pair': 'ETH/BTC', 'order_id': ANY,
'remaining': ANY, 'status': ANY}],
'filled_exit_orders': []
}

View File

@@ -902,6 +902,9 @@ def test_api_status(botclient, mocker, ticker, fee, markets):
'buy_tag': None,
'timeframe': 5,
'exchange': 'binance',
'filled_entry_orders': [],
'filled_exit_orders': [],
}
mocker.patch('freqtrade.exchange.Exchange.get_rate',