Skip to content
Longport Whale
Exchange P/L

Exchange P/L

Query the Exchange P/L list.

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

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

filtersobject

Filters

Child attributes
filters.forex_idstring

Conversion Order No

filters.client_ordidstring

Channel Conversion Order No

filters.forex_typestring

Exchange Type. Options: FROM = FROM; TO = TO

FROMTO

filters.currencystring

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

filters.updated_atobject

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

Child attributes
filters.updated_at.gtestring

Greater Than or Equal

filters.updated_at.ltestring

Less Than or Equal

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