attest_price_event
Settlement verdict plus a citable record: a signed decision_id, an integrity hash over the evidence, and every candle that determined the outcome. Use this when the answer may later have to be defended to a counterparty, not when you just need to know. KEEP THE decision_id — it is self-contained, so anyone you show it to can authenticate it for free and re-check it for $0.02 without you supplying anything else. Paid: $0.25 in USDC via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO-8601 window end. Defaults to now. | |
| from | No | ISO-8601 window start. Defaults to 24h before `to`. | |
| mode | No | touch (default) or close | |
| asset | Yes | Asset symbol, e.g. BTC, ETH, SOL | |
| operator | Yes | Comparison against the threshold | |
| threshold | Yes | Price threshold in USD | |
| payment_header | No | X-PAYMENT header from a settled x402 payment. |