https://b-api.lbkrs.com/v1/portfolio/query_equity_holding_summaryProduction: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz
Authorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Permission
The Broker ACCESS_TOKEN must be granted the permission below, or the call will be rejected.
Request body application/json
Client Type. Client type.
- Join multiple values with a comma
, - Omit this parameter to query all client types
- Example:
1,2
1 · Personal Client2 · Corporate Client3 · Joint Client
Account Type. Account type.
- Join multiple values with a comma
, - Omit this parameter to query all account types
- Example:
M,C
Note: An invalid combination of account type and
equity_type(for example, futures accountFwith fundFUND) returns400.
M · MarginC · CashF · Futures
AE. Filter 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.
Values currently documented:
= · Unassigned
Asset-type filter for the holding summary. Only one value is supported.
STOCK · StockOPTION · OptionFUND · FundBOND · BondMMF · MMFOTC · OtherCRYPTO · CryptoWM · OTC Derivatives
Page number to query, starting from 1.
Page Size. Maximum number of records to return per page. Use a positive integer.
Responses
HTTP 200The request was processed successfully. data contains total_holdings, page, page_size, total_page, total.codemessagedatadataobjectdata structureHoldings. Returned value: List of holdings.
Child attributes
Counter ID. Returned value: Counter ID.
Asset type. Values are the same as the request parameter equity_type.
STOCK · StockOPTION · OptionFUND · FundBOND · BondMMF · MMFOTC · OtherCRYPTO · CryptoWM · OTC Derivatives
Symbol Name. Localized name, returned per Accept-Language.
Holding Quantity. Returned value: Holding Quantity.
Closing Price. Returned value: Closing Price.
Holding Market Value. Returned value: Holding Market Value.
Settled. Returned value: Settled.
Outstanding. Returned value: Outstanding.
T+0 quantity to be settled. Returned value: T+0 quantity to be settled.
T+1 quantity to be settled. Returned value: T+1 quantity to be settled.
T+2 quantity to be settled. Returned value: T+2 quantity to be settled.
T+N quantity to be settled. Returned value: T+N quantity to be settled.
Symbol. Instrument code; empty for some holdings.
Page. Returned value: Current page number.
Page Size. Returned value: Number of records per page in this response.
Total Pages. Returned value: Total number of result pages.
Total. Returned value: Total number of matching records, used for pagination.
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