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

# Query unexecuted (active) conditional orders

> List active conditional orders not yet triggered on collateral markets via the V4 API.

* [Query unexecuted OCO orders](/api-reference/collateral-trading/query-unexecuted-oco-orders) — List active OCO orders
* [Cancel conditional order](/api-reference/collateral-trading/cancel-conditional-order) — Cancel an active conditional order
* [Collateral stop-limit order](/api-reference/collateral-trading/collateral-stop-limit-order) — Place a collateral stop-limit order
* [Create collateral OCO order](/api-reference/collateral-trading/create-collateral-oco-order) — Create a combined limit and stop-limit order


## OpenAPI

````yaml /openapi/private/http-trade-v4.yaml POST /api/v4/conditional-orders
openapi: 3.0.3
info:
  title: Private HTTP API V4 - Collateral Trading
  description: |
    WhiteBIT Private HTTP API V4 for collateral/margin trading operations.

    Base URL: https://whitebit.com

    All endpoints return time in Unix-time format.
    All endpoints return either a JSON object or array.
    For receiving responses from API calls please use http method POST.

    Authentication required for all endpoints.
  version: 4.0.0
  license:
    name: WhiteBIT Terms of Service
    url: https://whitebit.com/terms
servers:
  - url: https://whitebit.com
    description: WhiteBIT Global Server
  - url: https://whitebit.eu
    description: WhiteBIT EU Server
security:
  - ApiKeyAuth: []
    PayloadAuth: []
    SignatureAuth: []
tags:
  - name: Collateral Trading
    description: Endpoints for collateral/margin trading operations
  - name: Spot Trading
    description: Endpoints for spot trading operations
  - name: Market Fee
    description: Endpoints for querying trading fees
