mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
Don't allow empty order-type from exchange
This commit is contained in:
@@ -1082,6 +1082,10 @@ class Exchange:
|
||||
if order.get('status') is None:
|
||||
# Map empty status to open.
|
||||
order['status'] = 'open'
|
||||
|
||||
if order.get('type') is None:
|
||||
order['type'] = ordertype
|
||||
|
||||
self._log_exchange_response('create_order', order)
|
||||
order = self._order_contracts_to_amount(order)
|
||||
return order
|
||||
|
||||
Reference in New Issue
Block a user