Create order (executes a trade)
create_order⚠️ Moves funds: this places a real order that will execute a trade from the user's wallet. Create a buy or sell order on a wallet, with optional take-profit and stop-loss ladder
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": {
"walletId": "<walletId>",
"tokenAddress": "<tokenAddress>",
"type": "<type>",
"payload": "<payload>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Order type | |
| status | No | Order status (default: active) | |
| payload | Yes | Order payload with amount, trigger, and execution settings | |
| walletId | Yes | The wallet ID to create the order on | |
| stopLosses | No | Optional stop-loss ladder | |
| takeProfits | No | Optional take-profit ladder | |
| tokenAddress | Yes | Token mint address | |
| positionThesisId | No | Link to a position thesis |