paths:
  /api/v4/conditional-orders:
    post:
      tags:
        - Collateral Trading
      summary: Query unexecuted(active) conditional orders
      description: >
        The endpoint returns active (unexecuted) conditional orders for the
        authenticated account. Conditional orders include
        [OCO](/glossary#one-cancels-the-other-oco) and
        [OTO](/glossary#one-triggers-the-other-oto) types. The response uses
        polymorphic structure — each record contains a `type` field (`oco` or
        `oto`) that determines the record shape. Use the optional `market`
        parameter to filter results.


        <Warning>

        Rate limit: 12000 requests/10 sec.

        </Warning>


        <Accordion title="Error Codes">
          - `30` - default validation error code (invalid pagination — `limit` outside 1–100 or negative `offset`)
          - `31` - market validation failed (the `market` filter is unknown or not available for collateral trading)
        </Accordion>
      operationId: getConditionalOrders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                market:
                  type: string
                  description: >
                    Filter by specific market. Example: BTC_USDT


                    If not specified, returns conditional orders for all
                    markets.
                  example: BTC_USDT
                offset:
                  type: integer
                  description: Number of records to skip for pagination.
                  default: 0
                  example: 0
                limit:
                  type: integer
                  description: Maximum number of records to return per page.
                  default: 50
                  example: 100
                request:
                  type: string
                  example: '{{request}}'
                nonce:
                  type: integer
                  example: 1594297865000
            example:
              market: BTC_USDT
              offset: 0
              limit: 100
      responses:
        '200':
          description: >-
            Successful response - returns paginated conditional orders (OCO and
            OTO types)
          content:
            application/json:
              schema:
                type: object
                properties:
                  limit:
                    type: integer
                    description: Number of records per page
                    example: 100
                  offset:
                    type: integer
                    description: Number of records skipped
                    example: 0
                  total:
                    type: integer
                    description: Total number of records
                    example: 2
                  records:
                    type: array
                    description: Array of conditional orders (can be OCO or OTO type)
                    items:
                      oneOf:
                        - type: object
                          description: OCO type conditional order
                          properties:
                            id:
                              type: integer
                              example: 117703764513
                            type:
                              type: string
                              enum:
                                - oco
                              example: oco
                            reduceOnly:
                              type: boolean
                              description: Reduce-only flag
                              example: false
                            stopLoss:
                              type: object
                              properties:
                                orderId:
                                  type: integer
                                  example: 117703764514
                                positionSide:
                                  type: string
                                  enum:
                                    - LONG
                                    - SHORT
                                    - BOTH
                                  example: LONG
                            takeProfit:
                              type: object
                              properties:
                                orderId:
                                  type: integer
                                  example: 117703764515
                                positionSide:
                                  type: string
                                  enum:
                                    - LONG
                                    - SHORT
                                    - BOTH
                                  example: LONG
                        - type: object
                          description: OTO type conditional order
                          properties:
                            id:
                              type: integer
                              example: 29457221
                            type:
                              type: string
                              enum:
                                - oto
                              example: oto
                            reduceOnly:
                              type: boolean
                              description: Reduce-only flag
                              example: false
                            stopLossPrice:
                              type: string
                              example: '30000'
                            takeProfitPrice:
                              type: string
                              example: '50000'
                            conditionalOrder:
                              type: object
                              properties:
                                orderId:
                                  type: integer
                                  example: 3686033640
                                clientOrderId:
                                  type: string
                                  example: customId11
                                market:
                                  type: string
                                  example: BTC_USDT
                                positionSide:
                                  type: string
                                  enum:
                                    - LONG
                                    - SHORT
                                    - BOTH
                                  example: LONG
              example:
                limit: 100
                offset: 0
                total: 2
                records:
                  - id: 117703764513
                    type: oco
                    reduceOnly: false
                    stopLoss:
                      orderId: 117703764514
                      clientOrderId: ''
                      market: BTC_USDT
                      side: buy
                      type: stop limit
                      timestamp: 1594605801.49815
                      dealMoney: '0'
                      dealStock: '0'
                      amount: '2.241379'
                      takerFee: '0.001'
                      makerFee: '0.001'
                      left: '2.241379'
                      dealFee: '0'
                      postOnly: false
                      mtime: 1662478154.941582
                      price: '19928.79'
                      activationPrice: '29928.79'
                      activationCondition: gte
                      activated: 0
                      status: FILLED
                      stp: 'no'
                      positionSide: LONG
                    takeProfit:
                      orderId: 117703764515
                      clientOrderId: ''
                      market: BTC_USDT
                      side: buy
                      type: limit
                      timestamp: 1662478154.941582
                      dealMoney: '0'
                      dealStock: '0'
                      amount: '0.635709'
                      takerFee: '0.001'
                      makerFee: '0.001'
                      left: '0.635709'
                      dealFee: '0'
                      postOnly: false
                      mtime: 1662478154.941582
                      price: '9928.79'
                      status: FILLED
                      stp: 'no'
                      positionSide: LONG
                  - id: 29457221
                    type: oto
                    reduceOnly: false
                    stopLossPrice: '30000'
                    takeProfitPrice: '50000'
                    conditionalOrder:
                      orderId: 3686033640
                      clientOrderId: customId11
                      market: BTC_USDT
                      side: buy
                      type: limit
                      timestamp: 1594605801.49815
                      dealMoney: '0'
                      dealStock: '0'
                      amount: '2.241379'
                      takerFee: '0.001'
                      makerFee: '0.001'
                      left: '2.241379'
                      dealFee: '0'
                      price: '40000'
                      status: FILLED
                      stp: 'no'
                      positionSide: LONG
        '400':
          description: Inner validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Request validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service temporarily unavailable
      security:
        - ApiKeyAuth: []
          PayloadAuth: []
          SignatureAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
          description: Error code
          example: 30
        message:
          type: string
          description: Error message
          example: Validation failed
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Detailed error information
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-TXC-APIKEY
      description: The public WhiteBIT API key.
    PayloadAuth:
      type: apiKey
      in: header
      name: X-TXC-PAYLOAD
      description: Base64-encoded JSON request body.
    SignatureAuth:
      type: apiKey
      in: header
      name: X-TXC-SIGNATURE
      description: >-
        HMAC-SHA512 signature of the payload, hex-encoded. Computed as
        hex(HMAC-SHA512(payload, api_secret)).

````