Skip to content
Longport Whale
Contract Amendments

Settlement Transactions

Query the Settlement Transactions list. not_state (Not State): When omitted, defaults to filtering by '0' — without this filter the endpoint returns only data matching that value. It is not exposed as an adjustable filter.

POSThttps://b-api.longbridge.xyz/v1/datasets/booking_revise_select_contracts

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

filtersobject

Filters

Child attributes
filters.falsestring

Contract No

filters.datasourcestring

Data Source. Options: 1 = Trade; 2 = Stock card; 3 = Stock card (House); 4 = Backend; 5 = Contract Amendments (Reverse); 6 = Contract Amendments (New); 7 = WTT Non-Day Trade; 8 = Upstreaming File

12345678

filters.aaidstring

Client

filters.trade_ledger_dateobject

Ledger Date. Range filter; both bounds are optional (omit a bound to leave that side unbounded). Defaults to the range [7 day(s) ago, today] when omitted (gte/lte roll with the request date).

Child attributes
filters.trade_ledger_date.gtestring

Greater Than or Equal

filters.trade_ledger_date.ltestring

Less Than or Equal

filters.contract.trade_dateobject

Trade Date. Range filter; both bounds are optional (omit a bound to leave that side unbounded).

Child attributes
filters.contract.trade_date.gtestring

Greater Than or Equal

filters.contract.trade_date.ltestring

Less Than or Equal

filters.expected_balance_settlement_dateobject

Expected Settlement Date(Cash). Range filter; both bounds are optional (omit a bound to leave that side unbounded).

Child attributes
filters.expected_balance_settlement_date.gtestring

Greater Than or Equal

filters.expected_balance_settlement_date.ltestring

Less Than or Equal

filters.marketstring

Market. Values are dynamically queried from clear_used_market (not fixed); fetch them live via GET /v1/datasets/refs/clearing_config_markets.

filters.counter_idstring

Counter ID

filters.statestring

Status. Options: 2 = To Be Calculated; 3 = To Be Charged; 4 = To Be Settled; 5 = Settlement Completed; 6 = Equity settled; 1 = Init; -1 = --

234561-1

filters.settlement_channelstring

Settlement Channel. Values are dynamically queried from billing_settlement_channel (not fixed); fetch them live via GET /v1/datasets/refs/billing_settlement_channel.

filters.directionstring

Trade Direction. Options: 1 = Buy; 2 = Sell

12

filters.task_nostring

Settlement Batch No

filters.currencystring

Currency. Values are dynamically queried from global_currency (not fixed); fetch them live via GET /v1/datasets/refs/tenant_currencies.

filters.contract.biz_typestring

Biz Type. Values are dynamically queried from billing_biz_type (not fixed); fetch them live via GET /v1/datasets/refs/billing_business_type.

filters.trade_ledger_date_nestring

Trade Ledger Date Ne

pageinteger

Page

page_sizeinteger

Page Size

orderByarray<object>

Order By

Responses

HTTP 200Paginated list result.
Standard response envelopecodemessagedata
dataobjectdata structure
listarray<object>required

List

totalintegerrequired

Total

Whale Docs