Skip to content
Exception Entry Mgmt

Move Ledger Date by Biz Codes

Moves records under a given old ledger date to a new ledger date in bulk, selected by business code.

Request parameters

  • Required: biz_codes (business codes), old_ledger_date (old ledger date), new_ledger_date (new ledger date), asset_type (record type)
  • See each field for its format, allowed values, and business meaning.

Result

On success, the ledger-date migration is completed. See the 200 response schema for returned data and subsequent state information.

POSThttps://b-api.lbkrs.com/move_ledger_date_by_biz_codes

Production: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Permission

lb_hk_clearing.clear_account_balance_changeslb_hk_clearing.clear_equity_holding_change

The Broker ACCESS_TOKEN must be granted the permission below, or the call will be rejected.

Request body application/json

biz_codesarray<string>required

List of business codes for the records to migrate. This field is required.

old_ledger_dateintegerrequired

Source ledger date in YYYYMMDD format. This field is required.

new_ledger_dateintegerrequired

Target ledger date in YYYYMMDD format. This field is required.

asset_typeintegerrequired

Record type. This field is required.

1 · Balance2 · Equity

Responses

HTTP 200The request was processed successfully. The business result is returned in data as a string.
Standard response envelopecodemessagedata
datastringdata structure

Operation result string.

No nested fields

HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs