Prices
The Prices API provides real-time cryptocurrency price data and conversion between fiat and crypto amounts. This is a public API, no authentication required.
Convert currency
GET
/prices/convertConvert between fiat and a cryptocurrency token amount. Provide either amountFiat (fiat → crypto) or tokenAmount (crypto → fiat).
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Token symbol (e.g. "ETH", "USDC") |
currency | string | No | Fiat currency code (default: "USD") |
amountFiat | number | One of | Fiat amount to convert to crypto |
tokenAmount | number | One of | Token amount to convert to USD |
💡
One of two
Provide either
amountFiat or tokenAmount, not both. The API will calculate the other direction. amountUsd is still accepted for backward compatibility.Response
Convert response fields
symbolstringToken symbol (e.g. ETH, USDC)currencystringFiat currency for conversion (e.g. USD, EUR)priceFiatstringCurrent token price in the selected fiat currencycachedAtstringISO 8601 timestamp when the price was cachedamountFiatstringFiat amount (input or computed, 8-decimal string when computed)tokenAmountstringToken amount (input or computed, 18-decimal string when computed)Get token price
GET
/prices/:symbolReturns the current price of a token in the requested fiat currency (default: USD).
Response
Get price response fields
symbolstringToken symbolcurrencystringFiat currency for the quotepriceFiatstringCurrent price in the selected fiat currencycachedAtstringISO 8601 timestamp when the price was last fetched