Prices
Convert between fiat and crypto amounts in real time. This is a public API, no authentication required.
Convert fiat to crypto
Convert crypto to fiat
Get token price
Methods reference
| Method | Description |
|---|---|
convert(params) | Convert between fiat and crypto amounts |
getPrice(symbol, currency?) | Get the current token price in a fiat currency (default USD) |
TypeScript types
Response body reference
All responses are wrapped in { success: true, data: ... }. The fields below describe what's inside data.
getPrice() response
Token Price
symbolstringToken symbol (uppercased), e.g. "ETH"currencystringFiat currency code, e.g. "USD" or "EUR"priceFiatstringCurrent token price in the selected fiat currencycachedAtstringISO 8601 timestamp of when the price was cachedconvert() with amountFiat
Fiat → Crypto
symbolstringToken symbolcurrencystringFiat currency codepriceFiatstringCurrent token price in selected fiatcachedAtstringISO 8601 cache timestampamountFiatnumberFiat amount you providedtokenAmountstringCrypto amount (18-decimal string, e.g. "0.030810000000000000")convert() with tokenAmount
Crypto → Fiat
symbolstringToken symbolcurrencystringFiat currency codepriceFiatstringCurrent token price in selected fiatcachedAtstringISO 8601 cache timestamptokenAmountnumberToken amount you providedamountFiatstringFiat value (8-decimal string, e.g. "4868.50500000")