trade
Create buy or sell orders for prediction markets and DEXs. Validates spend limits and either executes signed orders in agent mode or returns a preview in user mode.
Instructions
Create a buy/sell order. Agent mode: validates limits, signs, and executes. User mode: returns preview.
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": {
"market_id": "<market_id>",
"side": "<side>",
"amount": "<amount>",
"price": "<price>"
},
"name": "trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Trade side | |
| price | Yes | Price per token in USD | |
| venue | No | Venue name | |
| amount | Yes | Amount of tokens | |
| dry_run | No | Preview without executing (default: false) | |
| market_id | Yes | Market ID or symbol |