fix: update type of the stop order

This commit is contained in:
Madalina Raicu 2024-03-05 10:36:18 +00:00
parent 425a6e3dde
commit 09d61438b5
No known key found for this signature in database
GPG Key ID: 688B7B31149C1DCD

View File

@ -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,