Skip to content
Longport Whale
Contract Amendments

Create Stock Exchange Contract Revise

The "Submit" button on the Contract Amendments page. After selecting an old contract, the user edits bills/discounts/position-migration information across the Fees and Holdings tabs and submits to generate a new contract. Involves real contract/fund changes. The fee list itself is only edited in local state on the page (add/edit/delete operate only on a local array and do not call the API directly) and is sent together with this submission; recalculating fees calls a separate endpoint /billing/stock_exchange_contract/revise/recalc (POST, not a save).

PUThttps://b-api.longbridge.xyz/billing/stock_exchange_contract/revise

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

old_contract_idstringrequired

Old Contract ID

aaidstringrequired

A/C No

settlement_channelstringrequired

Settlement Channel

order_sourcestring

Order Source

stagestring

Trade Stage

expected_balance_settlement_datestring

Expected Balance Settlement Date

expected_equity_settlement_datestring

Expected Equity Settlement Date

settlement_accountstring

Settlement Sub Position

custodian_idstring

Custodian

currency_setlstring

Settlement Currency

trade_to_setl_exchange_ratenumber

Trade to Settlement Exchange Rate

trade_datestringrequired

Trade Date

billsarray<string>

Bill List

discountsarray<string>

Discount List

to_clearing_instr_typestring

To Clearing Instruction Type

to_clearing_settle_methodstring

To Clearing Settle Method

to_clearing_sub_position_nostring

To Clearing Sub Position

to_clearing_custodian_idstring

To Clearing Custodian

Responses

HTTP 200No confirmable field definitions are available for the response yet.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs