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.longbridge.xyz/billing/stock_exchange_contract/revise

Authorization

Authorizationstringheaderlb_hk_clearing.contract_reviseRequired

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

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

Specifies Settlement Channel. This field is required.

order_sourcestring

Specifies Order Source.

stagestring

Specifies Trade Stage.

expected_balance_settlement_datestring

Specifies Expected Balance Settlement Date.

expected_equity_settlement_datestring

Specifies Expected Equity Settlement Date.

settlement_accountstring

Specifies Settlement Sub Position.

custodian_idstring

Specifies Custodian.

currency_setlstring

Specifies Settlement Currency.

trade_to_setl_exchange_ratenumber

Specifies Trade to Settlement Exchange Rate.

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

Specifies To Clearing Instruction Type.

to_clearing_settle_methodstring

Specifies To Clearing Settle Method.

to_clearing_sub_position_nostring

Specifies To Clearing Sub Position.

to_clearing_custodian_idstring

Specifies To Clearing Custodian.

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