Alert check (stateless, read-only)
alert_checkTests a one-shot threshold against current OKX public market data to verify a market condition without creating persistent alerts or accessing account credentials.
Instructions
Evaluate a one-shot threshold against the latest OKX public market data. No persistent alerts, no notifications, no writes. READ-ONLY: this tool only calls OKX public market REST. No API key, no order, no account access. Metrics last/high24h/low24h/changePercent24h/bidAskSpreadPct use the ticker; fundingRate needs a -SWAP instId; openInterest needs SWAP or FUTURES.
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": {
"instId": "<instId>",
"metric": "<metric>",
"op": "<op>",
"threshold": "<threshold>"
},
"name": "alert_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Comparison operator. | |
| instId | Yes | Instrument ID, e.g. BTC-USDT or BTC-USDT-SWAP. | |
| metric | Yes | Which value to test. | |
| threshold | Yes | Numeric threshold. |