diff --git a/libs/deal-ticket/src/utils/map-form-values-to-submission.ts b/libs/deal-ticket/src/utils/map-form-values-to-submission.ts index 485f8c4af..f4c0874b3 100644 --- a/libs/deal-ticket/src/utils/map-form-values-to-submission.ts +++ b/libs/deal-ticket/src/utils/map-form-values-to-submission.ts @@ -203,6 +203,7 @@ export const mapFormValuesToTakeProfitAndStopLoss = ( const stopOrdersSubmission = []; + // if there are both take profit and stop loss then the stop order needs to be OCO if (formValues.takeProfit && formValues.stopLoss) { const ocoStopOrderSubmission = mapFormValuesToStopOrdersSubmission( {