https://b-api.lbkrs.com/clearing/get_settlement_and_sub_positionProduction: 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
Asset account ID identifying the account for this trade. This field is required.
Trade direction. This field is required.
1 · Buy2 · Sell
Open or close type. This field is required.
OPEN · OpenCLOSE · Close
Trading counter identifier. This field is required.
Responses
HTTP 200The request was processed successfully. data contains the settlement channel and sub-position information.codemessagedatadataobjectdata structureSettlement channel enum value.
Settlement channel name.
Sub-position (large account) number.
Whether the large account needs to be shown.
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