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

# Get position history

> **Limit: 10 requests per 1 second per user**

`GET /v1/position_history`




## OpenAPI

````yaml orderly.openapi get /v1/position_history
openapi: 3.0.1
info:
  title: EVM
  description: ''
  version: 1.0.0
servers:
  - url: https://api.orderly.org
    description: Mainnet
  - url: https://testnet-api.orderly.org
    description: Testnet
security: []
tags:
  - name: public
  - name: private
paths:
  /v1/position_history:
    get:
      tags:
        - private
      summary: Get position history
      description: |
        **Limit: 10 requests per 1 second per user**

        `GET /v1/position_history`
      parameters:
        - name: symbol
          in: query
          description: ''
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: ''
          required: true
          schema:
            type: number
        - $ref: '#/components/parameters/orderly_timestamp'
        - $ref: '#/components/parameters/orderly_account_id'
        - $ref: '#/components/parameters/orderly_key'
        - $ref: '#/components/parameters/orderly_signature'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PositionHistoryResponse'
      deprecated: false
components:
  parameters:
    orderly_timestamp:
      name: orderly-timestamp
      in: header
      description: Timestamp of the signed request in milliseconds.
      required: true
      style: simple
      explode: false
      schema:
        type: string
      example: '1649920583000'
    orderly_account_id:
      name: orderly-account-id
      in: header
      description: Account ID of the authenticated account.
      required: true
      style: simple
      explode: false
      schema:
        type: string
      example: 6.858456565150415e+75
    orderly_key:
      name: orderly-key
      in: header
      description: Public orderly key used to sign the request.
      required: true
      style: simple
      explode: false
      schema:
        type: string
      example: ed25519:8tm7dnKYkSc3FzgPuJaw1wztr79eeZpN35nHW5pL5XhX
    orderly_signature:
      name: orderly-signature
      in: header
      description: Signature of the request payload generated with the orderly key.
      required: true
      style: simple
      explode: false
      schema:
        type: string
      example: >-
        dG4bkKiqG0dUYLzViRZkvbI6Sy239JxAdNMIBxFZ4w030Jofr0ORV06GHtvXZkaZaWUXE+XAU3fnzKN/5fDeBQ==
  schemas:
    PositionHistoryResponse:
      allOf:
        - $ref: '#/components/schemas/BasicResponse'
        - type: object
          required:
            - data
          properties:
            data:
              type: object
              properties:
                rows:
                  type: array
                  items:
                    type: object
                    properties:
                      position_id:
                        type: number
                        example: 1
                      status:
                        type: string
                        example: closed
                      type:
                        type: string
                        example: liquidated
                      symbol:
                        type: string
                        example: PERP_ETH_USDC
                      avg_open_price:
                        type: number
                        example: 61016.1
                      avg_close_price:
                        type: number
                        example: 61016.1
                      max_position_qty:
                        type: number
                        example: 56.6
                      closed_position_qty:
                        type: number
                        example: 56.6
                      side:
                        type: string
                        example: LONG
                      trading_fee:
                        type: number
                        example: 0.015
                      accumulated_funding_fee:
                        type: number
                        example: 0.11
                      insurance_fund_fee:
                        type: number
                        example: 0
                      liquidator_fee:
                        type: number
                        example: 0
                      liquidation_id:
                        type: number
                        example: null
                      realized_pnl:
                        type: number
                        example: -9.09691927314905
                      open_timestamp:
                        type: number
                        example: 1685429350571
                      close_timestamp:
                        type: number
                        example: 1685429350571
                      last_update_timestamp:
                        type: number
                        example: 1685429350571
                      leverage:
                        type: integer
                        example: 10
                      margin_mode:
                        type: string
                        enum:
                          - CROSS
                          - ISOLATED
                        example: CROSS
    BasicResponse:
      required:
        - success
      type: object
      properties:
        success:
          description: Indicates whether the request was successful.
          type: boolean
          example: true
        timestamp:
          description: Server timestamp in milliseconds.
          type: integer
          example: 1702989203989

````