X4
Market Data · x402 · early usage

Get live cryptocurrency price and market data from Coinbase Exchange for BTC, ETH, SOL,…

Get live cryptocurrency price and market data from Coinbase Exchange for BTC, ETH, SOL, and other supported trading pairs. Use this crypto market API for last price, best bid and ask, 24-hour open/high/low/volume, and 30-day volume. Defaults to BTC-USD.

by x402-trends-server.onrender.com · discovered, not yet claimed by its owner · updated 2026-10-13

30d calls6
30d payers3
MethodGET
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Get live cryptocurrency price and market data from Coinbase Exchange for BTC, ETH, SOL, and other supported trading pairs. Use this crypto market API for last price, best bid and ask, 24-hour open/high/low/volume, and 30-day volume. Defaults to BTC-USD.

Tags: bazaar

Call contract

Method
GET
Input
query parameters
Output
json
Last paid call
2026-10-13
Input example from Bazaar metadata
{
  "pair": "BTC-USD"
}
Output example
{
  "bestAsk": "63058.25",
  "bestBid": "63058.24",
  "cached": false,
  "high24h": "64000.00",
  "last24h": "63058.25",
  "lastTradeSize": "0.001",
  "low24h": "61500.00",
  "open24h": "62000.00",
  "pair": "BTC-USD",
  "payment": "verified",
  "price": "63058.25",
  "retrievedAt": "2026-08-15T20:00:00.000Z",
  "source": "Coinbase Exchange",
  "status": "success",
  "tickerTime": "2026-08-15T20:00:00.000Z",
  "volume24h": "10000.0",
  "volume30d": "300000.0"
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/32463.json for the price and payment options.
  3. Pay. Call GET https://x402-trends-server.onrender.com/api/crypto-market. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.05 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
6 calls · 3 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.050xF61F957D9aC432309219549b1Ae79Ae8b7C71fF5300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xF61F957D9aC432309219549b1Ae79Ae8b7C71fF5",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "50000",
    "amountUsd": 0.05,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "additionalProperties": false,
      "properties": {
        "bestAsk": {
          "type": [
            "string",
            "null"
          ]
        },
        "bestBid": {
          "type": [
            "string",
            "null"
          ]
        },
        "cached": {
          "type": "boolean"
        },
        "high24h": {
          "type": [
            "string",
            "null"
          ]
        },
        "last24h": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastTradeSize": {
          "type": [
            "string",
            "null"
          ]
        },
        "low24h": {
          "type": [
            "string",
            "null"
          ]
        },
        "open24h": {
          "type": [
            "string",
            "null"
          ]
        },
        "pair": {
          "type": "string"
        },
        "payment": {
          "type": "string"
        },
        "price": {
          "type": [
            "string",
            "null"
          ]
        },
        "retrievedAt": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "tickerTime": {
          "type": [
            "string",
            "null"
          ]
        },
        "volume24h": {
          "type": [
            "string",
            "null"
          ]
        },
        "volume30d": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "status",
        "source",
        "pair",
        "price",
        "bestBid",
        "bestAsk",
        "open24h",
        "high24h",
        "low24h",
        "volume24h",
        "volume30d",
        "retrievedAt",
        "cached"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "bestAsk": "string",
    "bestBid": "string",
    "cached": true,
    "high24h": "string",
    "last24h": "string",
    "lastTradeSize": "string",
    "low24h": "string",
    "open24h": "string",
    "pair": "string",
    "payment": "string",
    "price": "string",
    "retrievedAt": "string",
    "source": "string",
    "status": "string",
    "tickerTime": "string",
    "volume24h": "string",
    "volume30d": "string"
  },
  "type": "string"
}

Examples

curl
curl "https://x402-trends-server.onrender.com/api/crypto-market"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402-trends-server.onrender.com/api/crypto-market");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://x402-trends-server.onrender.com/api/crypto-market")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
x402-trends-server.onrender.com
Endpoint
https://x402-trends-server.onrender.com/api/crypto-market
Machine-readable
/resources/32463.json