Placing Offset TakeProfit and Stoploss in PlaceOrder

Hey guys, trying to send a market order with a TakeProfit and Stoploss based on the fill price. the API documentation said its possible (and it works in Pickmytrade, so I know its possible), but I can’t get anything to work. Here’s the Json I’m sending:

{
“accountId”: " ***** ",
“accountSpec”: " **** ",
“action”: “Buy”,
“bracket1”: {
“isOffset”: true,
“offset”: 2,
“orderType”: “Limit”
},
“bracket2”: {
“isOffset”: true,
“offset”: 5,
“orderType”: “Stop”
},
“isAutomated”: “true”,
“orderQty”: 1,
“orderType”: “Market”,
“symbol”: “NQM5”
}

isAutomated should be boolean not string change "isAutomated": true instead of "isAutomated": "true"

1 Like

From the docs…If you use a limit order you must use the price param

1 Like