Place a TP + SL order via API

Here is an example that works for
order/placeOSO

{
  "symbol": "ESZ4",
  "isAutomated": false,
  "accountId": <YOUR_ACCOUNT_ID>,
  "accountSpec": "<YOUR_ACCOUNT_NAME>",
  "action": "Sell",
  "orderType": "Limit",
  "orderQty": 1,
  "price": 5788.75,
  "bracket1": {
    "action": "Buy",
    "orderType": "Stop",
    "stopPrice": 5791.75
  },
  "bracket2": {
    "price": 5768.75,
    "orderType": "Limit",
    "action": "Buy"
  }
}
1 Like