Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

GET /subaccounts

List the authenticated account's subaccounts, with each subaccount's balances and positions. See Subaccounts.

GET https://api.aevo.xyz/subaccounts

Authentication required. Include your AEVO-KEY and AEVO-SECRET headers. See Authentication. Read-only API keys can call this endpoint.

Call it with the main account's API key and no AEVO-SUBACCOUNT header. If the authenticated account is itself a subaccount, parent is returned and subaccounts is empty.

Example Request

curl --request GET \
     --url https://api.aevo.xyz/subaccounts \
     --header 'accept: application/json' \
     --header 'AEVO-KEY: <your-api-key>' \
     --header 'AEVO-SECRET: <your-api-secret>'

Responses

200 — The account's subaccounts.

Field
Type
Required
Description

account

string

Yes

The authenticated account. Example: 0xYourMainAccountAddress

parent

string

No

The main account. Only returned when the authenticated account is a subaccount.

max_subaccounts

integer

No

Maximum number of active subaccounts per main account. Omitted while subaccounts are not enabled. Example: 10

subaccounts

array

Yes

The account's subaccounts, including archived ones.

subaccounts[].subaccount

string

Yes

Subaccount address. Example: 0xYourSubaccountAddress

subaccounts[].name

string

Yes

Subaccount name. Example: Market Making

subaccounts[].archived

boolean

Yes

True if the subaccount is archived. Example: false

subaccounts[].balances

array

Yes

Collateral balances, in the same format as collaterals in GET /account.

subaccounts[].positions

array

Yes

Open positions, in the same format as GET /positions.

401 — Unauthorized.

Field
Type
Required
Description

error

string

Yes

Error message. Example: UNAUTHORIZED

429 — Rate limit exceeded.

Field
Type
Required
Description

error

string

Yes

Error message. Example: RATE_LIMIT_EXCEEDED

500 — Internal server error.

Field
Type
Required
Description

error

string

Yes

Error message. Example: INTERNAL_ERROR

Last updated

Was this helpful?