Aggregate trade counts and P&L
GET/api/v1/trades/stats
Returns per-status counts and realised/unrealised P&L computed in the database over the full set matching the active filters, so the Trades page stat cards and tab badges do not need to download the user's trade history. Accepts the same filters as the list endpoint except pagination, sort, and status: counts always break down across every status under the active account, strategy, symbol/search, side, and date filters. Accepts both JWT and API key authentication.
Request
Responses
- 200
- 400
- 401
- 500
Aggregate counts and P&L
Invalid query parameters
Authentication required
Server error