Skip to content
Contract Amendments

Recalc Stock Exchange Contract Revise

Recalculates fee details when the original contract is selected or request fields change. Returns the recalculated fees without persisting changes.

Request parameters

  • Required: old_contract_id (Old Contract ID)
  • Optional: counter_id (Counter ID), direction (Direction), currency (Currency), aaid (A/C No.), settlement_channel (Settlement Channel), settlement_account (Settlement Sub Position), stage (Trade Stage), trade_date (Trade Date), order_source (Order Source)
  • See each field for its format, allowed values, default behavior, and business meaning.

Result

On success, the endpoint completes the described business operation. See the 200 response schema for returned data.

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

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.contract_revise

The Broker ACCESS_TOKEN must be granted the permission below, 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.

directionstring

Direction of this business operation.

currencystring

Currency code used for this request.

aaidstring

Specifies A/C No..

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