From b02ca063546dab222ef1a9521f16a93993b81cc7 Mon Sep 17 00:00:00 2001 From: templskynow <36912101+templskynow@users.noreply.github.com> Date: Sat, 28 Aug 2021 23:11:58 -0400 Subject: [PATCH] Update conditional order - trigger - OTA OCO.jsonc - Removed "cancelTime" as it conflicts with "duration" "DAY" - Corrected "orderStrategyType" for the second OCO child order to "SINGLE" - Corrected "orderType" for the second OCO child order to "STOP" --- samples/orders/conditional order - trigger - OTA OCO.jsonc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/samples/orders/conditional order - trigger - OTA OCO.jsonc b/samples/orders/conditional order - trigger - OTA OCO.jsonc index 5061d47..054a84d 100644 --- a/samples/orders/conditional order - trigger - OTA OCO.jsonc +++ b/samples/orders/conditional order - trigger - OTA OCO.jsonc @@ -2,8 +2,7 @@ // This is my buy order, this will trigger the other one. "orderStrategyType": "TRIGGER", "session": "NORMAL", - "duration": "DAY", - "cancelTime": "2020-04-15", + "duration": "DAY", "orderType": "LIMIT", "price": 50.0, "orderLegCollection": [ @@ -42,10 +41,10 @@ }, { // The is my order that stops my loss, note the price is here is lower than my original buy order. - "orderStrategyType": "STOP", + "orderStrategyType": "SINGLE", "session": "NORMAL", "duration": "DAY", - "orderType": "LIMIT", + "orderType": "STOP", "stopPrice": 40.0, "orderLegCollection": [ {