https://api.lbkrs.com/v2/portfolio/asset/GetProfitAnalysisSummarySublistParameters
account_channelstringqueryRequiredAccount channel. Use the account_channel of the current account
currencystringqueryRequiredReporting currency, such as HKD. Use a currency whose supports.app_show is yes in Get Currency Configurations
profit_or_lossstringqueryRequiredList type:
profit- Profit listloss- Loss listall- All securities
profitlossall
startstringqueryRequiredRange start as a Unix timestamp in seconds. Pass 0 to start from the earliest queryable date
endstringqueryRequiredRange end as a Unix timestamp in seconds
start_datestringqueryRange start date in YYYY-MM-DD format, converted from start. Broker App omits it when start is 0
end_datestringqueryRequiredRange end date in YYYY-MM-DD format, converted from end. The server counts the dates as a closed range
Responses
HTTP 200The request succeeded. The response body contains the result of the “Get security profit and loss ranking” operation.codemessagedatadataobjectdata structureRange start date
Range end date
Update date of the profit and loss data in YYYY-MM-DD format
Security profit and loss list. It is an empty array when there is no data
Child attributes
Security ID (counter_id)
Security code
ISIN code. Returned for products such as funds
Security name
Market code
Security class. For example, fund means a fund
Profit and loss currency
Profit and loss in the period. The ranking is ordered by this field
Profit and loss in the period
Return in the period as a decimal
Profit and loss from the underlying stock
Profit and loss from derivatives
Whether the security is still held at the end of the period
Number of full liquidations in the period