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

# Exchange status

> Whether the API is up and reading the book, and whether any market is open for trading.



## OpenAPI

````yaml api-reference/openapi.json GET /exchange/status
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:
  /exchange/status:
    get:
      summary: Exchange status
      description: >-
        Whether the API is up and reading the book, and whether any market is
        open for trading.
      operationId: getExchangeStatus
      responses:
        '200':
          description: Exchange status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExchangeStatusResponse'
        '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:
    ExchangeStatusResponse:
      type: object
      properties:
        exchange_status:
          type: object
          properties:
            environment:
              type: string
              enum:
                - paper
                - live
              description: paper = the practice book (demo), live = real money.
            exchange_active:
              type: boolean
            trading_active:
              type: boolean
            server_time_ms:
              type: integer
              minimum: 0
              maximum: 9007199254740991
              description: Epoch milliseconds (UTC).
          required:
            - environment
            - exchange_active
            - trading_active
            - server_time_ms
          additionalProperties: false
      required:
        - exchange_status
      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.