oco_order
Place a One-Cancels-Other order group so when one order fills, the other is automatically cancelled, managing paired trades with defined prices and quantities.
Instructions
Place a One-Cancels-Other (OCO) order group. When one order fills, the other is cancelled.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"side": "<side>",
"quantity": "<quantity>",
"ocaGroup": "<ocaGroup>",
"order1Type": "<order1Type>",
"order1Price": "<order1Price>",
"order2Type": "<order2Type>",
"order2Price": "<order2Price>"
},
"name": "oco_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tif | No | ||
| side | Yes | ||
| conId | No | ||
| symbol | No | ||
| account | No | ||
| secType | No | ||
| currency | No | ||
| exchange | No | ||
| ocaGroup | Yes | OCA group name | |
| quantity | Yes | ||
| order1Type | Yes | First order type | |
| order2Type | Yes | Second order type | |
| order1Price | Yes | First order price | |
| order2Price | Yes | Second order price |