https://b-api.longbridge.xyz/v1/portfolio/query_account_balances_summaryAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Parameters
client_typesstringClient type.
- Join multiple values with a comma
, - Omit this parameter to query all client types
- Example:
1,2
account_typesstringAccount type.
- Join multiple values with a comma
, - Omit this parameter to query all account types
- Example:
F,C
broker_codesstringFilter by broker (AE) code.
- Join multiple values with a comma
, - Omit this parameter to query all brokers
=means unassigned- Example:
=,LBtestwbwhale123
Query the complete AE code list through GET /v1/datasets/refs/broker_accounts. Values vary
by tenant and environment.
Responses
HTTP 200The request was processed successfully. data contains total_assets, total_asset_type, total_asset_currency, total_balance.codemessagedatadataobjectdata structureTotal Assets (by currency). Total assets per currency, used for the total-assets display and currency switching at the top.
Child attributes
Currency. e.g. HKD/USD/CNY/SGD
Amount. Total asset amount for this currency (decimal string).
Total Asset by Type. Proportion by asset type (total-assets type pie chart).
Child attributes
Equity Type. Asset-type key, such as CASH, US, HK, CN, OTHER, or FUND.
Call GET /v1/datasets/refs/equity_type_summary to retrieve the complete dynamic value set.
Type Name. Localized display name of the asset type, returned per Accept-Language (e.g. Cash).
Ratio (decimal string); multiply by 100 to show a percentage.
Total Asset by Currency. Proportion by currency (total-assets currency pie chart).
Child attributes
Currency. Returned value: Currency.
Ratio. Decimal string, range 0–1; multiply by 100 to show a percentage.
Total Cash. Book total-cash details (by currency, corresponding to the "Book Total Cash" table).
Child attributes
Currency. Returned value: Currency.
Total Cash. Decimal string.
Settled. Returned value: Settled.
Outstanding. Returned value: Outstanding.
T+0 amount to be settled. Returned value: T+0 amount to be settled.
T+1 amount to be settled. Returned value: T+1 amount to be settled.
T+2 amount to be settled. Returned value: T+2 amount to be settled.
T+N amount to be settled. Returned value: T+N amount to be settled.
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields