{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paradex/json-schema/paradex-responses-position-resp-schema.json",
  "title": "responses.PositionResp",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paradex-account-api-openapi.yml#/components/schemas/responses.PositionResp",
  "type": "object",
  "properties": {
    "account": {
      "description": "Account ID of the position",
      "type": "string"
    },
    "average_entry_price": {
      "description": "Average entry price",
      "type": "string"
    },
    "average_entry_price_usd": {
      "description": "Average entry price in USD",
      "type": "string"
    },
    "average_exit_price": {
      "description": "Average exit price",
      "type": "string"
    },
    "cached_funding_index": {
      "description": "Position cached funding index",
      "type": "string"
    },
    "closed_at": {
      "description": "Position closed time",
      "type": "integer"
    },
    "cost": {
      "description": "Position cost",
      "type": "string"
    },
    "cost_usd": {
      "description": "Position cost in USD",
      "type": "string"
    },
    "created_at": {
      "description": "Position creation time",
      "type": "integer"
    },
    "id": {
      "description": "Unique string ID for the position",
      "type": "string"
    },
    "last_fill_id": {
      "description": "Last fill ID to which the position is referring",
      "type": "string"
    },
    "last_updated_at": {
      "description": "Position last update time",
      "type": "integer"
    },
    "leverage": {
      "description": "Leverage of the position",
      "type": "string"
    },
    "liquidation_price": {
      "description": "Liquidation price of the position",
      "type": "string"
    },
    "market": {
      "description": "Market for position",
      "type": "string"
    },
    "realized_positional_funding_pnl": {
      "description": "Realized Funding PnL for the position. Reset to 0 when position is closed or flipped.",
      "type": "string"
    },
    "realized_positional_pnl": {
      "description": "Realized PnL including both positional PnL and funding payments. Reset to 0 when position is closed or flipped.",
      "type": "string"
    },
    "seq_no": {
      "description": "Unique increasing number (non-sequential) that is assigned to this position update. Can be used to deduplicate multiple feeds",
      "type": "integer"
    },
    "side": {
      "description": "Position Side : Long or Short",
      "type": "string",
      "enum": [
        "SHORT",
        "LONG"
      ]
    },
    "size": {
      "description": "Size of the position with sign (positive if long or negative if short)",
      "type": "string"
    },
    "status": {
      "description": "Status of Position : Open or Closed",
      "type": "string",
      "enum": [
        "OPEN",
        "CLOSED"
      ]
    },
    "unrealized_funding_pnl": {
      "description": "Unrealized running funding P&L for the position",
      "type": "string"
    },
    "unrealized_pnl": {
      "description": "Unrealized P&L of the position in the quote asset. Includes the unrealized running funding P&L.",
      "type": "string"
    }
  }
}