Price by Symbol
Get the current or historical price for a crypto asset by ticker symbol.
GET
/v1/prices/by-symbolParameters
| Parameter | Type | Description |
|---|---|---|
| symbol* | string | Ticker symbol (e.g., BTC, ETH, SOL) |
| currencyoptional | string = USD | Fiat currency for price (36 supported) |
| dateoptional | YYYY-MM-DD | Historical date. Omit for current price. |
Request
bash
curl 'https://api.cryptachain.com/v1/prices/by-symbol?symbol=ETH¤cy=EUR' \
-H 'X-API-Key: $CRYPTACHAIN_API_KEY'typescript
const res = await fetch(
'https://api.cryptachain.com/v1/prices/by-symbol?symbol=ETH¤cy=EUR',
{ headers: { 'X-API-Key': process.env.CRYPTACHAIN_API_KEY! } }
);python
res = requests.get(
'https://api.cryptachain.com/v1/prices/by-symbol',
params={'symbol': 'ETH', 'currency': 'EUR'},
headers={'X-API-Key': os.environ['CRYPTACHAIN_API_KEY']}
)Response
Response 200 OK
json
{
"symbol": "ETH",
"currency": "EUR",
"price": 3542.18,
"price_usd": 3850.25,
"fx_rate": 0.92,
"date": "2026-04-04",
"source": "vwap",
"source_count": 18,
"volume_24h_usd": 12847293847.50,
"timestamp": "2026-04-04T23:59:59Z"
}Historical price
Add the date parameter:
bash
curl "https://api.cryptachain.com/v1/prices/by-symbol?symbol=BTC&date=2025-12-31¤cy=EUR" \
-H "X-API-Key: $CRYPTACHAIN_API_KEY"Prices are daily VWAP (midnight-to-midnight UTC). For minute-level precision, use GET /v1/prices/{symbol}/at?timestamp=....