Portfolio
GET /api/portfolio/pnl
In-app / Pear-executed trading only: bucketed series from portfolio_snapshots + live mark, not Polymarket/DFlow. Auto-bucket sizes per range: 1h→1m, 3h→3m, 1d→15m, 1w→1h, 1m→6h, all→1d. Returns state.coldStart=true when the user has no historical snapshots yet. For prediction markets (linked proxy wallets) hourly PnL as JSON for charting, use GET /api/prediction-wallet/pnl (tag: predictionMarkets).
Authorization
privy AuthorizationBearer <token>
Privy access token. For live POST /execute, use the wallet-auth JWT instead.
In: header
Query Parameters
range?string
Default
"1d"Value in
"1h" | "3h" | "1d" | "1w" | "1m" | "all"Response Body
curl -X GET "https://api.pear.trade/api/portfolio/pnl"Empty