Api Endpoint

x402-catalog-history.ai-business-surface.workers.dev

OHLCV candles for one crypto pair from Coinbase Exchange in one GET: time, open, high, low, close and volume, newest first, with the source URL and fetch time. curl: GET /candles?pair=BTC-USD&granularity=3600&limit=24 (granularity 60|300|900|3600|21600|86400 seconds, default 3600; limit 1-300, default 24; pair defaults to BTC-USD). Response: {"pair":"BTC-USD","granularity_seconds":3600,"count":24,"candles":[{"unix":1792670400,"time":"2026-10-22T12:00:00.000Z","open":81656.69,"high":81816.21,"low":81605.44,"close":81746.7,"volume":95.50529109}],"source":{"name":"Coinbase Exchange","http_status":200,"latency_ms":210}}. The exchange is read once after payment; a pair it does not list is a 502 and is not charged. 0.005 USDC, no account, no key, one GET, one delivery. A purchase is two calls by design: this first call returns 402 with the price and the payment terms, and you then repeat the same request with the PAYMENT-SIGNATURE header to receive the 200 delivery.

Open interactive test console

Offering

Provider
x402-catalog-history.ai-business-surface.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402-catalog-history.ai-business-surface.workers.dev/candles
MIME type
application/json
First seen
2026-10-23T22:47:46.408Z
Last seen
Tags
Crypto, OHLCV, Candles, market-data, Price, Bitcoin

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3"
  }
]

Observed health

Status
Healthy
Latest latency
534 ms
Average latency
696 ms
HTTP status
402
Last checked
Reachability
100% over 8 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "product_id": {
      "type": "string"
    },
    "snapshot": {
      "type": "object"
    },
    "period": {
      "type": "object"
    },
    "changes": {
      "type": "array"
    },
    "latest": {
      "type": "object"
    }
  },
  "required": []
}