Skip to content
Longport Whale
Contract Amendments

Recalc Stock Exchange Contract Revise

The "Recalculate" button on the Fees tab of the Contract Amendments page, also triggered automatically when the original contract is selected or form fields change. It only recomputes and returns fee details without writing to the database.

POSThttps://b-api.longbridge.xyz/billing/stock_exchange_contract/revise/recalc

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

old_contract_idstringrequired

Old Contract ID

counter_idstring

Counter ID

directionstring

Direction

currencystring

Currency

aaidstring

A/C No

settlement_channelstring

Settlement Channel

settlement_accountstring

Settlement Sub Position

stagestring

Trade Stage

trade_datestring

Trade Date

order_sourcestring

Order Source

Responses

HTTP 200Returns business fields.
Standard response envelopecodemessagedata
dataobjectdata structure
billsarray<object>

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

total_amountnumber

Total fees.

discountsarray<object>

Array of discount details.

Whale Docs