Portfolio Performance
Retrieve performance metrics for a portfolio
GET
This endpoint returns detailed performance metrics for a specific portfolio, including cost basis, realized profit/loss, and unrealized profit/loss information.
Path Parameters
The unique identifier of the portfolio
Query Parameters
Include per-trade performance data in the response
Use real-time market data for calculating unrealized profit/loss
Request Headers
Your API key
Response
Indicates if the request was successful
Example Request
Example Response
Error Codes
The specified portfolio could not be found
Invalid or missing API key
The API key does not have permission to access this portfolio
Notes
- Performance data is calculated based on the complete transaction history of the portfolio
- Real-time pricing data can be enabled with the
realtime
parameter to get current unrealized PnL - Without real-time pricing, only realized PnL and cost basis data will be provided
- The per-trade PnL calculations use FIFO (First In, First Out) accounting methodology