Pear Exchange
Prediction markets

GET /api/prediction-wallet/insights

Same query surface as GET /api/prediction-wallet/pnl. Returns stats (totals, fill-level win rate, drawdown, volume from portfolio trade_stats), categoryBreakdown (buckets from per-market rows: Polymarket Gamma category / tags, DFlow Kalshi series category + tags from the DFlow metadata API; heuristic fallback if missing), exposure, and rank from identity.user_stats (weekly rank — Pear-wide, same as leaderboards). inAppStats repeats Pear in-app user_stats for side-by-side comparison. Response includes source: "prediction_markets" to disambiguate from GET /api/portfolio/stats / GET /api/portfolio/analytics.

GET
/api/prediction-wallet/insights
AuthorizationBearer <token>

Privy access token. For live POST /execute, use the wallet-auth JWT instead.

In: header

Query Parameters

start?string
end?string
wallet?string
source?string
Value in"polymarket" | "dflow"
starting_usdc?number
refresh?string
max_age_ms?integer

Response Body

curl -X GET "https://api.pear.trade/api/prediction-wallet/insights"
Empty
Empty
Empty
Empty