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

# fetch_positions

> List the caller's open positions, optionally scoped to one `market_ticker`.

List the caller's open positions, optionally scoped to one `market_ticker`.


## OpenAPI

````yaml openpx.openapi.yaml GET /v1/positions/fetch_positions
openapi: 3.1.0
info:
  title: OpenPX Unified API
  description: >-
    Unified API surface across prediction-market exchanges. One `Exchange`
    trait, one set of models, one shape — implemented in Rust with
    auto-generated Python and TypeScript SDKs.


    This OpenAPI spec is **auto-generated** from
    `engine/core/src/exchange/traits.rs` and `schema/openpx.schema.json`. Edit
    the trait or the schema, then regenerate via `just openapi`. The spec models
    trait methods as REST operations for documentation rendering only — OpenPX
    is an in-process Rust library, not a REST service.
  version: 0.3.1
  license:
    name: MIT
servers:
  - url: https://github.com/openpx-trade/openpx
    description: >-
      Documentation surface only. OpenPX is an in-process Rust library; there is
      no hosted REST endpoint.
security: []
tags:
  - name: Markets
  - name: Orders
  - name: Positions
  - name: Balance
  - name: Orderbook
  - name: Trades
  - name: Fills
  - name: Server
paths:
  /v1/positions/fetch_positions:
    get:
      tags:
        - Positions
      summary: Fetch positions
      description: >-
        List the caller's open positions, optionally scoped to one
        `market_ticker`.
      operationId: fetch_positions
      parameters:
        - name: market_ticker
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Position'
        default:
          description: Unified error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenPxError'
components:
  schemas:
    Position:
      description: An open position held by the caller.
      properties:
        average_price:
          description: >-
            Volume-weighted average entry price as YES probability in `[0, 1]`
            (e.g. `0.55`).
          format: double
          type: number
        current_price:
          description: Current mark price as YES probability in `[0, 1]` (e.g. `0.62`).
          format: double
          type: number
        market_ticker:
          description: >-
            Unified market ticker the position is held on (e.g.
            `"KXBTCD-25APR1517"`).
          type: string
        outcome:
          description: Outcome label as published by the exchange (e.g. `"Yes"`, `"No"`).
          type: string
        size:
          description: Number of contracts held (e.g. `100.0`).
          format: double
          type: number
      required:
        - average_price
        - current_price
        - market_ticker
        - outcome
        - size
      title: Position
      type: object
    OpenPxError:
      type: object
      description: >-
        Unified error type returned when an exchange call fails. The `kind`
        field is the canonical category; `message` carries the upstream
        explanation. Per-exchange variants are mapped into this shape before
        they cross the trait boundary.
      required:
        - kind
        - message
      properties:
        kind:
          type: string
          enum:
            - Authentication
            - InsufficientFunds
            - MarketNotFound
            - OrderNotFound
            - RateLimited
            - NetworkError
            - Api
            - Config
            - NotSupported
        message:
          type: string

````