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,
|
expire: false,
|
||||||
timeInForce: Schema.OrderTimeInForce.TIME_IN_FORCE_FOK,
|
timeInForce: Schema.OrderTimeInForce.TIME_IN_FORCE_FOK,
|
||||||
ocoTriggerType: 'price',
|
ocoTriggerType: 'price',
|
||||||
|
type: Schema.OrderType.TYPE_MARKET,
|
||||||
ocoType: Schema.OrderType.TYPE_MARKET,
|
ocoType: Schema.OrderType.TYPE_MARKET,
|
||||||
ocoSize: formValues.size,
|
ocoSize: formValues.size,
|
||||||
ocoTimeInForce: Schema.OrderTimeInForce.TIME_IN_FORCE_FOK,
|
ocoTimeInForce: Schema.OrderTimeInForce.TIME_IN_FORCE_FOK,
|
||||||
@ -241,6 +242,7 @@ export const mapFormValuesToTakeProfitAndStopLoss = (
|
|||||||
triggerType: 'price',
|
triggerType: 'price',
|
||||||
side: oppositeSide,
|
side: oppositeSide,
|
||||||
expire: false,
|
expire: false,
|
||||||
|
type: Schema.OrderType.TYPE_MARKET,
|
||||||
ocoTriggerType: 'price',
|
ocoTriggerType: 'price',
|
||||||
ocoType: Schema.OrderType.TYPE_MARKET,
|
ocoType: Schema.OrderType.TYPE_MARKET,
|
||||||
ocoSize: formValues.size,
|
ocoSize: formValues.size,
|
||||||
|
Loading…
Reference in New Issue
Block a user