Skip to main content
POST
/
portfolio
/
state
Get Portfolio State
curl --request POST \
  --url http://localhost:8000/portfolio/state \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_names": [
    "<string>"
  ],
  "connector_names": [
    "<string>"
  ],
  "skip_gateway": false,
  "refresh": false
}
'
{}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request model for filtering portfolio state

account_names
string[] | null

List of account names to filter by

connector_names
string[] | null

List of connector names to filter by

skip_gateway
boolean
default:false

Skip Gateway wallet balance updates for faster CEX-only queries

refresh
boolean
default:false

If True, refresh balances before returning. If False, return cached state

Response

Successful Response

{key}
object