> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phoenix.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Get user position series

> Handles `GET /v1/users/{user_pubkey}/position-series` via `get.v1.users.by_user_pubkey.position_series`.



## OpenAPI

````yaml /openapi/phoenix-public-api.json get /v1/users/{user_pubkey}/position-series
openapi: 3.1.0
info:
  title: Phoenix Eternal API
  description: >-
    RESTful API for accessing Phoenix Eternal perpetual trading data. Provides
    real-time orderbook levels, asset information, and market metadata.
  termsOfService: https://www.phoenix.trade/terms-of-service
  contact:
    name: Phoenix Development Team
    url: https://github.com/Ellipsis-Labs/phoenix
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://perp-api.phoenix.trade
    description: Phoenix Eternal Perp API
security: []
tags:
  - name: Auth
    description: Wallet and session authentication.
  - name: Exchange
    description: Exchange, market, candle, and no-referral register-instruction workflows.
  - name: Invite
    description: Invite validation, referral activation, and wallet allowlist checks.
  - name: Notifications
    description: Trader notification reads and acknowledgement helpers.
  - name: Trader
    description: Trader state, account history, and transaction builders.
externalDocs:
  url: https://docs.phoenix.trade
  description: Phoenix developer documentation
paths:
  /v1/users/{user_pubkey}/position-series:
    get:
      tags:
        - Trader
      summary: Get user position series
      description: >-
        Handles `GET /v1/users/{user_pubkey}/position-series` via
        `get.v1.users.by_user_pubkey.position_series`.
      operationId: get.v1.users.by_user_pubkey.position_series
      parameters:
        - name: user_pubkey
          in: path
          description: User pubkey (base58 encoded)
          required: true
          schema:
            type: string
        - name: traderPdaIndex
          in: query
          description: PDA index of the user's trader holding the position.
          required: true
          schema:
            type: integer
            format: int32
        - name: subaccountIndex
          in: query
          description: Subaccount holding the position; 0 is the cross account.
          required: true
          schema:
            type: integer
            format: int32
        - name: marketSymbol
          in: query
          description: Market symbol of the position (e.g., "SOL").
          required: true
          schema:
            type: string
        - name: slot
          in: query
          description: Slot at which the position was held.
          required: true
          schema:
            type: integer
            format: int64
        - name: slotIndex
          in: query
          description: |-
            Transaction within `slot`: the position as held right after it. Omit
            for the position as held at the end of the slot.
          required: false
          schema:
            type: integer
            format: int32
        - name: resolution
          in: query
          description: >-
            Spacing of the points; one of 1m, 5m, 15m, 1h, 4h, 1d. Omit to let
            the

            server pick one from the position's duration.
          required: false
          schema:
            $ref: '#/components/schemas/Resolution'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PositionSeries'
          description: Successful response
components:
  schemas:
    Resolution:
      type: string
      description: Time resolution for aggregated data queries
      enum:
        - 1m
        - 5m
        - 15m
        - 1h
        - 4h
        - 1d
        - 1w
        - 1M
    PositionSeries:
      type: object
      description: >-
        A position sampled at its open, at every resolution boundary while it
        was

        held, and at its close (or now, while open).
      required:
        - positionId
        - resolution
        - points
      properties:
        points:
          type: array
          items:
            $ref: '#/components/schemas/PositionSeriesPoint'
        positionId:
          type: string
        resolution:
          $ref: '#/components/schemas/Resolution'
    PositionSeriesPoint:
      type: object
      description: >-
        The position at one instant, as decimal strings: size in base units,
        prices

        and PnL in USD. The point at a close shows the position just before the

        closing trade. Optional values are `None` when no price or margin

        snapshot was recorded at or before the instant.
      required:
        - timestamp
        - size
        - avgEntryPrice
      properties:
        avgEntryPrice:
          type: string
        liquidationPrice:
          type:
            - string
            - 'null'
          description: >-
            Mark price of this market at which the subaccount would become

            liquidatable for the position at this point, holding its other

            positions as they were. An estimate from the latest margin snapshot,

            carried forward by the position's trades and the subaccount's quote

            and spot collateral changes, with spot collateral this market prices

            moving with the price, under current market parameters;

            `None` when no price can liquidate the subaccount or no recent
            snapshot

            is available.
        markPrice:
          type:
            - string
            - 'null'
        size:
          type: string
          description: Signed size, negative for short.
        stopLossPrice:
          type:
            - string
            - 'null'
          description: |-
            Trigger price of the stop-loss that would fire first among those
            guarding the position at this point: the highest for a long, the
            lowest for a short.
        takeProfitPrice:
          type:
            - string
            - 'null'
          description: |-
            Trigger price of the take-profit that would fire first among those
            guarding the position at this point: the lowest for a long, the
            highest for a short.
        timestamp:
          type: string
          format: date-time
        unrealizedPnl:
          type:
            - string
            - 'null'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.