Get a crypto exchange rate (any pair)
GET
/api/crypto/exchange-rateReturns the current reference rate between two cryptocurrencies: how many units of `to` one unit of `from` is worth. Every supported crypto carries a USD price, and the rate is the ratio of the two prices, so any pair works even when no exchange lists it directly. Prices refresh in 10-minute windows; see the `updated` timestamp. Use `USD` on either side for a straight dollar price.
Authentication
Send your API key in the x-api-key header on every request. Create and manage keys under API keys in your dashboard; the free plan needs no credit card. Requests without a key return 401 UNAUTHORIZED.
Query parameters
fromstringrequired- Crypto symbol
tostringrequired- Crypto symbol
Response
fromstringtostringratenumberupdatedstring<date-time>Errors
- 400
VALIDATION_ERROR - Invalid query parameters.
- 401
UNAUTHORIZED - Missing or invalid API key.
- 404
UNKNOWN_ASSET - Unknown currency or crypto.
- 429
USAGE_LIMIT_EXCEEDED - Too many requests: per-key or per-IP burst rate limit exceeded (RATE_LIMIT_EXCEEDED) or monthly request quota reached (USAGE_LIMIT_EXCEEDED).
- 500
INTERNAL_ERROR - Unexpected server error.
- 502
UPSTREAM_ERROR - Exchange-rate provider failure.