Skip to content
Contract Amendments

Create Stock Exchange Contract Revise

Create Stock Exchange Contract Revise.

Request parameters

  • Required: old_contract_id (Old Contract ID), aaid (A/C No.), settlement_channel (Settlement Channel), trade_date (Trade Date)
  • Optional: order_source (Order Source), stage (Trade Stage), expected_balance_settlement_date (Expected Balance Settlement Date), expected_equity_settlement_date (Expected Equity Settlement Date), settlement_account (Settlement Sub Position), custodian_id (Custodian), currency_setl (Settlement Currency), trade_to_setl_exchange_rate (Trade to Settlement Exchange Rate), bills (Bill List), discounts (Discount List), to_clearing_instr_type (To Clearing Instruction Type), to_clearing_settle_method (To Clearing Settle Method), to_clearing_sub_position_no (To Clearing Sub Position), to_clearing_custodian_id (To Clearing Custodian)
  • See each field for its format, allowed values, and business meaning.

Result

On success, the endpoint completes the operation. See the 200 response schema for returned data and subsequent state information.

PUThttps://b-api.lbkrs.com/billing/stock_exchange_contract/revise

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.

aaidstringrequired

Specifies A/C No.. This field is required.

settlement_channelstringrequired

This field is required.

order_sourcestring
stagestring
expected_balance_settlement_datestring
expected_equity_settlement_datestring
settlement_accountstring
custodian_idstring
currency_setlstring
trade_to_setl_exchange_ratenumber
trade_datestringrequired

Trading date associated with this request. Use the date format defined by the API. This field is required.

billsarray<string>

Submit Bill List as a JSON array.

discountsarray<string>

Submit Discount List as a JSON array.

to_clearing_instr_typestring
to_clearing_settle_methodstring
to_clearing_sub_position_nostring
to_clearing_custodian_idstring

Responses

HTTP 200The request was processed successfully. The response data does not contain additional business fields.
Standard response envelopecodemessagedata
dataobjectdata structure

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