https://api.lbkrs.com/v1/portfolio/asset/GetProfitAnalysisTrendParameters
currencystringqueryRequiredReporting currency, such as HKD. Use a currency whose supports.app_show is yes in Get Currency Configurations
account_channelstringqueryAccount channel. Use the account_channel of the current account
chart_typestringqueryReturn only the specified granularity, such as DAY or MONTH. The Broker App analysis page omits it
startstringqueryRange start as a Unix timestamp in seconds
endstringqueryRange end as a Unix timestamp in seconds
start_datestringqueryRange start date in YYYY-MM-DD format
end_datestringqueryRange end date in YYYY-MM-DD format
Responses
HTTP 200The request succeeded. The response body contains the result of the “Get profit and loss trend” operation.codemessagedatadataobjectdata structureDaily series in ascending date order
Child attributes
Date in YYYY-MM-DD format
Unix timestamp in seconds for the day
Profit and loss for the day
Asset value for the day
Simple return for the day as a decimal (0.01 means 1%)
Time-weighted return for the day as a decimal
Cumulative simple return up to the day as a decimal
Cumulative time-weighted return up to the day as a decimal
Monthly series
Child attributes
Period key: year and month for monthly points, year for yearly points
Profit and loss for the period
Asset value at the start of the period
Asset value at the end of the period
Simple return for the period as a decimal
Time-weighted return for the period as a decimal
Yearly series
Child attributes
Period key: year and month for monthly points, year for yearly points
Profit and loss for the period
Asset value at the start of the period
Asset value at the end of the period
Simple return for the period as a decimal
Time-weighted return for the period as a decimal