https://b-api.lbkrs.com/v2/billing/exchange_contractProduction: 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
Trading date associated with this request. Use the date format defined by the API. This field is required.
Counter ID associated with this request.
Direction of this business operation. This field is required.
This field is required.
Specifies A/C No.. This field is required.
This field is required.
Custodian ID associated with this request.
Specifies Open/Close. This field is required.
OPEN · OpenCLOSE · Close
Specifies Position. This field is required.
LONG · LongSHORT · Short
Identifies the business scenario to which this request applies.
Used when the instrument type is BOND.
Each item contains order_seq (front-office order number) / quantity / amount / per_value (par value per share) / ibond_interest (accrued interest) / price.
Responses
HTTP 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureNo nested fields
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