Get Equity Curve
Get the equity curve from hourly portfolio snapshots.
Wallet scoping: wallet_id accepts an integer wallet id
(ownership-checked, 404 otherwise), all (cross-wallet) or
api — the same family contract as /positions, /history,
/portfolio and /profile-analysis. The default (param omitted) is the
API wallet, with legacy wallet_id IS NULL snapshots folded
in so pre-Phase-2c history stays continuous. A caller with no ACTIVE
API wallet sees the legacy NULL-wallet bucket only. UI callers that
want MAIN should pass an explicit wallet_id or use
GET /portfolio/history (cookie-auth path).
Authorizations
Issue from /v1/keys (or admin-issued for enterprise tier).
Headers
Your PolySimulator API key
Polymarket-CLOB-compat alias for X-API-Key (underscore form). SDK clients ported from Polymarket can authenticate without changing header names. X-API-Key takes precedence when both are provided.
PM-CLOB-compat dashed-form alias for X-API-Key. Same value semantics as POLY_API_KEY but with HTTP-conventional dash separators. Both spellings are accepted end-to-end.
PM-CLOB-compat: Authorization: Bearer ps_live_... (or ps_test_...) is accepted as an alias for X-API-Key so py-clob-client and other ported SDKs authenticate without header name changes. Bearer JWTs are NOT accepted here — use the dashboard-auth endpoints for those.
Query Parameters
Number of days of history
1 <= x <= 90Wallet scope: an integer wallet id you own (404 WALLET_NOT_FOUND otherwise; MAIN/API wallet ids fold in legacy rows recorded before per-wallet attribution, matching /portfolio), 'all' (every wallet you own, including UI MAIN/SANDBOX wallets), or 'api' (your API wallet — includes legacy pre-attribution rows). Keywords are case-insensitive; any other value returns 422 VALIDATION_FAILED. Default (omitted) = 'api' since 2026-06-10, matching /balance, /portfolio and /equity; before 2026-06-10 the default was all-wallets — pass wallet_id=all to keep the old behaviour.