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

# Get market

> One window: its status, times, price to beat, top of book and, once settled, the result.



## OpenAPI

````yaml api-reference/openapi.json GET /markets/{ticker}
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/{ticker}:
    get:
      summary: Get market
      description: >-
        One window: its status, times, price to beat, top of book and, once
        settled, the result.
      operationId: getMarket
      parameters:
        - name: ticker
          in: path
          required: true
          description: Market ticker, e.g. sol-15m-261006-1630-1645
          schema:
            type: string
      responses:
        '200':
          description: One market.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketResponse'
        '400':
          description: Invalid request (code BAD_REQUEST).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: MARKET_NOT_FOUND
          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:
    MarketResponse:
      type: object
      properties:
        market:
          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:
        - market
      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.