---
title: "Get realized PnL"
method: GET
path: "/v1/portfolio/realized-pnl"
tags: ["Portfolio"]
---

# Get realized PnL

`GET /v1/portfolio/realized-pnl`

Get realized PnL history for an account. Returns position change events where PnL was realized (position closed, reduced, or flipped).

## Query parameters

- `account` string
- `limit` integer
- `page` integer
- `market_id` string, uint64
- `from` string, uint64
- `to` string, uint64

## Response `200`

A successful response.

- ApiGetRealizedPNLResponse
  - `address` string
  - `data` ApiGetRealizedPNLResponseItem[]
    - `timestamp` string, int64
    - `market_id` string, uint64
    - `side` 'BUY' | 'SELL'
    - `entry_price` string
    - `exit_price` string
    - `size` string
    - `pnl` string
    - `funding` string
  - `page` integer
  - `total` integer
  - `has_next_page` boolean

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/rise/apis/risex-rest-api.md) · [All operations](https://skmtc.net/rise/apis/risex-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rise/risex-rest-api/revisions/194af8339c0d/schema)
