---
title: "Get Portfolio History"
method: GET
path: "/v1/accounts/{account_id}/portfolio-history"
tags: ["Accounts"]
---

# Get Portfolio History

`GET /v1/accounts/{account_id}/portfolio-history`

Retrieves daily portfolio history for the specified account.

## Path parameters

- `account_id` integer, required

## Query parameters

- `start_date` string, date, required
- `end_date` string, date

## Response `200`

Portfolio history

- object
  - `error` ApiError — A direct mapping of tonic::Status, for use in HTTP responses.
    - `code` integer, required — The error code is used to identify the nature of the error. It corresponds to an HTTP status code.
    - `details` object[]
    - `message` string, required — A human-readable message providing more details about the error.
  - `metadata` ResponseMetadata, required — Metadata for the response. This will always contain a request ID which can be used to identify the request to Clear Street for tracing, and optionally may include pagination data.
    - `next_page_token` string, byte, nullable — Base64URL-encoded pagination token
    - `page_number` integer, nullable — Pagination. Included if this was a GET (list) response
    - `previous_page_token` string, byte, nullable — Base64URL-encoded pagination token
    - `request_id` string, required — A unique ID for this request, generated upon ingestion of the request.
    - `total_items` integer, nullable — Total number of items available (not just in this page).
    - `total_pages` integer, nullable — Total number of pages available.
  - `data` PortfolioHistoryResponse, required
    - `segments` PortfolioHistorySegment[], required
      - `bought_notional` string, nullable — Amount bought MTM
      - `date` string, date, required — The date for this segment
      - `day_pnl` string, nullable — Sum of the profit and loss from intraday trading activities for the trading day.
      - `eod_equity` string, required — The equity at the end of the trading day.
      - `net_pnl` string, nullable — P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses
      - `position_pnl` string, nullable — P&L attributable to start-of-day (carried) positions from market movement during this trading day.
      - `realized_pnl` string, required — Sum of the profit and loss realized from position closing trading activity.
      - `sod_equity` string, required — The equity at the start of the trading day.
      - `sold_notional` string, nullable — Amount sold MTM
      - `unrealized_pnl` string, required — Sum of the profit and loss from market changes.

## Other responses

- `207` — Partial success: some data is available but the full request could not be completed
- `403` — Forbidden
- `500` — Internal server error

---

[API](https://skmtc.net/clear-street/apis/clear-street-trading-api.md) · [All operations](https://skmtc.net/clear-street/apis/clear-street-trading-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clear-street/clear-street-trading-api/revisions/80e6fb2644e0/schema)
