https://api.lbkrs.com/v3/portfolio/asset/GetProfitAnalysisSummaryParameters
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
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 profit and loss analysis overview” operation.codemessagedatadataobjectdata structureReporting currency
Actual range start date in YYYY-MM-DD format
Actual range end date in YYYY-MM-DD format
Total profit and loss in the range
Return in the range as a decimal
Cumulative simple return in the range as a decimal
Cumulative time-weighted return in the range as a decimal
Assets at the start of the range
Assets at the end of the range
Current total assets
Net investment in the range
Whether there were trades in the range. Empty means no trades; you can then hide the share entry
Number of stocks traded in the range
Latest update date of trade data
Update date of the profit and loss data
Profit and loss breakdown by asset class
Child attributes
Stock profit and loss
Fund profit and loss
Money market fund return for idle cash
IPO profit and loss
Other asset profit and loss
Number of IPO subscriptions in the range
Number of IPO allotments in the range. Allotment rate = ipo_hit / ipo_subscription
Cumulative turnover in the range
Top performers of each asset class, distinguished by asset_type
Child attributes
Asset class, such as stock, fund, or crypto
Profit and loss of the most profitable security in the period
Name of the most profitable security in the period
Profit and loss of the security with the largest loss in the period
Name of the security with the largest loss in the period