Crypto Prices
Get live cryptocurrency prices, 24-hour change, market cap, and trading volume for 20+ major coins. Prices are sourced from CoinGecko and cached for up to 5 minutes.
Overview
Use Cases
- Crypto portfolio dashboards
- Price alert systems
- Financial apps and widgets
- Trading bots and analytics tools
Features
20+ supported coins: BTC, ETH, SOL, BNB, XRP, ADA, DOGE, and more
24-hour price change percentage
Market cap and trading volume
Results cached for 5 minutes for low latency
API Endpoints
Get Crypto Price
Returns current price data for the given cryptocurrency symbol.
GET
https://api.requiems.xyz/v1/finance/crypto/{symbol}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string |
Required | Uppercase ticker symbol (e.g. BTC, ETH, SOL) |
Try it out
Live DemoRequest
Uppercase ticker symbol (e.g. BTC, ETH, SOL)
Sending request...
Response Fields
| Field | Type | Description |
|---|---|---|
| symbol | string |
Uppercase ticker symbol |
| name | string |
Full coin name |
| price_usd | number |
Current price in USD |
| change_24h | number |
Price change over the last 24 hours as a percentage |
| market_cap | number |
Total market capitalisation in USD |
| volume_24h | number |
Total trading volume over the last 24 hours in USD |
Code Examples
curl https://api.requiems.xyz/v1/finance/crypto/BTC \
-H "requiems-api-key: YOUR_API_KEY"
import requests
url = "https://api.requiems.xyz/v1/finance/crypto/BTC"
headers = {"requiems-api-key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
data = response.json()["data"]
print(f"{data['name']}: ${data['price_usd']:,.2f}")
const response = await fetch('https://api.requiems.xyz/v1/finance/crypto/BTC', {
headers: { 'requiems-api-key': 'YOUR_API_KEY' }
});
const { data } = await response.json();
console.log(`${data.name}: $${data.price_usd.toLocaleString()}`);
require 'net/http'
require 'json'
uri = URI('https://api.requiems.xyz/v1/finance/crypto/BTC')
request = Net::HTTP::Get.new(uri)
request['requiems-api-key'] = 'YOUR_API_KEY'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(request)
end
data = JSON.parse(response.body)['data']
puts "#{data['name']}: $#{data['price_usd']}"
Error Responses
unknown_symbol
The symbol is not in the supported coin list.
upstream_error
CoinGecko is unavailable or returned an unexpected response.
Frequently Asked Questions
BTC, ETH, BNB, XRP, ADA, SOL, DOGE, DOT, MATIC, AVAX, LINK, LTC, UNI, ATOM, TRX, XLM, ALGO, NEAR, FTM, SHIB. Pass the symbol in uppercase or lowercase β both are accepted.
Prices are cached for 5 minutes to reduce latency and upstream load. For real-time trading use cases, check the timestamp in the metadata envelope.
Yes, all prices are denominated in USD. For other currency conversions use the Exchange Rate API alongside this endpoint.