GET /api/price/historical/{token}
Historical price at date
Get current price for a token (9-source fallback)
Endpoint​
GET https://api.web3identity.com/api/price/historical/{token}
Parameters​
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | âś… | Token contract address or symbol |
date | query | string | âś… | Date in YYYY-MM-DD format |
currency | query | string | ❌ | Target currency (usd, eur, btc) |
Example Request​
curl -s "https://api.web3identity.com/api/price/historical/:token" | jq
Responses​
200 Price​
{
"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 - 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