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

# Place or preview an order

> mode "place" answers 201 with the new order, or 200 with the existing order when the same request is resent with its clientOrderId. mode "preview" answers 200 with what would be placed now, status PREVIEW, and stores nothing.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/orders
openapi: 3.1.0
info:
  title: Apexium Trading API
  version: '1'
  description: Public API, authenticated with an API key in the x-api-key header.
servers:
  - url: https://api.apexiumbet.com
    description: Production
security:
  - apiKey: []
tags:
  - name: Health
    description: Whether the API is up, without an API key
  - name: Account
    description: The account behind the API key and its balance
  - name: Reference data
    description: OddsPapi sports, tournaments, participants, markets and bookmakers
  - name: Fixtures
    description: 'OddsPapi fixtures: schedule, status, scores'
  - name: Odds
    description: OddsPapi odds, limited to the account's bookmakers
  - name: Betslip
    description: >-
      The price and stake limits of one selection at each of the account's
      bookmakers
  - name: Orders
    description: Preview, place, read and cancel orders
  - name: Bets
    description: The bets your orders were split into
  - name: Positions and PnL
    description: Open exposure and realised results
paths:
  /v1/orders:
    post:
      tags:
        - Orders
      summary: Place or preview an order
      description: >-
        mode "place" answers 201 with the new order, or 200 with the existing
        order when the same request is resent with its clientOrderId. mode
        "preview" answers 200 with what would be placed now, status PREVIEW, and
        stores nothing.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - mode
                - clientOrderId
                - fixtureId
                - outcomeId
                - side
                - stake
                - minPrice
                - acceptBetterOdds
                - acceptPartialStake
              properties:
                mode:
                  description: >-
                    "preview" applies rules and limits and stores nothing;
                    "place" places the order. No default.
                  type: string
                  enum:
                    - preview
                    - place
                clientOrderId:
                  minLength: 1
                  maxLength: 200
                  description: >-
                    Unique per account. Resending the same request with it
                    returns the same order.
                  type: string
                fixtureId:
                  minLength: 1
                  maxLength: 255
                  type: string
                outcomeId:
                  type: integer
                playerId:
                  minimum: 0
                  default: 0
                  type: integer
                side:
                  description: Only back is supported in v1
                  type: string
                  enum:
                    - back
                bookmakers:
                  minItems: 1
                  maxItems: 50
                  description: >-
                    Bookmakers to split the stake across. Omitted: every
                    bookmaker of the account, except those closed to the API.
                  type: array
                  items:
                    minLength: 1
                    maxLength: 64
                    type: string
                stake:
                  type: object
                  required:
                    - amount
                    - currency
                  properties:
                    amount:
                      pattern: ^\d+(\.\d{1,2})?$
                      description: Positive decimal string, at most two decimals
                      type: string
                    currency:
                      pattern: ^[A-Z]{3}$
                      description: ISO 4217 code; must be the account currency (USD)
                      type: string
                minPrice:
                  pattern: ^\d+(\.\d{1,4})?$
                  description: Decimal price floor, at least 1.001
                  type: string
                acceptBetterOdds:
                  type: boolean
                acceptPartialStake:
                  description: >-
                    true without expiresAt: immediate or cancel; false: fill or
                    kill
                  type: boolean
                expiresAt:
                  format: date-time
                  description: Keep working the remainder until then, at most 1 hour ahead
                  type: string
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - id
                      - clientOrderId
                      - status
                      - selection
                      - side
                      - bookmakers
                      - requestedStake
                      - filledStake
                      - remainingStake
                      - minPrice
                      - averageFilledPrice
                      - acceptBetterOdds
                      - acceptPartialStake
                      - expiresAt
                      - createdAt
                      - updatedAt
                      - version
                      - bets
                    properties:
                      id:
                        format: uuid
                        type: string
                      clientOrderId:
                        anyOf:
                          - type: string
                          - type: 'null'
                      status:
                        type: string
                        enum:
                          - PENDING
                          - PARTIALLY_FILLED
                          - FILLED
                          - EXPIRED
                          - CANCELLED
                          - REJECTED
                      selection:
                        type: object
                        required:
                          - fixtureId
                          - outcomeId
                          - playerId
                          - sportId
                          - tournamentId
                          - marketId
                        properties:
                          fixtureId:
                            type: string
                          outcomeId:
                            type: integer
                          playerId:
                            type: integer
                          sportId:
                            type: integer
                          tournamentId:
                            anyOf:
                              - type: integer
                              - type: 'null'
                          marketId:
                            type: integer
                      side:
                        description: Only back is supported in v1
                        type: string
                        enum:
                          - back
                      bookmakers:
                        description: Bookmakers the stake was split across
                        type: array
                        items:
                          type: string
                      requestedStake:
                        description: Money amount
                        type: object
                        required:
                          - amount
                          - amountCents
                          - currency
                        properties:
                          amount:
                            pattern: ^-?\d+\.\d{2}$
                            description: Decimal string, two decimals
                            type: string
                          amountCents:
                            description: 'The same amount in integer cents: amount times 100'
                            type: integer
                          currency:
                            description: ISO 4217 code
                            type: string
                      filledStake:
                        description: Money amount
                        type: object
                        required:
                          - amount
                          - amountCents
                          - currency
                        properties:
                          amount:
                            pattern: ^-?\d+\.\d{2}$
                            description: Decimal string, two decimals
                            type: string
                          amountCents:
                            description: 'The same amount in integer cents: amount times 100'
                            type: integer
                          currency:
                            description: ISO 4217 code
                            type: string
                      remainingStake:
                        description: Money amount
                        type: object
                        required:
                          - amount
                          - amountCents
                          - currency
                        properties:
                          amount:
                            pattern: ^-?\d+\.\d{2}$
                            description: Decimal string, two decimals
                            type: string
                          amountCents:
                            description: 'The same amount in integer cents: amount times 100'
                            type: integer
                          currency:
                            description: ISO 4217 code
                            type: string
                      minPrice:
                        description: Decimal price floor
                        type: string
                      averageFilledPrice:
                        anyOf:
                          - description: Stake-weighted price of the filled legs
                            type: string
                          - type: 'null'
                      acceptBetterOdds:
                        type: boolean
                      acceptPartialStake:
                        type: boolean
                      expiresAt:
                        anyOf:
                          - format: date-time
                            type: string
                          - type: 'null'
                      createdAt:
                        format: date-time
                        type: string
                      updatedAt:
                        format: date-time
                        type: string
                      version:
                        description: >-
                          Goes up by one at every change of the order or one of
                          its bets
                        type: integer
                      bets:
                        type: array
                        items:
                          type: object
                          required:
                            - id
                            - orderId
                            - bookmaker
                            - status
                            - requestedStake
                            - filledStake
                            - filledPrice
                            - declineReason
                            - placedAt
                            - filledAt
                            - settlement
                          properties:
                            id:
                              format: uuid
                              type: string
                            orderId:
                              format: uuid
                              type: string
                            bookmaker:
                              type: string
                            status:
                              type: string
                              enum:
                                - PENDING
                                - WAITING
                                - PARTIALLY_PLACED
                                - PLACED
                                - REJECTED
                                - CANCELLED
                                - SETTLED
                            requestedStake:
                              description: Money amount
                              type: object
                              required:
                                - amount
                                - amountCents
                                - currency
                              properties:
                                amount:
                                  pattern: ^-?\d+\.\d{2}$
                                  description: Decimal string, two decimals
                                  type: string
                                amountCents:
                                  description: >-
                                    The same amount in integer cents: amount
                                    times 100
                                  type: integer
                                currency:
                                  description: ISO 4217 code
                                  type: string
                            filledStake:
                              anyOf:
                                - description: Money amount
                                  type: object
                                  required:
                                    - amount
                                    - amountCents
                                    - currency
                                  properties:
                                    amount:
                                      pattern: ^-?\d+\.\d{2}$
                                      description: Decimal string, two decimals
                                      type: string
                                    amountCents:
                                      description: >-
                                        The same amount in integer cents: amount
                                        times 100
                                      type: integer
                                    currency:
                                      description: ISO 4217 code
                                      type: string
                                - type: 'null'
                            filledPrice:
                              anyOf:
                                - type: string
                                - type: 'null'
                            declineReason:
                              anyOf:
                                - type: string
                                - type: 'null'
                            placedAt:
                              anyOf:
                                - format: date-time
                                  type: string
                                - type: 'null'
                            filledAt:
                              anyOf:
                                - format: date-time
                                  type: string
                                - type: 'null'
                            settlement:
                              type: object
                              required:
                                - status
                                - amount
                                - settledAt
                              properties:
                                status:
                                  type: string
                                  enum:
                                    - UNSETTLED
                                    - WON
                                    - LOST
                                    - VOID
                                    - HALF_WON
                                    - HALF_LOST
                                    - PUSH
                                    - CASHOUT
                                amount:
                                  description: Profit or loss of the account on this bet
                                  anyOf:
                                    - description: Money amount
                                      type: object
                                      required:
                                        - amount
                                        - amountCents
                                        - currency
                                      properties:
                                        amount:
                                          pattern: ^-?\d+\.\d{2}$
                                          description: Decimal string, two decimals
                                          type: string
                                        amountCents:
                                          description: >-
                                            The same amount in integer cents: amount
                                            times 100
                                          type: integer
                                        currency:
                                          description: ISO 4217 code
                                          type: string
                                    - type: 'null'
                                settledAt:
                                  anyOf:
                                    - format: date-time
                                      type: string
                                    - type: 'null'
                  - type: object
                    required:
                      - clientOrderId
                      - status
                      - selection
                      - side
                      - bookmakers
                      - requestedStake
                      - filledStake
                      - remainingStake
                      - minPrice
                      - averageFilledPrice
                      - acceptBetterOdds
                      - acceptPartialStake
                      - expiresAt
                      - bets
                    properties:
                      clientOrderId:
                        type: string
                      status:
                        type: string
                        enum:
                          - PREVIEW
                      selection:
                        type: object
                        required:
                          - fixtureId
                          - outcomeId
                          - playerId
                          - sportId
                          - tournamentId
                          - marketId
                        properties:
                          fixtureId:
                            type: string
                          outcomeId:
                            type: integer
                          playerId:
                            type: integer
                          sportId:
                            anyOf:
                              - type: integer
                              - type: 'null'
                          tournamentId:
                            anyOf:
                              - type: integer
                              - type: 'null'
                          marketId:
                            anyOf:
                              - type: integer
                              - type: 'null'
                      side:
                        description: Only back is supported in v1
                        type: string
                        enum:
                          - back
                      bookmakers:
                        description: Bookmakers the stake was split across
                        type: array
                        items:
                          type: string
                      requestedStake:
                        description: Money amount
                        type: object
                        required:
                          - amount
                          - amountCents
                          - currency
                        properties:
                          amount:
                            pattern: ^-?\d+\.\d{2}$
                            description: Decimal string, two decimals
                            type: string
                          amountCents:
                            description: 'The same amount in integer cents: amount times 100'
                            type: integer
                          currency:
                            description: ISO 4217 code
                            type: string
                      filledStake:
                        description: Money amount
                        type: object
                        required:
                          - amount
                          - amountCents
                          - currency
                        properties:
                          amount:
                            pattern: ^-?\d+\.\d{2}$
                            description: Decimal string, two decimals
                            type: string
                          amountCents:
                            description: 'The same amount in integer cents: amount times 100'
                            type: integer
                          currency:
                            description: ISO 4217 code
                            type: string
                      remainingStake:
                        description: Money amount
                        type: object
                        required:
                          - amount
                          - amountCents
                          - currency
                        properties:
                          amount:
                            pattern: ^-?\d+\.\d{2}$
                            description: Decimal string, two decimals
                            type: string
                          amountCents:
                            description: 'The same amount in integer cents: amount times 100'
                            type: integer
                          currency:
                            description: ISO 4217 code
                            type: string
                      minPrice:
                        description: Decimal price floor
                        type: string
                      averageFilledPrice:
                        anyOf:
                          - description: Stake-weighted price of the filled legs
                            type: string
                          - type: 'null'
                      acceptBetterOdds:
                        type: boolean
                      acceptPartialStake:
                        type: boolean
                      expiresAt:
                        anyOf:
                          - format: date-time
                            type: string
                          - type: 'null'
                      bets:
                        type: array
                        items:
                          type: object
                          required:
                            - bookmaker
                            - status
                            - requestedStake
                            - filledStake
                            - filledPrice
                            - declineReason
                          properties:
                            bookmaker:
                              type: string
                            status:
                              type: string
                              enum:
                                - PENDING
                                - WAITING
                                - PARTIALLY_PLACED
                                - PLACED
                                - REJECTED
                                - CANCELLED
                                - SETTLED
                            requestedStake:
                              description: Money amount
                              type: object
                              required:
                                - amount
                                - amountCents
                                - currency
                              properties:
                                amount:
                                  pattern: ^-?\d+\.\d{2}$
                                  description: Decimal string, two decimals
                                  type: string
                                amountCents:
                                  description: >-
                                    The same amount in integer cents: amount
                                    times 100
                                  type: integer
                                currency:
                                  description: ISO 4217 code
                                  type: string
                            filledStake:
                              anyOf:
                                - description: Money amount
                                  type: object
                                  required:
                                    - amount
                                    - amountCents
                                    - currency
                                  properties:
                                    amount:
                                      pattern: ^-?\d+\.\d{2}$
                                      description: Decimal string, two decimals
                                      type: string
                                    amountCents:
                                      description: >-
                                        The same amount in integer cents: amount
                                        times 100
                                      type: integer
                                    currency:
                                      description: ISO 4217 code
                                      type: string
                                - type: 'null'
                            filledPrice:
                              anyOf:
                                - type: string
                                - type: 'null'
                            declineReason:
                              anyOf:
                                - type: string
                                - type: 'null'
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - clientOrderId
                  - status
                  - selection
                  - side
                  - bookmakers
                  - requestedStake
                  - filledStake
                  - remainingStake
                  - minPrice
                  - averageFilledPrice
                  - acceptBetterOdds
                  - acceptPartialStake
                  - expiresAt
                  - createdAt
                  - updatedAt
                  - version
                  - bets
                properties:
                  id:
                    format: uuid
                    type: string
                  clientOrderId:
                    anyOf:
                      - type: string
                      - type: 'null'
                  status:
                    type: string
                    enum:
                      - PENDING
                      - PARTIALLY_FILLED
                      - FILLED
                      - EXPIRED
                      - CANCELLED
                      - REJECTED
                  selection:
                    type: object
                    required:
                      - fixtureId
                      - outcomeId
                      - playerId
                      - sportId
                      - tournamentId
                      - marketId
                    properties:
                      fixtureId:
                        type: string
                      outcomeId:
                        type: integer
                      playerId:
                        type: integer
                      sportId:
                        type: integer
                      tournamentId:
                        anyOf:
                          - type: integer
                          - type: 'null'
                      marketId:
                        type: integer
                  side:
                    description: Only back is supported in v1
                    type: string
                    enum:
                      - back
                  bookmakers:
                    description: Bookmakers the stake was split across
                    type: array
                    items:
                      type: string
                  requestedStake:
                    description: Money amount
                    type: object
                    required:
                      - amount
                      - amountCents
                      - currency
                    properties:
                      amount:
                        pattern: ^-?\d+\.\d{2}$
                        description: Decimal string, two decimals
                        type: string
                      amountCents:
                        description: 'The same amount in integer cents: amount times 100'
                        type: integer
                      currency:
                        description: ISO 4217 code
                        type: string
                  filledStake:
                    description: Money amount
                    type: object
                    required:
                      - amount
                      - amountCents
                      - currency
                    properties:
                      amount:
                        pattern: ^-?\d+\.\d{2}$
                        description: Decimal string, two decimals
                        type: string
                      amountCents:
                        description: 'The same amount in integer cents: amount times 100'
                        type: integer
                      currency:
                        description: ISO 4217 code
                        type: string
                  remainingStake:
                    description: Money amount
                    type: object
                    required:
                      - amount
                      - amountCents
                      - currency
                    properties:
                      amount:
                        pattern: ^-?\d+\.\d{2}$
                        description: Decimal string, two decimals
                        type: string
                      amountCents:
                        description: 'The same amount in integer cents: amount times 100'
                        type: integer
                      currency:
                        description: ISO 4217 code
                        type: string
                  minPrice:
                    description: Decimal price floor
                    type: string
                  averageFilledPrice:
                    anyOf:
                      - description: Stake-weighted price of the filled legs
                        type: string
                      - type: 'null'
                  acceptBetterOdds:
                    type: boolean
                  acceptPartialStake:
                    type: boolean
                  expiresAt:
                    anyOf:
                      - format: date-time
                        type: string
                      - type: 'null'
                  createdAt:
                    format: date-time
                    type: string
                  updatedAt:
                    format: date-time
                    type: string
                  version:
                    description: >-
                      Goes up by one at every change of the order or one of its
                      bets
                    type: integer
                  bets:
                    type: array
                    items:
                      type: object
                      required:
                        - id
                        - orderId
                        - bookmaker
                        - status
                        - requestedStake
                        - filledStake
                        - filledPrice
                        - declineReason
                        - placedAt
                        - filledAt
                        - settlement
                      properties:
                        id:
                          format: uuid
                          type: string
                        orderId:
                          format: uuid
                          type: string
                        bookmaker:
                          type: string
                        status:
                          type: string
                          enum:
                            - PENDING
                            - WAITING
                            - PARTIALLY_PLACED
                            - PLACED
                            - REJECTED
                            - CANCELLED
                            - SETTLED
                        requestedStake:
                          description: Money amount
                          type: object
                          required:
                            - amount
                            - amountCents
                            - currency
                          properties:
                            amount:
                              pattern: ^-?\d+\.\d{2}$
                              description: Decimal string, two decimals
                              type: string
                            amountCents:
                              description: >-
                                The same amount in integer cents: amount times
                                100
                              type: integer
                            currency:
                              description: ISO 4217 code
                              type: string
                        filledStake:
                          anyOf:
                            - description: Money amount
                              type: object
                              required:
                                - amount
                                - amountCents
                                - currency
                              properties:
                                amount:
                                  pattern: ^-?\d+\.\d{2}$
                                  description: Decimal string, two decimals
                                  type: string
                                amountCents:
                                  description: >-
                                    The same amount in integer cents: amount
                                    times 100
                                  type: integer
                                currency:
                                  description: ISO 4217 code
                                  type: string
                            - type: 'null'
                        filledPrice:
                          anyOf:
                            - type: string
                            - type: 'null'
                        declineReason:
                          anyOf:
                            - type: string
                            - type: 'null'
                        placedAt:
                          anyOf:
                            - format: date-time
                              type: string
                            - type: 'null'
                        filledAt:
                          anyOf:
                            - format: date-time
                              type: string
                            - type: 'null'
                        settlement:
                          type: object
                          required:
                            - status
                            - amount
                            - settledAt
                          properties:
                            status:
                              type: string
                              enum:
                                - UNSETTLED
                                - WON
                                - LOST
                                - VOID
                                - HALF_WON
                                - HALF_LOST
                                - PUSH
                                - CASHOUT
                            amount:
                              description: Profit or loss of the account on this bet
                              anyOf:
                                - description: Money amount
                                  type: object
                                  required:
                                    - amount
                                    - amountCents
                                    - currency
                                  properties:
                                    amount:
                                      pattern: ^-?\d+\.\d{2}$
                                      description: Decimal string, two decimals
                                      type: string
                                    amountCents:
                                      description: >-
                                        The same amount in integer cents: amount
                                        times 100
                                      type: integer
                                    currency:
                                      description: ISO 4217 code
                                      type: string
                                - type: 'null'
                            settledAt:
                              anyOf:
                                - format: date-time
                                  type: string
                                - type: 'null'
        '400':
          description: Error. `code` is stable; `message` is for humans and may change.
          content:
            application/json:
              schema:
                description: >-
                  Error. `code` is stable; `message` is for humans and may
                  change.
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - VALIDATION_FAILED
                      - MODE_REQUIRED
                      - INVALID_STAKE
                      - INVALID_PRICE
                      - INVALID_EXPIRY
                      - CURRENCY_NOT_SUPPORTED
                      - BOOKMAKER_NOT_AVAILABLE_VIA_API
                      - BOOKMAKER_NOT_AVAILABLE
                      - INVALID_API_KEY
                      - API_ACCESS_DENIED
                      - ACCOUNT_NOT_ACTIVE
                      - BETTING_NOT_ALLOWED
                      - BALANCE_UNAVAILABLE
                      - INSUFFICIENT_FUNDS
                      - MAX_STAKE_PER_FIXTURE_EXCEEDED
                      - PRICE_NOT_AVAILABLE
                      - PRICE_CHANGED
                      - NO_LIQUIDITY
                      - INSUFFICIENT_LIQUIDITY
                      - CLIENT_ORDER_ID_REUSED
                      - PREVIOUS_ATTEMPT_UNRESOLVED
                      - NOT_FOUND
                      - INVALID_CURSOR
                      - INVALID_WINDOW
                      - ORDER_BUSY
                      - CONFLICT
                      - FORBIDDEN
                      - RATE_LIMITED
                      - BETTING_SUSPENDED
                      - EXPIRY_NOT_AVAILABLE
                      - PUBLIC_API_DISABLED
                      - SERVICE_UNAVAILABLE
                      - UPSTREAM_UNAVAILABLE
                      - FEED_UNAVAILABLE
                      - FEED_TIMEOUT
                      - INTERNAL_ERROR
                  message:
                    type: string
                  details: {}
        '401':
          description: Error. `code` is stable; `message` is for humans and may change.
          content:
            application/json:
              schema:
                description: >-
                  Error. `code` is stable; `message` is for humans and may
                  change.
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - VALIDATION_FAILED
                      - MODE_REQUIRED
                      - INVALID_STAKE
                      - INVALID_PRICE
                      - INVALID_EXPIRY
                      - CURRENCY_NOT_SUPPORTED
                      - BOOKMAKER_NOT_AVAILABLE_VIA_API
                      - BOOKMAKER_NOT_AVAILABLE
                      - INVALID_API_KEY
                      - API_ACCESS_DENIED
                      - ACCOUNT_NOT_ACTIVE
                      - BETTING_NOT_ALLOWED
                      - BALANCE_UNAVAILABLE
                      - INSUFFICIENT_FUNDS
                      - MAX_STAKE_PER_FIXTURE_EXCEEDED
                      - PRICE_NOT_AVAILABLE
                      - PRICE_CHANGED
                      - NO_LIQUIDITY
                      - INSUFFICIENT_LIQUIDITY
                      - CLIENT_ORDER_ID_REUSED
                      - PREVIOUS_ATTEMPT_UNRESOLVED
                      - NOT_FOUND
                      - INVALID_CURSOR
                      - INVALID_WINDOW
                      - ORDER_BUSY
                      - CONFLICT
                      - FORBIDDEN
                      - RATE_LIMITED
                      - BETTING_SUSPENDED
                      - EXPIRY_NOT_AVAILABLE
                      - PUBLIC_API_DISABLED
                      - SERVICE_UNAVAILABLE
                      - UPSTREAM_UNAVAILABLE
                      - FEED_UNAVAILABLE
                      - FEED_TIMEOUT
                      - INTERNAL_ERROR
                  message:
                    type: string
                  details: {}
        '403':
          description: Error. `code` is stable; `message` is for humans and may change.
          content:
            application/json:
              schema:
                description: >-
                  Error. `code` is stable; `message` is for humans and may
                  change.
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - VALIDATION_FAILED
                      - MODE_REQUIRED
                      - INVALID_STAKE
                      - INVALID_PRICE
                      - INVALID_EXPIRY
                      - CURRENCY_NOT_SUPPORTED
                      - BOOKMAKER_NOT_AVAILABLE_VIA_API
                      - BOOKMAKER_NOT_AVAILABLE
                      - INVALID_API_KEY
                      - API_ACCESS_DENIED
                      - ACCOUNT_NOT_ACTIVE
                      - BETTING_NOT_ALLOWED
                      - BALANCE_UNAVAILABLE
                      - INSUFFICIENT_FUNDS
                      - MAX_STAKE_PER_FIXTURE_EXCEEDED
                      - PRICE_NOT_AVAILABLE
                      - PRICE_CHANGED
                      - NO_LIQUIDITY
                      - INSUFFICIENT_LIQUIDITY
                      - CLIENT_ORDER_ID_REUSED
                      - PREVIOUS_ATTEMPT_UNRESOLVED
                      - NOT_FOUND
                      - INVALID_CURSOR
                      - INVALID_WINDOW
                      - ORDER_BUSY
                      - CONFLICT
                      - FORBIDDEN
                      - RATE_LIMITED
                      - BETTING_SUSPENDED
                      - EXPIRY_NOT_AVAILABLE
                      - PUBLIC_API_DISABLED
                      - SERVICE_UNAVAILABLE
                      - UPSTREAM_UNAVAILABLE
                      - FEED_UNAVAILABLE
                      - FEED_TIMEOUT
                      - INTERNAL_ERROR
                  message:
                    type: string
                  details: {}
        '409':
          description: Error. `code` is stable; `message` is for humans and may change.
          content:
            application/json:
              schema:
                description: >-
                  Error. `code` is stable; `message` is for humans and may
                  change.
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - VALIDATION_FAILED
                      - MODE_REQUIRED
                      - INVALID_STAKE
                      - INVALID_PRICE
                      - INVALID_EXPIRY
                      - CURRENCY_NOT_SUPPORTED
                      - BOOKMAKER_NOT_AVAILABLE_VIA_API
                      - BOOKMAKER_NOT_AVAILABLE
                      - INVALID_API_KEY
                      - API_ACCESS_DENIED
                      - ACCOUNT_NOT_ACTIVE
                      - BETTING_NOT_ALLOWED
                      - BALANCE_UNAVAILABLE
                      - INSUFFICIENT_FUNDS
                      - MAX_STAKE_PER_FIXTURE_EXCEEDED
                      - PRICE_NOT_AVAILABLE
                      - PRICE_CHANGED
                      - NO_LIQUIDITY
                      - INSUFFICIENT_LIQUIDITY
                      - CLIENT_ORDER_ID_REUSED
                      - PREVIOUS_ATTEMPT_UNRESOLVED
                      - NOT_FOUND
                      - INVALID_CURSOR
                      - INVALID_WINDOW
                      - ORDER_BUSY
                      - CONFLICT
                      - FORBIDDEN
                      - RATE_LIMITED
                      - BETTING_SUSPENDED
                      - EXPIRY_NOT_AVAILABLE
                      - PUBLIC_API_DISABLED
                      - SERVICE_UNAVAILABLE
                      - UPSTREAM_UNAVAILABLE
                      - FEED_UNAVAILABLE
                      - FEED_TIMEOUT
                      - INTERNAL_ERROR
                  message:
                    type: string
                  details: {}
        '429':
          description: Error. `code` is stable; `message` is for humans and may change.
          content:
            application/json:
              schema:
                description: >-
                  Error. `code` is stable; `message` is for humans and may
                  change.
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - VALIDATION_FAILED
                      - MODE_REQUIRED
                      - INVALID_STAKE
                      - INVALID_PRICE
                      - INVALID_EXPIRY
                      - CURRENCY_NOT_SUPPORTED
                      - BOOKMAKER_NOT_AVAILABLE_VIA_API
                      - BOOKMAKER_NOT_AVAILABLE
                      - INVALID_API_KEY
                      - API_ACCESS_DENIED
                      - ACCOUNT_NOT_ACTIVE
                      - BETTING_NOT_ALLOWED
                      - BALANCE_UNAVAILABLE
                      - INSUFFICIENT_FUNDS
                      - MAX_STAKE_PER_FIXTURE_EXCEEDED
                      - PRICE_NOT_AVAILABLE
                      - PRICE_CHANGED
                      - NO_LIQUIDITY
                      - INSUFFICIENT_LIQUIDITY
                      - CLIENT_ORDER_ID_REUSED
                      - PREVIOUS_ATTEMPT_UNRESOLVED
                      - NOT_FOUND
                      - INVALID_CURSOR
                      - INVALID_WINDOW
                      - ORDER_BUSY
                      - CONFLICT
                      - FORBIDDEN
                      - RATE_LIMITED
                      - BETTING_SUSPENDED
                      - EXPIRY_NOT_AVAILABLE
                      - PUBLIC_API_DISABLED
                      - SERVICE_UNAVAILABLE
                      - UPSTREAM_UNAVAILABLE
                      - FEED_UNAVAILABLE
                      - FEED_TIMEOUT
                      - INTERNAL_ERROR
                  message:
                    type: string
                  details: {}
        '502':
          description: Error. `code` is stable; `message` is for humans and may change.
          content:
            application/json:
              schema:
                description: >-
                  Error. `code` is stable; `message` is for humans and may
                  change.
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - VALIDATION_FAILED
                      - MODE_REQUIRED
                      - INVALID_STAKE
                      - INVALID_PRICE
                      - INVALID_EXPIRY
                      - CURRENCY_NOT_SUPPORTED
                      - BOOKMAKER_NOT_AVAILABLE_VIA_API
                      - BOOKMAKER_NOT_AVAILABLE
                      - INVALID_API_KEY
                      - API_ACCESS_DENIED
                      - ACCOUNT_NOT_ACTIVE
                      - BETTING_NOT_ALLOWED
                      - BALANCE_UNAVAILABLE
                      - INSUFFICIENT_FUNDS
                      - MAX_STAKE_PER_FIXTURE_EXCEEDED
                      - PRICE_NOT_AVAILABLE
                      - PRICE_CHANGED
                      - NO_LIQUIDITY
                      - INSUFFICIENT_LIQUIDITY
                      - CLIENT_ORDER_ID_REUSED
                      - PREVIOUS_ATTEMPT_UNRESOLVED
                      - NOT_FOUND
                      - INVALID_CURSOR
                      - INVALID_WINDOW
                      - ORDER_BUSY
                      - CONFLICT
                      - FORBIDDEN
                      - RATE_LIMITED
                      - BETTING_SUSPENDED
                      - EXPIRY_NOT_AVAILABLE
                      - PUBLIC_API_DISABLED
                      - SERVICE_UNAVAILABLE
                      - UPSTREAM_UNAVAILABLE
                      - FEED_UNAVAILABLE
                      - FEED_TIMEOUT
                      - INTERNAL_ERROR
                  message:
                    type: string
                  details: {}
        '503':
          description: Error. `code` is stable; `message` is for humans and may change.
          content:
            application/json:
              schema:
                description: >-
                  Error. `code` is stable; `message` is for humans and may
                  change.
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - VALIDATION_FAILED
                      - MODE_REQUIRED
                      - INVALID_STAKE
                      - INVALID_PRICE
                      - INVALID_EXPIRY
                      - CURRENCY_NOT_SUPPORTED
                      - BOOKMAKER_NOT_AVAILABLE_VIA_API
                      - BOOKMAKER_NOT_AVAILABLE
                      - INVALID_API_KEY
                      - API_ACCESS_DENIED
                      - ACCOUNT_NOT_ACTIVE
                      - BETTING_NOT_ALLOWED
                      - BALANCE_UNAVAILABLE
                      - INSUFFICIENT_FUNDS
                      - MAX_STAKE_PER_FIXTURE_EXCEEDED
                      - PRICE_NOT_AVAILABLE
                      - PRICE_CHANGED
                      - NO_LIQUIDITY
                      - INSUFFICIENT_LIQUIDITY
                      - CLIENT_ORDER_ID_REUSED
                      - PREVIOUS_ATTEMPT_UNRESOLVED
                      - NOT_FOUND
                      - INVALID_CURSOR
                      - INVALID_WINDOW
                      - ORDER_BUSY
                      - CONFLICT
                      - FORBIDDEN
                      - RATE_LIMITED
                      - BETTING_SUSPENDED
                      - EXPIRY_NOT_AVAILABLE
                      - PUBLIC_API_DISABLED
                      - SERVICE_UNAVAILABLE
                      - UPSTREAM_UNAVAILABLE
                      - FEED_UNAVAILABLE
                      - FEED_TIMEOUT
                      - INTERNAL_ERROR
                  message:
                    type: string
                  details: {}
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````

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