> ## 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_fills

> List the caller's fill (trade execution) history, optionally scoped to one `market_ticker`.

List the caller's fill (trade execution) history, optionally scoped to one `market_ticker`.


## OpenAPI

````yaml openpx.openapi.yaml GET /v1/fills/fetch_fills
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/fills/fetch_fills:
    get:
      tags:
        - Fills
      summary: Fetch fills
      description: >-
        List the caller's fill (trade execution) history, optionally scoped to
        one `market_ticker`.
      operationId: fetch_fills
      parameters:
        - name: market_ticker
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Fill'
        default:
          description: Unified error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenPxError'
components:
  schemas:
    Fill:
      description: A single fill (trade execution) from one of the caller's orders.
      properties:
        created_at:
          description: Fill execution time (UTC) (e.g. `"2026-04-25T12:00:00Z"`).
          format: date-time
          type: string
        fee:
          description: Fee paid in quote dollars (e.g. `0.07`).
          format: double
          type: number
        fill_id:
          description: Globally-unique fill id (e.g. `"f-9c2..."`).
          type: string
        is_taker:
          description: '`true` if the caller took liquidity, `false` if they made it.'
          type: boolean
        market_ticker:
          description: >-
            Unified market ticker the fill belongs to (e.g.
            `"KXBTCD-25APR1517"`).
          type: string
        order_id:
          description: Parent order id (e.g. `"a1b2c3d4-..."`).
          type: string
        outcome:
          description: Outcome label as published by the exchange (e.g. `"Yes"`, `"No"`).
          type: string
        price:
          description: Fill price as YES probability in `(0, 1)` (e.g. `0.62`).
          format: double
          type: number
        side:
          allOf:
            - $ref: '#/components/schemas/OrderSide'
          description: 'Order direction. Options: `buy`, `sell`.'
        size:
          description: Filled size in contracts (e.g. `25.0`).
          format: double
          type: number
      required:
        - created_at
        - fee
        - fill_id
        - is_taker
        - market_ticker
        - order_id
        - outcome
        - price
        - side
        - size
      title: Fill
      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
    OrderSide:
      description: 'Order direction. Options: `buy`, `sell`.'
      enum:
        - buy
        - sell
      type: string

````