fix(trading): add comment
This commit is contained in:
parent
39db2b402d
commit
4a98e412df
@ -203,6 +203,7 @@ export const mapFormValuesToTakeProfitAndStopLoss = (
|
|||||||
|
|
||||||
const stopOrdersSubmission = [];
|
const stopOrdersSubmission = [];
|
||||||
|
|
||||||
|
// if there are both take profit and stop loss then the stop order needs to be OCO
|
||||||
if (formValues.takeProfit && formValues.stopLoss) {
|
if (formValues.takeProfit && formValues.stopLoss) {
|
||||||
const ocoStopOrderSubmission = mapFormValuesToStopOrdersSubmission(
|
const ocoStopOrderSubmission = mapFormValuesToStopOrdersSubmission(
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user