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

# List markets

> Markets (windows) on the order book, newest first, filtered by series and status. A window stays listed until about an hour after it settles.



## OpenAPI

````yaml api-reference/openapi.json GET /markets
openapi: 3.1.0
info:
  title: updown Trade API
  version: 1.0.0
  description: >-
    Public REST API. Market data needs no key; `/account` (and order entry, when
    it ships) takes an API key. Prices are dollar strings on the 1¢ grid, counts
    are contract strings, times are epoch ms. Generated from packages/protocol —
    do not edit by hand.
servers:
  - url: https://api.updown.fast/trade-api/v1
    description: production
security: []
paths:
  /markets:
    get:
      summary: List markets
      description: >-
        Markets (windows) on the order book, newest first, filtered by series
        and status. A window stays listed until about an hour after it settles.
      operationId: listMarkets
      parameters:
        - name: series_ticker
          in: query
          required: false
          schema:
            type: string
            pattern: ^[a-z0-9][a-z0-9-]{0,63}$
            description: Series ticker, e.g. "btc-15m".
        - name: series
          in: query
          required: false
          schema:
            type: string
            pattern: ^[a-z0-9][a-z0-9-]{0,63}$
            description: Series ticker, e.g. "btc-15m".
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - scheduled
              - open
              - paused
              - closed
              - settled
      responses:
        '200':
          description: Matching markets.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketsResponse'
        '400':
          description: Invalid request (code BAD_REQUEST).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited (code RATE_LIMITED); wait `Retry-After` seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: The book could not be read (code EXCHANGE_UNAVAILABLE); retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    MarketsResponse:
      type: object
      properties:
        markets:
          type: array
          items:
            type: object
            properties:
              ticker:
                type: string
                pattern: ^[a-z0-9][a-z0-9-]{0,63}-\d{6}-\d{4}-\d{4}(d\d{1,2})?$
                description: >-
                  Market ticker (one window of a series), e.g.
                  "btc-15m-261002-1400-1415". Opaque.
              series_ticker:
                type: string
                pattern: ^[a-z0-9][a-z0-9-]{0,63}$
                description: Series ticker, e.g. "btc-15m".
              status:
                type: string
                enum:
                  - scheduled
                  - open
                  - paused
                  - closed
                  - settled
              open_ts_ms:
                type: integer
                minimum: 0
                maximum: 9007199254740991
                description: Epoch milliseconds (UTC).
              close_ts_ms:
                type: integer
                minimum: 0
                maximum: 9007199254740991
                description: Epoch milliseconds (UTC).
              price_to_beat:
                type: string
                pattern: ^\d+(\.\d+)?$
                description: Price of the underlying in dollars, as a decimal string.
              result:
                type: string
                enum:
                  - up
                  - down
              settlement_price:
                type: string
                pattern: ^\d+(\.\d+)?$
                description: Price of the underlying in dollars, as a decimal string.
              settled_ts_ms:
                type: integer
                minimum: 0
                maximum: 9007199254740991
                description: Epoch milliseconds (UTC).
              up_bid:
                type: string
                pattern: ^0\.(0[1-9]|[1-9]\d)$
                description: 'Contract price in dollars, "0.01"–"0.99" (v1: whole cents).'
              up_bid_size:
                type: string
                pattern: ^(0|[1-9]\d*)$
                description: 'Contracts, as a string (v1: whole contracts).'
              up_ask:
                type: string
                pattern: ^0\.(0[1-9]|[1-9]\d)$
                description: 'Contract price in dollars, "0.01"–"0.99" (v1: whole cents).'
              up_ask_size:
                type: string
                pattern: ^(0|[1-9]\d*)$
                description: 'Contracts, as a string (v1: whole contracts).'
              last_price:
                type: string
                pattern: ^0\.(0[1-9]|[1-9]\d)$
                description: 'Contract price in dollars, "0.01"–"0.99" (v1: whole cents).'
              price_ranges:
                type: array
                items:
                  type: object
                  properties:
                    start:
                      type: string
                      pattern: ^0\.(0[1-9]|[1-9]\d)$
                      description: >-
                        Contract price in dollars, "0.01"–"0.99" (v1: whole
                        cents).
                    end:
                      type: string
                      pattern: ^0\.(0[1-9]|[1-9]\d)$
                      description: >-
                        Contract price in dollars, "0.01"–"0.99" (v1: whole
                        cents).
                    step:
                      type: string
                  required:
                    - start
                    - end
                    - step
                  additionalProperties: false
              tick_size:
                type: string
            required:
              - ticker
              - series_ticker
              - status
              - open_ts_ms
              - close_ts_ms
              - price_ranges
              - tick_size
            additionalProperties: false
      required:
        - markets
      additionalProperties: false
    Error:
      type: object
      properties:
        code:
          type: string
          enum:
            - BAD_REQUEST
            - NOT_FOUND
            - SERIES_NOT_FOUND
            - MARKET_NOT_FOUND
            - METHOD_NOT_ALLOWED
            - RATE_LIMITED
            - UNAUTHORIZED
            - INTERNAL_ERROR
            - EXCHANGE_UNAVAILABLE
        message:
          type: string
        details:
          type: string
      required:
        - code
        - message
      additionalProperties: false

````

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