π² Crypto Prices
This helps any web3 app developer to quickly query the exchange rate of a crypto against more than 165 fiat currencies.
The Crypto Price API lets you fetch real-time and historical exchange rates for tokens, stablecoins, and contract-based assets. Instead of maintaining your own price feeds or oracles, you can query Tatumβs API to get normalized rates across multiple chains and assets.
This helps you build applications like wallets, dashboards, trading tools, and payment gateways without relying on external indexers or running your own price services.
What You Can Do?
- Get token prices by symbol (e.g., ETH β USD).
- Get token prices by contract address (useful for ERC-20, BEP-20, and other smart contract tokens).
- Fetch multiple symbols at once for portfolio views or analytics.
- Use rates for fee estimation, balances, and portfolio valuation.
Limits and Recommendations
Exchange rate endpoints are designed to be lightweight, but rate providers update at varying intervals.
Keep in mind:
- Rates are not instantaneous on-chain prices but are aggregated from multiple sources.
- For fast-changing DeFi tokens, refresh rates frequently if your application depends on up-to-the-minute pricing.
- Cache responses for commonly used symbols (like BTC, ETH, USDC) to save on API usage and improve performance.
Available Endpoints to get Crypto Prices
Get Exchange Rate by Symbol (Popular)
GET /v4/data/rate/symbol
Fetch the current exchange rate for a single crypto or fiat asset.
Explore Docs β
Get Multiple Exchange Rates by Symbol (Batch)
POST /v4/data/rate/symbol/batch
Retrieve exchange rates for multiple crypto/fiat pairs in a single request.
Explore Docs β
Get Exchange Rate by Contract Address
GET /v4/data/rate/contract
Fetch the exchange rate for a crypto asset using its contract address on a supported blockchain.
Explore Docs β
Request Examples
Request a single rate (ETH β USD)
curl βlocation β<https://api.tatum.io/v4/exchange-rate/ETH/USDβ>
βheader βx-api-key: {YOUR_API_KEY}β
Request multiple rates at once (BTC, ETH, USDC)
curl βlocation β<https://api.tatum.io/v4/exchange-rate/symbolsβ>
βheader βx-api-key: {YOUR_API_KEY}β
βdata β{
βsymbolsβ: [βBTCβ, βETHβ, βUSDCβ],
βcurrencyβ: βUSDβ
}β
Request rate by contract address (USDT on Ethereum)
curl βlocation β<https://api.tatum.io/v4/exchange-rate/contract/ETH/0xdAC17F958D2ee523a2206206994597C13D831ec7/USDβ>
βheader βx-api-key: {YOUR_API_KEY}β
Best Practices
- Cache frequently requested rates (BTC, ETH, stablecoins) for performance.
- Refresh volatile DeFi token prices often to reduce slippage risk.
- Use batch endpoints when fetching multiple assets.
- Store historical rates if you need portfolio performance tracking.
- Always validate that the rate source covers your target asset.
Updated 3 days ago