fix: update type of the stop order
This commit is contained in:
parent
425a6e3dde
commit
09d61438b5
@ -220,6 +220,7 @@ export const mapFormValuesToTakeProfitAndStopLoss = (
|
||||
expire: false,
|
||||
timeInForce: Schema.OrderTimeInForce.TIME_IN_FORCE_FOK,
|
||||
ocoTriggerType: 'price',
|
||||
type: Schema.OrderType.TYPE_MARKET,
|
||||
ocoType: Schema.OrderType.TYPE_MARKET,
|
||||
ocoSize: formValues.size,
|
||||
ocoTimeInForce: Schema.OrderTimeInForce.TIME_IN_FORCE_FOK,
|
||||
@ -241,6 +242,7 @@ export const mapFormValuesToTakeProfitAndStopLoss = (
|
||||
triggerType: 'price',
|
||||
side: oppositeSide,
|
||||
expire: false,
|
||||
type: Schema.OrderType.TYPE_MARKET,
|
||||
ocoTriggerType: 'price',
|
||||
ocoType: Schema.OrderType.TYPE_MARKET,
|
||||
ocoSize: formValues.size,
|
||||
|
Loading…
Reference in New Issue
Block a user