Portfolio and PnL
Everything an account holds, and how its trades have done.
trade.qrdx.org/portfolio shows the connected account; add ?address=0xPQ… to view any account read-only (the explorer links there from every account page).
What it shows
- Account value: every token balance (including what is escrowed in open orders) and perps equity, valued in USD.
- Total PnL: realized plus open, with the win rate and volume traded.
- Profit and loss chart: cumulative realized PnL over 24 hours, 7 days, 30 days or everything recorded, with a dashed segment to now that adds open positions at the current price.
- Allocation: each holding's USD value and share.
- PnL by market: fills, volume, realized and open PnL, position and average cost per market.
- Balances, open orders, liquidity positions, perps positions and orders, with cancel buttons for your own orders.
How PnL is computed
The chain keeps every trade, so PnL is rebuilt from the account's fills:
- Spot, per market, on an average-cost basis in the market's quote token: buying adds to the position at its price; selling realizes (sell price − average cost) × amount. What you still hold is marked at the market's last price.
- Perps: the profit or loss the clearinghouse realized on each fill, in collateral units, plus open positions' unrealized PnL at the mark price.
USD values use today's prices, not the prices at the time, and are labelled as reference data.
Limits
The node keeps the most recent 1,000 trades per market and 1,000 perps events. Older history is not counted, and selling tokens you bought before that window (or received by transfer) realizes nothing, because their cost is unknown.
From code: GET /api/v1-test/accounts/{address}/pnl on the trade API.