81trust / 100

Crypto Market Snapshot

by Live Crypto Market Snapshot in Markets & finance

x402 APIPassing, checked 54 min ago

Fetch current USD price, market capitalization, 24-hour trading volume, 24-hour percentage change, and source update time for up to 20 crypto assets in one call.

GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/crypto_market_snapshot

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
152 ms typical, 152 ms slowest 5%
Last check
54 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/crypto_market_snapshot?symbols=btc%2Ceth%2Csol%2Cxrp"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fai-data-marketplace-1042299154756.us-central1.run.app%2Fapi%2Fv1%2Fcrypto_market_snapshot
const res = await pay("https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/crypto_market_snapshot?symbols=btc%2Ceth%2Csol%2Cxrp");
console.log(await res.json());

Example input

{
  "symbols": "btc,eth,sol,xrp"
}

Example output

{
  "assets": [
    {
      "change_24h_percent": 1.2,
      "id": "bitcoin",
      "market_cap_usd": 2000000000000,
      "price_usd": 100000,
      "volume_24h_usd": 50000000000
    }
  ],
  "count": 4,
  "quote_currency": "USD",
  "success": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
54 min agoPassed402152 ms$0.004
6 h agoPassed402153 ms$0.004