arm_price_trigger
Arm a price trigger with webhook delivery. Arms a single-fire price trigger. NythosX checks the price every minute and POSTs a JSON event to your HTTPS webhook on the first crossing: {event:"trigger.fired", id, symbol, direction, price, fired_price, fired_at}, signed with HMAC-SHA256 (header X-NythosX-Signature: sha256= over the raw body, key = returned secret). Retries up to 5 times (8s timeout per attempt, until your endpoint returns 2xx); after 5 failed attempts delivery is marked failed — check status free with get_trigger_status (REST: GET /api/v1/triggers/status?id=) to see delivery_attempts/last_error. Expires after ttl_hours (default 168, max 720); cancel any time before it fires, free, with disarm_price_trigger (REST: POST /api/v1/triggers/cancel with {id, secret}) — the arm fee is not refunded, it paid for the monitoring already done. Costs $0.02 USDC per call (x402).
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>",
"direction": "<direction>",
"price": "<price>",
"webhook_url": "<webhook_url>"
},
"name": "arm_price_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| symbol | Yes | Instrument symbol | |
| direction | Yes | ||
| ttl_hours | No | ||
| webhook_url | Yes | Public HTTPS URL that receives the signed trigger.fired event |