Wallet Information
Querying balances and holdings for your sub-accounts
Funds and Wallet Information
This guide covers retrieving balance and wallet information for your sub-accounts.
Overview
Wallet information is organized by sub-account (portfolio). Each sub-account maintains its own balances across multiple instruments.
Prerequisites
- Authenticated session (JWT or API key)
CanReadpermission- Access to at least one sub-account
Step 1: List Your Sub-Accounts
First, retrieve the sub-accounts you have access to.
Endpoint: GET /api/rest/v1/sub-accounts/mine
Request
Response (200 OK)
Sub-Account Fields
Step 2: Get Balances for a Sub-Account
Retrieve all balances for a specific sub-account.
Endpoint: GET /api/rest/v1/balances/by-sub-account/{subAccountId}
Request
Query Parameters
This endpoint supports standard pagination, sorting, and filtering.
Endpoint-specific parameters:
Supported filters: instrument_id, exclude_zero_balances
Response (200 OK)
Balance Fields
Step 3: Get Specific Balance
Query a single balance by its ID.
Endpoint: GET /api/rest/v1/balances/by-sub-account/{subAccountId}/{id}
Request
Response (200 OK)
Step 4: Get Balance History
Retrieve historical movements for a specific balance.
Endpoint: GET /api/rest/v1/balances/by-sub-account/{subAccountId}/{balanceId}/history
Request
Response (200 OK)
Balance History Fields
Step 5: Get Historical Aggregates
Get aggregated balance snapshots over time for a sub-account.
Endpoint: GET /api/rest/v1/balances/by-sub-account/{subAccountId}/histagg
Request
Query Parameters
Response (200 OK)
Aggregate Fields
Error Scenarios
Related
- Trading Data - Market data and trading information
- Deposits & Withdrawals - Managing deposits and withdrawals
- Domains: Assets - Instrument and balance documentation