Alert me at a price
set_price_alertTell the person when a coin's price reaches a level: one message (Telegram, the event stream and webhooks get a price.alert event), then the alert is done. Use when the user asks to be told or woken at a price, instead of polling prices. Not an order: nothing is traded (for an order that waits for a price use preview_order with trigger_price). Inputs: symbol, price, optional direction (default: from the current price) and venue. At most 20 wait at once. Needs only the read scope, since an alert never trades. Next: get_my_price_alerts.
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": {
"symbol": "<symbol>",
"price": "<price>"
},
"name": "set_price_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | The price level, USD per coin | |
| venue | No | Optional: watch one exchange's mark. Omitted: the reference price (median of the exchanges' marks) | |
| symbol | Yes | Base coin, e.g. BTC | |
| direction | No | Fire when the price is at or above / at or below the level. Omitted: from the current price (a level above it fires on the way up) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | The level, USD per coin | |
| venue | Yes | The exchange whose mark is watched; null: the reference price (median of the exchanges' marks; on the sandbox deployment the sandbox's real-market price) | |
| status | Yes | active (waiting), triggered (fired once, done) or deleted | |
| symbol | Yes | Base coin | |
| alert_id | Yes | Alert id, alr_… | |
| direction | Yes | above: fires when the price is at or above the level; below: at or below | |
| created_at | Yes | ISO 8601 UTC | |
| created_by | Yes | The agent that created it, or person | |
| deprecation | No | Present only while this tool is deprecated: replacement, removal_date, changelog | |
| triggered_at | No | When it fired, ISO 8601 UTC | |
| current_price | No | On creation: the price it is compared with now, USD per coin | |
| triggered_price | No | The price that fired it, USD per coin |