---
title: "Get PnL"
method: GET
path: "/v1/account/pnl"
---

# Get PnL

`GET /v1/account/pnl`

Get PnL history for the authenticated account.
If no end time is provided, the current time will be used.
Each point is the PnL realized inside its `interval` bucket — not a running
total. Buckets are aligned to the Unix epoch, and one in which nothing was
realized is omitted, so the series is sparse.
A point is stamped with the last populated hour in its bucket, not with the
bucket's start, so every returned timestamp falls within the requested
window. Window bounds select whole one-hour rollup rows before coarser
buckets are formed.
Maximum of 1000 entries returned per request — of buckets, so a coarser
interval covers a longer window before `more` is set. When `more` is true,
page by re-requesting from one millisecond past the last timestamp
returned; that always lands on the next bucket, never back inside the one
just served.

## Query parameters

- `interval` '1h' | '4h' | '1d' | '1w', required — PnL interval
- `start_timestamp` integer, required — Start timestamp in milliseconds
- `end_timestamp` integer — End timestamp in milliseconds

## Response `200`

PnL history response.

- PnlHistory
  - `data` array[], required — - `1767225600000` - Timestamp - `"100.50"` - PnL
    - unknown[]
      - unknown
  - `more` boolean, required — More data available

## Other responses

- `400` — Bad request — the request was malformed or failed validation (bad query parameters, unparseable body, invalid signature, or a domain pre-check). The `error` field is a human-readable validation detail.
- `401` — Unauthorized — missing or invalid `POLYMARKET-PROXY` / `POLYMARKET-SECRET` credentials. `error` is `unauthorized`.
- `429` — Too Many Requests. `error` distinguishes the limit that was hit: `ip_rate_limited` (per-IP token bucket), `action_rate_limited` (per-account action rate), or `open_orders_limit` (resting open-order cap).
- `500` — Internal server error. `error` is `internal_error`.

---

[API](https://skmtc.net/polymarket/apis/polymarket-perps-http-api.md) · [All operations](https://skmtc.net/polymarket/apis/polymarket-perps-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polymarket/polymarket-perps-http-api/revisions/76e4e47cf3aa/schema)
