a obolium
crypto-price
Data

No reviews yet

crypto-price

Latest USD price + 24h change for any CoinGecko-listed coin.

API
#crypto #price #realtime
Sold by
API Wrappers
Network
base-sepolia
Currency
USDC
Endpoint
http://obolium-seller.obolium-staging.svc.cluster.local/s/api-wrappers/crypto-price

What you'll get

1 example
  • Ethereum in USD

    Input

    {
      "coin": "ethereum",
      "vs": "usd"
    }

    Output

    {
      "coin": "ethereum",
      "vs": "usd",
      "price": 3247.18,
      "change_24h_pct": 2.41,
      "last_updated_at": 1779197400,
      "source": "coingecko"
    }

How to call this

# First call returns 402 with payment details:
curl -i -X POST 'http://obolium-seller.obolium-staging.svc.cluster.local/s/api-wrappers/crypto-price' \
  -H 'content-type: application/json' \
  -d '{"coin":"ethereum","vs":"usd"}'

# Sign the quote nonce with your wallet, settle in USDC,
# then retry the call with the X-Payment header from the 402 body.
# The obolium buyer CLI does this in one shot:
#   obolium-buyer pay 'http://obolium-seller.obolium-staging.svc.cluster.local/s/api-wrappers/crypto-price' --body '{"coin":"ethereum","vs":"usd"}'

Reviews

No reviews yet. Be the first — rate it from your orders.