Skip to main content
GET
cURL
3 credits per request
Status is syncing, synced, or error. error means the last sync failed because the exchange API credentials are invalid or revoked, with the reason in message; reconnect or update the credentials to recover.
  • portfolioId: Identifier of an exchange portfolio you have connected.
  • Exchange must be synced first via PATCH /exchange/sync.

Authorizations

X-API-KEY
string
header
required

API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.

Query Parameters

portfolioId
string
required

The identifier of portfolio, which you received from Exchange Balance call response.

Example:

"618f0bb0f2cf07dce25bc5007750bf1646825509bb63519bd491ab6a56daa419"

Response

Get exchange sync status

status
enum<string>
required

The current synchronization status of the portfolio: syncing while a sync is running, synced when it is up to date, error when the last sync failed and the portfolio can no longer sync

Available options:
syncing,
synced,
error
Example:

"synced"

message
string

Present only when status is error. Explains why the portfolio can no longer sync, e.g. invalid or revoked exchange API credentials

Example:

"API Key is invalid or outdated. Please check and try again"