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.5 is −2.5%) unless a field says ratio.
  • There is no pagination: a call returns your whole organization. Narrow it with wallets, chains, protocols or tags.
  • Figures are computed when you ask: a call can take a few seconds.

Endpoints#

GET /portfolio/{orgId}/snapshotEvery position, holding and asset of your portfolio on one day, by account.
GET /portfolio/{orgId}/performancePnL and returns between two days: organization, accounts, protocols, positions and tokens.

Errors#

StatusMeaning
400A parameter is missing or invalid. The body's details says which.
401The 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.
403With the body {"message":"Forbidden"}: the gateway doesn't know the key. Check the x-api-key header.
403With error Forbidden: the key doesn't open this organization.
429Too many requests in a short time. Wait, then retry.
500The read failed on our side. Retry, or contact us if it persists.

Error bodies carry error and message, plus details on a 400.