Get historical share price
Fetch share-price history only.
https://api-v2.syncrone.fi/api/catalog/historical/{network}/{vaultId}/sharePriceShare price per point, oldest first.
Try it#
Example#
A real response to the pre-filled Try it request, recorded from Syncrone data. Values move with every indexing run.
GET /historical/mainnet/0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c/sharePrice?perPage=7&fromTimestamp=1790035200&toTimestamp=1790640000&granularity=1day{
"itemsOnPage": 7,
"nextPage": 1,
"data": [
{
"timestamp": 1790035200,
"blockNumber": "26029315",
"sharePrice": 1.1865527191848566
},
{
"timestamp": 1790121600,
"blockNumber": "26036463",
"sharePrice": 1.1866914072286456
},
{
"timestamp": 1790208000,
"blockNumber": "26043610",
"sharePrice": 1.1868201736381487
},
{
"timestamp": 1790294400,
"blockNumber": "26050748",
"sharePrice": 1.1869445413998565
},
{
"timestamp": 1790380800,
"blockNumber": "26057904",
"sharePrice": 1.1870708848099985
},
{
"timestamp": 1790467200,
"blockNumber": "26065069",
"sharePrice": 1.1871944308861433
},
{
"timestamp": 1790553600,
"blockNumber": "26072221",
"sharePrice": 1.1873174035210805
}
]
}Parameters#
| Name | Type | Description |
|---|---|---|
| networkpathrequired | string | Network name ( |
| vaultIdpathrequired | string | Vault address (the share or receipt token, any case). A vault listed without an address is addressed by its |
| pagequery | integer | Page number, starting from 0. |
| perPagequery | integer | Items per page, 1 to 1000. |
| fromTimestampquery | integer | Start of the period, Unix seconds, inclusive. |
| toTimestampquery | integer | End of the period, Unix seconds, inclusive. Defaults to now. |
| granularityquery | string1day | 1week | Spacing of points. Vaults are indexed once a day at 00:00 UTC, so |
Response#
200 returns JSON with these fields. APY values are fractions (0.04 = 4%); timestamps are Unix seconds.
| Field | Type | Description |
|---|---|---|
| itemsOnPage | integer | Number of items in |
| nextPage | integer | Next page number. Absent on the last page. |
| data[].timestamp | integer | Point time, Unix seconds. |
| data[].blockNumber | string | null | Block the point was read at. |
| data[].sharePrice | number | null | Assets per share since the vault opened, a multiplier (Aave aUSDC ~1.19). Null on bars indexed before the field was stored. |
Errors#
| Status | Meaning |
|---|---|
| 400 | Invalid query or path parameter, or unknown network. |
| 401 | Missing or rejected API key. |
| 404 | No vault with this id on this network. |
| 429 | Too many requests from the docs playground. Wait a minute. |
| 500 | The service failed. |
Error bodies carry error and, for invalid parameters, details.