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.
Descripción general
Casos de uso
- Crypto portfolio dashboards
- Price alert systems
- Financial apps and widgets
- Trading bots and analytics tools
Funcionalidades
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
Puntos finales de la API
Get Crypto Price
Returns current price data for the given cryptocurrency symbol.
GET
https://requiems.xyz/v1/finance/crypto/{symbol}
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| symbol | string |
Obligatorio | Uppercase ticker symbol (e.g. BTC, ETH, SOL) |
Pruébalo
Demostración en vivoSolicitud
Uppercase ticker symbol (e.g. BTC, ETH, SOL)
Sending request...
Campos de respuesta
| Campo | Tipo | Descripción |
|---|---|---|
| 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 |
Ejemplos de código
curl https://requiems.xyz/v1/finance/crypto/BTC \
-H "requiems-api-key: YOUR_API_KEY"
import requests
url = "https://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://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://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']}"
Respuestas de error
unknown_symbol
The symbol is not in the supported coin list.
upstream_error
CoinGecko is unavailable or returned an unexpected response.
Preguntas frecuentes
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.