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

# Get realized PnL

`GET /v1/portfolio/realized-pnl`

## Request

- Base URL: `https://api.testnet.rise.trade`
- URL: `https://api.testnet.rise.trade/v1/portfolio/realized-pnl`
- Auth: none required
- TypeScript: <https://skmtc.dev/rise/apis/risex-rest-api/docs/v1/portfolio/realized-pnl/get.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/rise/apis/risex-rest-api.md) - [All operations](https://skmtc.dev/rise/apis/risex-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rise/apis/risex-rest-api/revisions/98eabcd6a6ad?raw)
