One coin's price snapshot (lightweight)
Keyless price-only subset of /api/coins/{slug} for polling: the same price, change, volume, market-cap, all-time high/low, supply and BTC/ETH ratio fields with the same decimal-string numerics and the same fiat behaviour, without links, chains, categories, notices, volumeMissingVenues or watchlist counts.
priceUpdatedAt here is the write time of the coin's price-summary row, and priceAgeHours/priceStale derive from it. A periodic recompute can rewrite that row without a new price, so priceStale can read false for a price whose feed has stopped. For a staleness decision read /api/coins/{slug} or /api/live-prices, whose priceUpdatedAt is the live-price write time, and check marketCapSuspect.
Query parameters other than fiat are ignored. Unknown slug, or a coin with no price summary: 404 {"message": "not_found"}. Also served at /api/v1/coins/{slug}/price with identical behaviour.
Request
- Base URL: https://api.coinrithm.com
- URL: https://api.coinrithm.com/api/coins/{slug}/price
- Auth: none required
Path parameters
Coin slug as on the website, for example bitcoin (the slug of a /api/coins or /api/live-prices row).
Query parameters
Upper-case currency code CoinRithm tracks, for example EUR, GBP or JPY (default USD). Case-sensitive and not validated: an untracked or lower-case code returns USD values with nothing in the body saying so. At most 10 characters, or 400.
Response
Price snapshot with its as-of time
Example response
{
"currentPriceUsd": "81915.0561485573",
"change24h": "1",
"marketCapSuspectReason": "stale_dead_pair"
}Changes
No recorded changes to this operation across all 1 revision of this API.