Skip to main content
PATCH
/
portfolio
/
sync
Sync Portfolio
curl --request PATCH \
  --url https://openapiv1.coinstats.app/portfolio/sync \
  --header 'X-API-KEY: <api-key>'
{
  "success": true
}
30 credits per request
Trigger a sync for an API-created wallet or exchange portfolio. If portfolioId is omitted, all API-created portfolios will be synced (costs 10x credits).
  • portfolioId: When provided, syncs only that portfolio. When omitted, syncs all portfolios owned by the user.

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

Response

Portfolio sync triggered

success
boolean
required

True when the portfolio sync was successfully triggered.

Example:

true