Skip to content
Profit and Loss Analysis

Get Profit and Loss Data Date Range

Returns the earliest and latest queryable dates of the current account's profit and loss data and the latest update date of trade data. Call it first when the profit and loss analysis page opens to set the earliest and latest dates of the time filter, then query the overview, trend, and ranking for the selected range.

WhaleCore portfolioService() already wraps this capability through getProfitLossAnalysisMeta(). When you use WhaleCore, prefer the WhaleCore capability over calling this operation directly.

GEThttps://api.lbkrs.com/v1/portfolio/pnl/latest_dt

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get profit and loss data date range” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
start_datestring

Earliest queryable date in YYYY-MM-DD format

start_timestring

Earliest queryable time as a Unix timestamp in seconds

end_datestring

Latest queryable date in YYYY-MM-DD format

end_timestring

Latest queryable time as a Unix timestamp in seconds

trade_update_datestring

Latest update date of trade data in YYYY-MM-DD format

trade_update_timestring

Latest update time of trade data as a Unix timestamp in seconds

Whale Docs