---
search:
  tags:
    - Portfolio
    - GET
seo:
  description: >-
    Replays a closed position: its pool's price around the time it was open and…
    Reference for the GET /v1/me/positions/{id}/replay endpoint in the INVICTUS
    API.
sidebar:
  label: A closed position replayed.
  badge: GET
title: A closed position replayed.
type: openapi-operation
---
Replays a closed position: its pool's price around the time it was open and its net result at each candle.

`GET /v1/me/positions/{id}/replay`

**Responses**

- `200` — Success.
- `400` — Invalid input; \`errors\` names the fields.
- `401` — No session, or it ended.
- `404` — Not found, or not yours.
- `429` — Too many requests; \`retryAfterSeconds\` says when to ask again.
- `500` — Server error.

Response example, 200:

```json
{
  "id": "string",
  "prices": [
    "1234.56",
    "1234.56"
  ],
  "lead": 0,
  "rangeLow": "1234.56",
  "rangeHigh": "1234.56",
  "candles": [
    {
      "at": 1793145600,
      "open": "1234.56",
      "high": "1234.56",
      "low": "1234.56",
      "close": "1234.56"
    },
    {
      "at": 1793145600,
      "open": "1234.56",
      "high": "1234.56",
      "low": "1234.56",
      "close": "1234.56"
    }
  ],
  "pnlUsd": [
    {
      "status": "exact",
      "value": "1234.56",
      "observedAt": 1793145600
    },
    {
      "status": "exact",
      "value": "1234.56",
      "observedAt": 1793145600
    }
  ],
  "events": [
    {
      "candle": 0,
      "kind": "add",
      "usd": "1234.56"
    }
  ],
  "asOf": 1793145600
}
```
