Skip to main content

GET /api/price/batch/metrics

/api/price/batch/metrics

Get current price for a token (9-source fallback)

Endpoint​

GET https://api.web3identity.com/api/price/batch/metrics

Parameters​

NameInTypeRequiredDescription
currencyquerystring❌Target currency (usd, eur, btc)

Example Request​

curl -s "https://api.web3identity.com/api/price/batch/metrics" | jq

Responses​

200 Success​

{
"prices": [
{
"symbol": "ETH",
"price": 3245.67,
"change24h": 2.34
},
{
"symbol": "BTC",
"price": 67890.12,
"change24h": 1.56
},
{
"symbol": "USDC",
"price": 1.0001,
"change24h": 0.01
}
]
}

400 Bad request - invalid parameters​

{
"example": "response"
}

402 Payment required - free tier exhausted​

{
"example": "response"
}

404 Resource not found​

{
"example": "response"
}

429 Rate Limited​

{
"example": "response"
}

500 Internal Server Error - Something went wrong on our end​

{
"error": "Internal server error",
"code": "INTERNAL_ERROR"
}

Auto-generated from OpenAPI spec