test_rule
[measured] Test a trigger against our hourly archive BEFORE acting on it or alerting on
it: when was this rule true before, and what did price do next? Returns matched hours,
independent episodes (one per 24 h) with each one's 24 h and 72 h return, the outcome
statistics (share up, median, quartiles, worst, best), the unconditional base rate over the
same hours, whether the rule is true right now, and a verdict on sample size. The rule
syntax is the condition-alert syntax, so a rule that tests well becomes create_alert(type=
'condition', ...) with the same metric/op/threshold. Frequencies from our archive (hourly,
since 2026-07 for BTC/ETH/SOL), NOT a forecast. Priced: $0.10 per call (x402), 20 prepaid credits, a free
key's daily quota (100 metered calls), or Pro/Bot.
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": {
"rules": "<rules>"
},
"name": "test_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | No | Base asset, e.g. BTC, ETH, SOL (no USDT suffix). | BTC |
| rules | Yes | Up to 3 rules joined by commas or 'and', each metric>threshold or metric<threshold. Metrics: price_chg_1h_pct, price_chg_24h_pct, oi_chg_1h_pct, oi_chg_24h_pct, funding_apr_pct, long_pct, liq_1h_usd, liq_24h_usd. Example: funding_apr_pct>40,oi_chg_24h_pct>5 | |
| api_key | No | LiquidVision API key (lv_...). Omit when the key is sent as the X-API-Key header on the connection. |