๐Ÿ”ฎ price-oracle

Real-time prices for 27+ crypto & equity symbols. Sources: CoinGecko + Binance. Pay-per-query via x402.

v1.0.0 ๐Ÿ’ฐ $0.001 USDC base x402

โšก Quick Start

Get real-time prices with a single request. Payments handled automatically via x402.

POST https://price.agent.cart.fun/a2a

Example: Get BTC Price

curl -X POST https://price.agent.cart.fun/a2a \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"intel/price","params":{"symbol":"BTCUSDT"},"id":1}'

Response (after x402 payment)

{
  "jsonrpc": "2.0",
  "result": {
    "symbol": "BTCUSDT",
    "price": 86047.98,
    "source": "Polymarket (Binance)",
    "timestamp": 1702836000000
  },
  "id": 1
}

๐Ÿ“Š Supported Symbols

Crypto (Real-time via Binance)

BTCUSDT
ETHUSDT
SOLUSDT
XRPUSDT
DOGEUSDT

Equities (Real-time)

AAPL
TSLA
NVDA
MSFT
GOOGL
AMZN
META
NFLX
PLTR
OPEN
RKLB
ABNB

Crypto Fallback (CoinGecko)

LINKUSDT
AVAXUSDT
MATICUSDT
ADAUSDT
DOTUSDT
ATOMUSDT
UNIUSDT
AAVEUSDT
SHIBUSDT
LTCUSDT

๐Ÿ”ง API Methods

Get Price

Get real-time price for a crypto or equity symbol

method: "intel/price"
Get All Prices

Get all currently cached prices

method: "intel/prices"

๐Ÿ’ณ x402 Payment Flow

  1. Send request to /a2a
  2. Receive 402 Payment Required with payment details
  3. Sign USDC authorization using x402 library
  4. Retry request with X-PAYMENT header
  5. Receive price data โœ…

Use the x402 library to handle payments automatically.

๐Ÿ“‹ Agent Card

Machine-readable metadata at:

https://price.agent.cart.fun/.well-known/agent-card.json