v1
latestOpenAPI 3.1.02026-07-13570316.1 KBConvert Fiat to Crypto
Convert fiat currency amount to cryptocurrency token amount. Supports multiple fiat currencies based on available price data for the specific token. Returns the equivalent amount of crypto tokens for the specified fiat amount based on current market prices. If price data is not available for the requested currency, the API will return a 404 error.
Native Tokens: To get the price of native tokens (like ETH on Ethereum), use the address 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE. For example, to get the price of ETH on Ethereum Mainnet (chainId: 1), pass to=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE.
Authentication: Pass x-client-id header for frontend usage from allowlisted origins or x-secret-key for backend usage.
Query parameters
The fiat currency symbol
The fiat currency symbol
The amount of fiat currency to convert
The amount of fiat currency to convert
The blockchain network identifier
The blockchain network identifier
The token address on the specified chain to convert to
The token address on the specified chain to convert to
Response
Conversion completed successfully. Returns the amount of crypto tokens equivalent to the specified fiat amount.
Example response
{
"result": 0.000025
}