How often a condition occurred in 90 days (paid)
btcmatic_condition_frequencyCounts how often a Bitcoin market condition becomes true in the trailing 90 days, reporting the frequency and duration in hours. Uses metrics like price change, fees, and mempool size with threshold operators.
Instructions
Counts, at hourly resolution, how often a single condition became true in the trailing 90 days (rising edges — what a throttled rule would have fired) and how many hours it held. Metrics: price_change_pct (needs window 1h|24h|7d), fee_next_block (sat/vB), mempool_vsize (vbytes). Operators: <, <=, >, >=. Past frequency, not a forecast.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| value | Yes | ||
| metric | Yes | ||
| window | No | price_change_pct only; default 24h | |
| preimage | No | The preimage your wallet showed after paying the bolt11 from the offer | |
| payment_hash | No | From a previous 402 offer (with preimage) — proof of a settled per-call payment |