API reference
Read your portfolio from your own systems: every position on a given day, and performance between two days.
The API serves the same data as the Syncrone app, for the organization your key belongs to. Object shapes are listed on Models. Market data on DeFi vaults has its own API: see the Vaults API.
Authentication#
Every request sends the key in the x-api-key header. Header names are case-insensitive. Keep the key on a server. Do not ship it in a browser.
Conventions#
- Every parameter but the organization id goes in the query string. A request body is ignored.
- Dates are
YYYY-MM-DD, in UTC. A day's values are its snapshot at 00:00 UTC. - Amounts are in USD unless a field says token units. Returns are in percent (
-2.5is −2.5%) unless a field says ratio. - There is no pagination: a call returns your whole organization. Narrow it with
wallets,chains,protocolsortags. - Figures are computed when you ask: a call can take a few seconds.
Endpoints#
| GET /portfolio/{orgId}/snapshot | Every position, holding and asset of your portfolio on one day, by account. |
| GET /portfolio/{orgId}/performance | PnL and returns between two days: organization, accounts, protocols, positions and tokens. |
Errors#
| Status | Meaning |
|---|---|
| 400 | A parameter is missing or invalid. The body's details says which. |
| 401 | The key is missing, not valid, or doesn't open this route. A path that doesn't exist answers the same, so check the URL first. |
| 403 | With the body {"message":"Forbidden"}: the gateway doesn't know the key. Check the x-api-key header. |
| 403 | With error Forbidden: the key doesn't open this organization. |
| 429 | Too many requests in a short time. Wait, then retry. |
| 500 | The read failed on our side. Retry, or contact us if it persists. |
Error bodies carry error and message, plus details on a 400.