---
title: "GET /vault/v1/vaults/historicalPnl"
method: GET
path: "/vault/v1/vaults/historicalPnl"
---

# GET /vault/v1/vaults/historicalPnl

`GET /vault/v1/vaults/historicalPnl`

## Query parameters

- `resolution` 'hour' | 'day'

## Response `200`

Ok

- VaultsHistoricalPnlResponse
  - `vaultsPnl` VaultHistoricalPnl[], required
    - `ticker` string, required
    - `historicalPnl` PnlTicksResponseObject[], required
      - `equity` string, required
      - `totalPnl` string, required
      - `netTransfers` string, required
      - `createdAt` string, required
      - `blockHeight` string, required
      - `blockTime` string, required

## Changes

- **2025-04-21** `a7d995a71a03` — 2 breaking
  - removed the required property `vaultsPnl/items/historicalPnl/items/id` from the response with the `200` status
  - removed the required property `vaultsPnl/items/historicalPnl/items/subaccountId` from the response with the `200` status
- **2024-09-18** `6d481292405a` — 1 info
  - added the new optional `query` request parameter `resolution`
- **2024-08-22** `689f51a50796` — 1 info
  - endpoint added
- **2024-05-14** `90fd32395633` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/dydxprotocol/apis/indexer-api/changes/vault/v1/vaults/historicalPnl/get.md)

---

[API](https://skmtc.dev/dydxprotocol/apis/indexer-api.md) · [All operations](https://skmtc.dev/dydxprotocol/apis/indexer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dydxprotocol/indexer-api/revisions/5005547cef75/schema)
