Skip to content
Contract Amendments

Recalc Stock Exchange Contract Revise

Recalculate fees from the original contract and the modified fields. Returns the recalculated fee detail only and does not persist anything.

Request parameters

  • Required: old_contract_id (original contract ID)
  • Optional: revised fields such as counter_id, direction, currency, aaid, settlement_channel, settlement_account, stage, trade_date, and order_source.
  • See each field's description for format, value range, and business meaning.

Business notes

This endpoint only previews the revised fees and makes no real changes.

Result

On success, returns the recalculated fee details. See the response definition below for field meanings.

POSThttps://b-api.lbkrs.com/billing/stock_exchange_contract/revise/recalc

Authorization

AuthorizationstringheaderRequired

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

Permission

lb_hk_clearing.contract_revise

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

Request body application/json

old_contract_idstringrequired

Old Contract ID associated with this request.

counter_idstring

Counter ID associated with this request. Format is {type}/{market}/{code}, for example, stock ST/HK/700 or ST/US/AAPL, and option OP/US/AAPL270319C320000.

directionstring

Direction of this business operation.

currencystring

Currency code used for this request.

aaidstring

Specifies A/C No..

Pass the internal numeric ID of the customer's securities account (aaid), not the securities account number account_no (such as H00000000) or the customer ID member_id. One customer can have multiple aaid values.

settlement_channelstring
settlement_accountstring
stagestring
trade_datestring

Trading date associated with this request. Use the date format defined by the API.

order_sourcestring

Responses

HTTP 200The request was processed successfully. data contains bills, total_amount, discounts.
Standard response envelopecodemessagedata
dataobjectdata structure
billsarray<string>

An array of fee details; each item contains fields such as amount (see the page's rendered columns).

total_amountnumber

Total fees.

discountsarray<string>

Array of discount details.

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