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

# List fills

> Returns a paginated list of trade fills (executions) from Kalshi and Polymarket.




## OpenAPI

````yaml /openapi.yaml get /api/v1/fills
openapi: 3.1.0
info:
  title: Probalytics API
  description: >
    Probalytics is a prediction market data platform that provides unified
    access to market data

    and trade fills from Kalshi and Polymarket.


    ## Authentication


    All data endpoints require API key authentication via Bearer token.


    ```

    Authorization: Bearer <credential_id>:<credential_secret>

    ```


    API keys can be created and managed through the Probalytics dashboard.


    ## Public REST surface


    The supported REST resources are `GET /api/v1/markets` and `GET
    /api/v1/fills`.

    Orderbook snapshots are not available over REST. Entitled users can query
    them directly

    through ClickHouse; see the [SQL Guide](/docs/sql-guide/overview).


    ## Pagination


    List endpoints use cursor-based pagination. When a full page of results is
    returned,

    the response includes a `next_cursor` field. Pass it as the `cursor` query
    parameter

    to fetch the next page. Because the service does not fetch an extra row to
    test whether

    another page exists, the cursor from a full final page can lead to an empty
    page. Stop

    when `data` is empty or `next_cursor` is absent.


    ## REST request limits


    No fixed REST requests-per-second or requests-per-hour quota is part of this
    API

    contract. Operational protections may still reject abusive or unusually
    concurrent

    traffic. Direct ClickHouse connections have separate, tier-specific query
    quotas.
  version: 1.0.0
  contact:
    name: Probalytics Support
    url: https://probalytics.io
    email: support@probalytics.io
servers:
  - url: https://api.probalytics.io
    description: Production
security:
  - apiKey: []
tags:
  - name: Markets
    description: >-
      Prediction market metadata — listings, statuses, outcomes, and resolutions
      across all supported platforms.
  - name: Fills
    description: >-
      Individual trade fills (executions) with price, size, and participant
      details.
paths:
  /api/v1/fills:
    get:
      tags:
        - Fills
      summary: List fills
      description: >
        Returns a paginated list of trade fills (executions) from Kalshi and
        Polymarket.
      operationId: listFills
      parameters:
        - name: platform
          in: query
          description: Filter by prediction market platform.
          schema:
            type: string
            enum:
              - KALSHI
              - POLYMARKET
        - name: market_id
          in: query
          description: Filter by Probalytics internal market UUID.
          schema:
            type: string
            format: uuid
        - name: market_platform_id
          in: query
          description: >
            Filter by the platform's native market identifier (e.g. Kalshi
            ticker or Polymarket condition ID).

            Resolved to an internal market UUID before querying fills.
          schema:
            type: string
        - name: taker_side
          in: query
          description: Filter by the taker's side of the trade.
          schema:
            type: string
            enum:
              - BUY
              - SELL
        - name: trader_id
          in: query
          description: Filter fills where this address/ID appears as either taker or maker.
          schema:
            type: string
        - name: start_time
          in: query
          description: Include fills at or after this timestamp (RFC 3339).
          schema:
            type: string
            format: date-time
        - name: end_time
          in: query
          description: Include fills at or before this timestamp (RFC 3339).
          schema:
            type: string
            format: date-time
        - name: limit
          in: query
          description: Maximum number of results to return.
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
        - name: cursor
          in: query
          description: >
            Pagination cursor returned from a previous request. A malformed
            cursor is

            currently ignored and causes the query to start from the first page.
          schema:
            type: string
      responses:
        '200':
          description: A paginated list of fills.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FillsResponse'
        '400':
          description: Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient tier or feature access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    FillsResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Fill'
        next_cursor:
          type: string
          description: >-
            Cursor emitted when the current page is full. It can lead to an
            empty final page.
    Error:
      type: object
      required:
        - data
        - message
        - status
      properties:
        status:
          type: integer
          description: HTTP status code.
        message:
          type: string
          description: Human-readable error message.
        data:
          type: object
          description: Additional error details (e.g. validation errors).
    Fill:
      type: object
      description: A single trade fill (execution) on a prediction market.
      required:
        - id
        - market_id
        - market_platform_id
        - platform
        - platform_id
        - outcome
        - size
        - price
        - normalized_price
        - taker_side
        - taker_cash_flow
        - maker_cash_flow
        - taker_id
        - maker_id
        - fee
        - timestamp
      properties:
        id:
          type: string
          format: uuid
          description: Probalytics internal fill identifier.
        market_id:
          type: string
          format: uuid
          description: Probalytics internal market identifier.
        market_platform_id:
          type: string
          description: Platform's native market identifier.
        platform:
          type: string
          enum:
            - KALSHI
            - POLYMARKET
          description: Source platform.
        platform_id:
          type: string
          description: Platform's native trade/fill identifier.
        outcome:
          $ref: '#/components/schemas/Outcome'
          description: The outcome that was traded.
        size:
          type: string
          description: >-
            Traded quantity as a decimal string. Units are contracts for
            prediction markets and venue instrument units for perpetual
            products.
        price:
          type: string
          description: Raw execution price in platform-native units (decimal string).
        normalized_price:
          type: string
          description: >-
            For binary markets, the execution price expressed relative to
            outcome index 0 and normally within 0–1. For perpetual markets, this
            equals the instrument price and is not a probability. Join
            `market_id` to a market and inspect `market_type` before
            interpreting units.
        taker_side:
          type: string
          enum:
            - BUY
            - SELL
          description: Whether the taker was buying or selling.
        taker_cash_flow:
          type: string
          description: >-
            Stored gross/notional amount for the taker as a decimal string. It
            is not currently signed by BUY/SELL direction and must not be
            treated as directional P&L.
        maker_cash_flow:
          type: string
          description: >-
            Stored gross/notional amount for the maker as a decimal string. It
            is not currently signed by direction.
        taker_id:
          type: string
          nullable: true
          description: >-
            Taker's address or identifier (Polymarket on-chain address, Kalshi
            member ID if available).
        maker_id:
          type: string
          nullable: true
          description: Maker's address or identifier.
        fee:
          type: string
          description: >-
            Fee amount as a decimal string. A value of `0` can mean fee data was
            unavailable, not necessarily that the venue charged no fee.
        timestamp:
          type: string
          format: date-time
          description: When the fill occurred.
    Outcome:
      type: object
      description: A possible outcome within a market.
      required:
        - id
        - platform_id
        - name
        - index
      properties:
        id:
          type: string
          format: uuid
          description: Probalytics internal outcome identifier.
        platform_id:
          type: string
          description: Platform's native outcome identifier (e.g. CLOB token ID).
        name:
          type: string
          description: Human-readable outcome name (e.g. "Yes", "No", "Donald Trump").
        index:
          type: integer
          description: Zero-based position of this outcome in the market's outcome list.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >
        API key in the format `credential_id:credential_secret`.


        Example: `Authorization: Bearer
        api_brave_cosmic_falcon:sk_life_AbCdEfGh...`

````

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