Skip to content

Get current prices for assets

GET
/asset-prices
curl --request GET \
--url 'http://localhost:8000/api/v1/asset-prices?ids=bitcoin%2Cethereum&vs_currency=usd' \
--header 'Authorization: Bearer <token>'

Returns current CoinGecko prices for the given coin ids in the requested fiat currency, so clients value holdings against the same feed the server uses.

ids
required
string
Example
bitcoin,ethereum

Comma-separated CoinGecko coin ids.

vs_currency
string
default: usd
Example
usd

Prices retrieved

Media type application/json
object
data
object
vs_currency
string
prices
object
Example
{
"data": {
"vs_currency": "usd",
"prices": {
"bitcoin": 65000,
"ethereum": 3200
}
}
}

Unauthenticated

Validation error