---
title: "Current price and 24h market figures of one token, by ticker symbol or by contract address."
method: POST
path: "/v2/ops/crypto.token.price"
tags: ["crypto"]
---

# Current price and 24h market figures of one token, by ticker symbol or by contract address.

`POST /v2/ops/crypto.token.price`

## Request

- Base URL: `https://api.agentkey.app`
- URL: `https://api.agentkey.app/v2/ops/crypto.token.price`
- Auth: HTTP bearer

Looks up one token's latest USD quote. Pass symbol (BTC, ETH, SOL) for coins and listed tokens, or address + chain for any on-chain token contract. Exactly one of symbol / address is accepted per call.

Fixed price: 0.6 credits per successful call, whichever provider serves it.

## Request body

- object
  - `address` string: Token contract address (0x… on EVM chains). Routes to on-chain providers; pair it with chain.
  - `chain` 'ethereum' | 'polygon' | 'bsc' | 'arbitrum' | 'optimism' | 'base' | 'avalanche': Chain the contract lives on. Only used with address.
  - `fields` string[]: Projection: keep only these dotted paths of data, e.g. ["items.id", "items.text"].
  - `include_raw` boolean: Attach the raw upstream payload as `raw` (not a stable contract; truncated above 256 KB).
  - `provider` string: Shorthand for routing.only = [provider].
  - `routing` Routing: Provider routing override. order: try these providers first; only: restrict to these (equivalent to pinning); allow_fallbacks: false tries only the first eligible provider.
    - `allow_fallbacks` boolean: false = try only the first eligible provider.
    - `only` string[]: Restrict to these providers.
    - `order` string[]: Providers to try first, in order.
    - `strategy` 'auto': How eligible providers are ordered. auto = the method's curated order. fastest / stable / popular are specified but not implemented yet (400 until then). The price is fixed whatever the strategy; mutually exclusive with order.
  - `symbol` string: Ticker symbol (BTC, ETH, USDC). Routes to market-data providers. Case-insensitive.

## Response `200`

Success envelope

- TokenPriceEnvelope: Success envelope whose data is a TokenPrice.
  - `attempts` Attempt[], required
    - `error_type` string: validation | not_found | rate_limit | timeout | upstream_unauthorized | upstream_unavailable | provider_error
    - `provider` string, required: Provider slug.
    - `refunded` boolean: true when the reservation for this attempt was refunded.
    - `status` integer, required: HTTP status AgentKey mapped this attempt to (200 on success).
    - `took_ms` integer, required
    - `tool` string, required: Registry tool name (Provider/operation) that was called.
    - `upstream_status` integer: The provider's real HTTP status; absent when nothing was received.
  - `credits_charged` number, required: Credits charged for this call (the method's fixed price).
  - `data` object, required: The current price of one token, looked up by symbol or by contract address.
    - `contract` object, required: On-chain identity when the lookup was by contract, or when the provider reports one; both null for native coins looked up by symbol.
      - `address` string, nullable, required: Contract address on `chain`.
      - `chain` string, nullable, required: Chain slug (ethereum, bsc, …).
    - `name` string, nullable, required: Token name when the provider reports one.
    - `quote` TokenQuote, required: Market quote of one token in one quote currency.
      - `as_of` string, date-time, nullable, required: Time the quote was computed, RFC 3339 UTC.
      - `change_1h_pct` number, nullable, required: Price change over the last hour, in percent (1.5 = +1.5%).
      - `change_24h_pct` number, nullable, required: Price change over the last 24 hours, in percent.
      - `change_7d_pct` number, nullable, required: Price change over the last 7 days, in percent.
      - `currency` string, required: ISO 4217 code of the quote currency (USD).
      - `fdv` number, nullable, required: Fully diluted valuation in `currency`.
      - `market_cap` number, nullable, required: Circulating market capitalization in `currency`.
      - `price` number, nullable, required: Last price in `currency`.
      - `volume_24h` number, nullable, required: Trading volume over the last 24 hours in `currency`.
    - `symbol` string, nullable, required: Ticker symbol (BTC, USDC).
  - `op` string, required: Method name.
  - `op_version` integer, required: Method version that served the call.
  - `provider` string, required: Provider that actually served the call.
  - `raw` unknown
  - `raw_truncated` boolean
  - `request_id` string, required: Correlation id; quote it in support requests.
  - `took_ms` integer, required
  - `unsupported_fields` string[], required: Output paths this provider structurally does not supply; such fields are null for a different reason than 'missing on this record'.

## Other responses

- `400`: Validation error (unknown field, bad cursor, bad routing)
- `402`: Insufficient credits
- `404`: Not found (method, or upstream object)
- `429`: Rate limited upstream
- `502`: All providers failed
- `504`: Timed out

---

[API](https://skmtc.dev/agentkey/apis/agentkey-scenario-methods.md) - [All operations](https://skmtc.dev/agentkey/apis/agentkey-scenario-methods/llms.txt) - [OpenAPI document](https://skmtc.dev/agentkey/apis/agentkey-scenario-methods/revisions/a7cf5b682fdd?raw)
