OKX stop should convert contracts to amount
This commit is contained in:
@@ -199,6 +199,7 @@ class Okx(Exchange):
|
|||||||
order_reg['type'] = 'stoploss'
|
order_reg['type'] = 'stoploss'
|
||||||
order_reg['status_stop'] = 'triggered'
|
order_reg['status_stop'] = 'triggered'
|
||||||
return order_reg
|
return order_reg
|
||||||
|
order = self._order_contracts_to_amount(order)
|
||||||
order['type'] = 'stoploss'
|
order['type'] = 'stoploss'
|
||||||
return order
|
return order
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user