Skip to main content

GET /api/historical/price/{token}

Historical token price

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

Endpoint​

GET https://api.web3identity.com/api/historical/price/{token}

Parameters​

NameInTypeRequiredDescription
tokenpathstringâś…Token symbol or address
fromquerystring❌Start date (YYYY-MM-DD)
toquerystring❌End date (YYYY-MM-DD)

Example Request​

curl -s "https://api.web3identity.com/api/historical/price/:token" | jq

Responses​

200 Success​

{
"symbol": "ETH",
"prices": [
{
"timestamp": 1707350400,
"price": 3200.45,
"volume24h": 15200000000
},
{
"timestamp": 1707264000,
"price": 3178.92,
"volume24h": 14800000000
},
{
"timestamp": 1707177600,
"price": 3156.33,
"volume24h": 15400000000
}
]
}

400 Bad request - invalid parameters​

{
"example": "response"
}

402 Payment required​

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