Binance Trading API

Trading endpoints for COIN-M futures orders.

Operations 29

POST /dapi/v1/order New order #
GET /dapi/v1/order Query order #
DELETE /dapi/v1/order Cancel order #
GET /dapi/v1/openOrders Current all open orders #
POST /eapi/v1/order New order #
GET /eapi/v1/order Query single order #
DELETE /eapi/v1/order Cancel order #
GET /eapi/v1/openOrders Query current open orders #
POST /sapi/v1/margin/order Margin account new order #
GET /sapi/v1/margin/order Query margin account order #
DELETE /sapi/v1/margin/order Cancel margin account order #
GET /sapi/v1/margin/openOrders Query margin account open orders #
POST /papi/v1/um/order New UM order #
POST /papi/v1/cm/order New CM order #
POST /papi/v1/margin/order New margin order #
POST /api/v3/order New order #
GET /api/v3/order Query order #
DELETE /api/v3/order Cancel order #
GET /api/v3/openOrders Current open orders #
DELETE /api/v3/openOrders Cancel all open orders on a symbol #
GET /api/v3/allOrders All orders #
POST /api/v3/order/oco New OCO order #
POST /api/v3/order/test Test new order #
POST /api/v3/sor/order New order using SOR #
POST /fapi/v1/order New order #
GET /fapi/v1/order Query order #
DELETE /fapi/v1/order Cancel order #
POST /fapi/v1/batchOrders Place multiple orders #
GET /fapi/v1/openOrders Current all open orders #

Documentation

📖
Documentation
https://developers.binance.com/docs/binance-spot-api-docs/rest-api
📖
Documentation
https://developers.binance.com/docs/derivatives/usds-margined-futures/general-info
📖
Documentation
https://developers.binance.com/docs/derivatives/coin-margined-futures/general-info
📖
Documentation
https://developers.binance.com/docs/derivatives/option/general-info
📖
Documentation
https://developers.binance.com/docs/derivatives/portfolio-margin/general-info
📖
Documentation
https://developers.binance.com/docs/margin_trading/general-info
📖
Documentation
https://developers.binance.com/docs/wallet/introduction
📖
Documentation
https://developers.binance.com/docs/sub_account/general-info
📖
Documentation
https://developers.binance.com/docs/simple_earn/general-info
📖
Documentation
https://developers.binance.com/docs/mining/general-info
📖
Documentation
https://developers.binance.com/docs/copy_trading/general-info
📖
Documentation
https://developers.binance.com/docs/convert/general-info
📖
Documentation
https://developers.binance.com/docs/binance-pay/introduction
📖
Documentation
https://developers.binance.com/docs/algo/general-info
📖
Documentation
https://developers.binance.com/docs/auto_invest/general-info
📖
Documentation
https://developers.binance.com/docs/crypto_loan/general-info
📖
Documentation
https://developers.binance.com/docs/gift_card/general-info
📖
Documentation
https://developers.binance.com/docs/nft/general-info
📖
Documentation
https://developers.binance.com/docs/fiat/general-info

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/binance-trading-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

binance-trading-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Binance Trading API
  contact:
    name: Binance Support
    url: https://www.binance.com/en/support
  termsOfService: https://www.binance.com/en/terms
  version: '1.0'
  description: 'Operations tagged Trading across 6 of this provider''s published API definitions: binance-coin-margined-futures-openapi.yml, binance-european-options-openapi.yml, binance-margin-trading-openapi.yml, binance-portfolio-margin-openapi.yml, binance-spot-trading-openapi.yml, binance-usds-margined-futures-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://dapi.binance.com
  description: Production Server
- url: https://demo-dapi.binance.com
  description: Testnet Server
- url: https://eapi.binance.com
  description: Production Server
- url: https://api.binance.com
  description: Production Server
- url: https://papi.binance.com
  description: Production Server
- url: https://api1.binance.com
  description: Production Server (Backup 1)
- url: https://api2.binance.com
  description: Production Server (Backup 2)
- url: https://api3.binance.com
  description: Production Server (Backup 3)
- url: https://api4.binance.com
  description: Production Server (Backup 4)
- url: https://testnet.binance.vision
  description: Testnet Server
- url: https://fapi.binance.com
  description: Production Server
- url: https://demo-fapi.binance.com
  description: Testnet Server
security:
- apiKey: []
tags:
- name: Trading
  description: Trading endpoints for COIN-M futures orders.
paths:
  /dapi/v1/order:
    post:
      operationId: createOrder
      summary: New order
      description: Send in a new COIN-M futures order.
      tags:
      - Trading
      parameters:
      - $ref: '#/components/parameters/symbolRequired'
      - name: side
        in: query
        required: true
        schema:
          type: string
          enum:
          - BUY
          - SELL
      - name: positionSide
        in: query
        schema:
          type: string
          enum:
          - BOTH
          - LONG
          - SHORT
      - name: type
        in: query
        required: true
        schema:
          type: string
          enum:
          - LIMIT
          - MARKET
          - STOP
          - STOP_MARKET
          - TAKE_PROFIT
          - TAKE_PROFIT_MARKET
          - TRAILING_STOP_MARKET
      - name: timeInForce
        in: query
        schema:
          type: string
          enum:
          - GTC
          - IOC
          - FOK
          - GTX
      - name: quantity
        in: query
        schema:
          type: string
      - name: reduceOnly
        in: query
        schema:
          type: boolean
      - name: price
        in: query
        schema:
          type: string
      - name: newClientOrderId
        in: query
        schema:
          type: string
      - name: stopPrice
        in: query
        schema:
          type: string
      - name: activationPrice
        in: query
        schema:
          type: string
      - name: callbackRate
        in: query
        schema:
          type: string
      - name: workingType
        in: query
        schema:
          type: string
          enum:
          - MARK_PRICE
          - CONTRACT_PRICE
      - name: newOrderRespType
        in: query
        schema:
          type: string
          enum:
          - ACK
          - RESULT
      - $ref: '#/components/parameters/recvWindow'
      - $ref: '#/components/parameters/timestamp'
      - $ref: '#/components/parameters/signature'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKey: []
        hmacSignature: []
    get:
      operationId: getOrder
      summary: Query order
      description: Check an order's status.
      tags:
      - Trading
      parameters:
      - $ref: '#/components/parameters/symbolRequired'
      - name: orderId
        in: query
        schema:
          type: integer
          format: int64
      - name: origClientOrderId
        in: query
        schema:
          type: string
      - $ref: '#/components/parameters/recvWindow'
      - $ref: '#/components/parameters/timestamp'
      - $ref: '#/components/parameters/signature'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
      security:
      - apiKey: []
        hmacSignature: []
    delete:
      operationId: cancelOrder
      summary: Cancel order
      description: Cancel an active COIN-M futures order.
      tags:
      - Trading
      parameters:
      - $ref: '#/components/parameters/symbolRequired'
      - name: orderId
        in: query
        schema:
          type: integer
          format: int64
      - name: origClientOrderId
        in: query
        schema:
          type: string
      - $ref: '#/components/parameters/recvWindow'
      - $ref: '#/components/parameters/timestamp'
      - $ref: '#/components/parameters/signature'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://dapi.binance.com
      description: Production Server
    - url: https://demo-dapi.binance.com
      description: Testnet Server
  /dapi/v1/openOrders:
    get:
      operationId: getOpenOrders
      summary: Current all open orders
      description: Get all open COIN-M futures orders.
      tags:
      - Trading
      parameters:
      - $ref: '#/components/parameters/symbol'
      - $ref: '#/components/parameters/recvWindow'
      - $ref: '#/components/parameters/timestamp'
      - $ref: '#/components/parameters/signature'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://dapi.binance.com
      description: Production Server
    - url: https://demo-dapi.binance.com
      description: Testnet Server
  /eapi/v1/order:
    post:
      operationId: createOrder
      summary: New order
      description: Send in a new options order.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        required: true
        description: Option symbol.
        schema:
          type: string
      - name: side
        in: query
        required: true
        schema:
          type: string
          enum:
          - BUY
          - SELL
      - name: type
        in: query
        required: true
        schema:
          type: string
          enum:
          - LIMIT
      - name: quantity
        in: query
        required: true
        schema:
          type: string
      - name: price
        in: query
        required: true
        schema:
          type: string
      - name: timeInForce
        in: query
        schema:
          type: string
          enum:
          - GTC
          - IOC
          - FOK
      - name: reduceOnly
        in: query
        schema:
          type: boolean
      - name: postOnly
        in: query
        schema:
          type: boolean
      - name: newOrderRespType
        in: query
        schema:
          type: string
          enum:
          - ACK
          - RESULT
      - name: clientOrderId
        in: query
        schema:
          type: string
      - name: isMmp
        in: query
        description: Market maker protection flag.
        schema:
          type: boolean
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKey: []
        hmacSignature: []
    get:
      operationId: getOrder
      summary: Query single order
      description: Check an options order status.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        required: true
        schema:
          type: string
      - name: orderId
        in: query
        schema:
          type: integer
          format: int64
      - name: clientOrderId
        in: query
        schema:
          type: string
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
      security:
      - apiKey: []
        hmacSignature: []
    delete:
      operationId: cancelOrder
      summary: Cancel order
      description: Cancel an active options order.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        required: true
        schema:
          type: string
      - name: orderId
        in: query
        schema:
          type: integer
          format: int64
      - name: clientOrderId
        in: query
        schema:
          type: string
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://eapi.binance.com
      description: Production Server
  /eapi/v1/openOrders:
    get:
      operationId: getOpenOrders
      summary: Query current open orders
      description: Get all open options orders.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        schema:
          type: string
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://eapi.binance.com
      description: Production Server
  /sapi/v1/margin/order:
    post:
      operationId: createMarginOrder
      summary: Margin account new order
      description: Place a new order for margin account.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        required: true
        schema:
          type: string
      - name: isIsolated
        in: query
        description: TRUE for isolated margin, FALSE for cross margin.
        schema:
          type: string
          enum:
          - 'TRUE'
          - 'FALSE'
      - name: side
        in: query
        required: true
        schema:
          type: string
          enum:
          - BUY
          - SELL
      - name: type
        in: query
        required: true
        schema:
          type: string
          enum:
          - LIMIT
          - MARKET
          - STOP_LOSS
          - STOP_LOSS_LIMIT
          - TAKE_PROFIT
          - TAKE_PROFIT_LIMIT
          - LIMIT_MAKER
      - name: quantity
        in: query
        schema:
          type: string
      - name: quoteOrderQty
        in: query
        schema:
          type: string
      - name: price
        in: query
        schema:
          type: string
      - name: stopPrice
        in: query
        schema:
          type: string
      - name: newClientOrderId
        in: query
        schema:
          type: string
      - name: newOrderRespType
        in: query
        schema:
          type: string
          enum:
          - ACK
          - RESULT
          - FULL
      - name: timeInForce
        in: query
        schema:
          type: string
          enum:
          - GTC
          - IOC
          - FOK
      - name: sideEffectType
        in: query
        description: NO_SIDE_EFFECT, MARGIN_BUY, or AUTO_REPAY.
        schema:
          type: string
          enum:
          - NO_SIDE_EFFECT
          - MARGIN_BUY
          - AUTO_REPAY
          - AUTO_BORROW_REPAY
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
      security:
      - apiKey: []
        hmacSignature: []
    get:
      operationId: getMarginOrder
      summary: Query margin account order
      description: Query a margin account order.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        required: true
        schema:
          type: string
      - name: isIsolated
        in: query
        schema:
          type: string
      - name: orderId
        in: query
        schema:
          type: integer
          format: int64
      - name: origClientOrderId
        in: query
        schema:
          type: string
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
      security:
      - apiKey: []
        hmacSignature: []
    delete:
      operationId: cancelMarginOrder
      summary: Cancel margin account order
      description: Cancel an active margin order.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        required: true
        schema:
          type: string
      - name: isIsolated
        in: query
        schema:
          type: string
      - name: orderId
        in: query
        schema:
          type: integer
          format: int64
      - name: origClientOrderId
        in: query
        schema:
          type: string
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://api.binance.com
      description: Production Server
  /sapi/v1/margin/openOrders:
    get:
      operationId: getMarginOpenOrders
      summary: Query margin account open orders
      description: Get all open margin orders for a symbol.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        schema:
          type: string
      - name: isIsolated
        in: query
        schema:
          type: string
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://api.binance.com
      description: Production Server
  /papi/v1/um/order:
    post:
      operationId: createUmOrder
      summary: New UM order
      description: Place a new USDT-M futures order through portfolio margin.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        required: true
        schema:
          type: string
      - name: side
        in: query
        required: true
        schema:
          type: string
          enum:
          - BUY
          - SELL
      - name: type
        in: query
        required: true
        schema:
          type: string
      - name: quantity
        in: query
        schema:
          type: string
      - name: price
        in: query
        schema:
          type: string
      - name: timeInForce
        in: query
        schema:
          type: string
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://papi.binance.com
      description: Production Server
  /papi/v1/cm/order:
    post:
      operationId: createCmOrder
      summary: New CM order
      description: Place a new COIN-M futures order through portfolio margin.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        required: true
        schema:
          type: string
      - name: side
        in: query
        required: true
        schema:
          type: string
          enum:
          - BUY
          - SELL
      - name: type
        in: query
        required: true
        schema:
          type: string
      - name: quantity
        in: query
        schema:
          type: string
      - name: price
        in: query
        schema:
          type: string
      - name: timeInForce
        in: query
        schema:
          type: string
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://papi.binance.com
      description: Production Server
  /papi/v1/margin/order:
    post:
      operationId: createMarginOrder
      summary: New margin order
      description: Place a new margin order through portfolio margin.
      tags:
      - Trading
      parameters:
      - name: symbol
        in: query
        required: true
        schema:
          type: string
      - name: side
        in: query
        required: true
        schema:
          type: string
          enum:
          - BUY
          - SELL
      - name: type
        in: query
        required: true
        schema:
          type: string
      - name: quantity
        in: query
        schema:
          type: string
      - name: price
        in: query
        schema:
          type: string
      - name: timeInForce
        in: query
        schema:
          type: string
      - name: recvWindow
        in: query
        schema:
          type: integer
      - name: timestamp
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: signature
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://papi.binance.com
      description: Production Server
  /api/v3/order:
    post:
      operationId: createOrder
      summary: New order
      description: Send in a new order. Requires SIGNED authentication with the TRADE permission. Order types include LIMIT, MARKET, STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT, and LIMIT_MAKER.
      tags:
      - Trading
      parameters:
      - $ref: '#/components/parameters/symbolRequired_2'
      - $ref: '#/components/parameters/side'
      - $ref: '#/components/parameters/orderType'
      - $ref: '#/components/parameters/timeInForce'
      - name: quantity
        in: query
        description: Order quantity in base asset.
        schema:
          type: string
      - name: quoteOrderQty
        in: query
        description: Order quantity in quote asset. Used for MARKET orders.
        schema:
          type: string
      - name: price
        in: query
        description: Order price. Required for LIMIT orders.
        schema:
          type: string
      - name: newClientOrderId
        in: query
        description: A unique ID for the order. Automatically generated if not sent.
        schema:
          type: string
      - name: strategyId
        in: query
        description: Arbitrary numeric value identifying the strategy.
        schema:
          type: integer
      - name: strategyType
        in: query
        description: Arbitrary numeric value identifying the strategy type. Values smaller than 1000000 are reserved.
        schema:
          type: integer
      - name: stopPrice
        in: query
        description: Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
        schema:
          type: string
      - name: trailingDelta
        in: query
        description: Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders. Basis points.
        schema:
          type: integer
      - name: icebergQty
        in: query
        description: Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
        schema:
          type: string
      - name: newOrderRespType
        in: query
        description: Set the response JSON. ACK, RESULT, or FULL.
        schema:
          type: string
          enum:
          - ACK
          - RESULT
          - FULL
      - name: selfTradePreventionMode
        in: query
        description: The self-trade prevention mode.
        schema:
          type: string
          enum:
          - EXPIRE_TAKER
          - EXPIRE_MAKER
          - EXPIRE_BOTH
          - NONE
      - $ref: '#/components/parameters/recvWindow_2'
      - $ref: '#/components/parameters/timestamp_2'
      - $ref: '#/components/parameters/signature_2'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error_2'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error_2'
      security:
      - apiKey: []
        hmacSignature: []
    get:
      operationId: getOrder
      summary: Query order
      description: Check an order's status. Either orderId or origClientOrderId must be sent.
      tags:
      - Trading
      parameters:
      - $ref: '#/components/parameters/symbolRequired_2'
      - name: orderId
        in: query
        description: The order ID to query.
        schema:
          type: integer
          format: int64
      - name: origClientOrderId
        in: query
        description: The client order ID to query.
        schema:
          type: string
      - $ref: '#/components/parameters/recvWindow_2'
      - $ref: '#/components/parameters/timestamp_2'
      - $ref: '#/components/parameters/signature_2'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error_2'
        '404':
          description: Order not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error_2'
      security:
      - apiKey: []
        hmacSignature: []
    delete:
      operationId: cancelOrder
      summary: Cancel order
      description: Cancel an active order. Either orderId or origClientOrderId must be sent.
      tags:
      - Trading
      parameters:
      - $ref: '#/components/parameters/symbolRequired_2'
      - name: orderId
        in: query
        description: The order ID to cancel.
        schema:
          type: integer
          format: int64
      - name: origClientOrderId
        in: query
        description: The client order ID to cancel.
        schema:
          type: string
      - name: newClientOrderId
        in: query
        description: Used to uniquely identify this cancel request.
        schema:
          type: string
      - name: cancelRestrictions
        in: query
        description: Supported values ONLY_NEW and ONLY_PARTIALLY_FILLED.
        schema:
          type: string
          enum:
          - ONLY_NEW
          - ONLY_PARTIALLY_FILLED
      - $ref: '#/components/parameters/recvWindow_2'
      - $ref: '#/components/parameters/timestamp_2'
      - $ref: '#/components/parameters/signature_2'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelOrderResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error_2'
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://api.binance.com
      description: Production Server
    - url: https://api1.binance.com
      description: Production Server (Backup 1)
    - url: https://api2.binance.com
      description: Production Server (Backup 2)
    - url: https://api3.binance.com
      description: Production Server (Backup 3)
    - url: https://api4.binance.com
      description: Production Server (Backup 4)
    - url: https://testnet.binance.vision
      description: Testnet Server
  /api/v3/openOrders:
    get:
      operationId: getOpenOrders
      summary: Current open orders
      description: Get all open orders on a symbol. Careful when accessing this with no symbol as the weight is very high.
      tags:
      - Trading
      parameters:
      - $ref: '#/components/parameters/symbol_2'
      - $ref: '#/components/parameters/recvWindow_2'
      - $ref: '#/components/parameters/timestamp_2'
      - $ref: '#/components/parameters/signature_2'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Order'
      security:
      - apiKey: []
        hmacSignature: []
    delete:
      operationId: cancelAllOpenOrders
      summary: Cancel all open orders on a symbol
      description: Cancels all active orders on a symbol, including OCO orders.
      tags:
      - Trading
      parameters:
      - $ref: '#/components/parameters/symbolRequired_2'
      - $ref: '#/components/parameters/recvWindow_2'
      - $ref: '#/components/parameters/timestamp_2'
      - $ref: '#/components/parameters/signature_2'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CancelOrderResponse'
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://api.binance.com
      description: Production Server
    - url: https://api1.binance.com
      description: Production Server (Backup 1)
    - url: https://api2.binance.com
      description: Production Server (Backup 2)
    - url: https://api3.binance.com
      description: Production Server (Backup 3)
    - url: https://api4.binance.com
      description: Production Server (Backup 4)
    - url: https://testnet.binance.vision
      description: Testnet Server
  /api/v3/allOrders:
    get:
      operationId: getAllOrders
      summary: All orders
      description: 'Get all account orders for a symbol: active, canceled, or filled. If orderId is set, it will get orders starting from that orderId.'
      tags:
      - Trading
      parameters:
      - $ref: '#/components/parameters/symbolRequired_2'
      - name: orderId
        in: query
        description: Order ID to start from.
        schema:
          type: integer
          format: int64
      - name: startTime
        in: query
        description: Start time in milliseconds.
        schema:
          type: integer
          format: int64
      - name: endTime
        in: query
        description: End time in milliseconds.
        schema:
          type: integer
          format: int64
      - name: limit
        in: query
        description: Number of results. Default 500, max 1000.
        schema:
          type: integer
          default: 500
          maximum: 1000
      - $ref: '#/components/parameters/recvWindow_2'
      - $ref: '#/components/parameters/timestamp_2'
      - $ref: '#/components/parameters/signature_2'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Order'
      security:
      - apiKey: []
        hmacSignature: []
    servers:
    - url: https://api.binance.com
      description: Production Server
    - url: https://api1.binance.com
      description: Production Server (Backup 1)
    - url: https://api2.binance.com
      description: Production Server (Backup 2)
    - url: https://api3.binance.com
      description: Production Server (Backup 3)
    - url: https://api4.binance.com
      description: Production Server (Backup 4)
    - url: https://testnet.binance.vision
      description: Testnet Server
  /api/v3/order/oco:
    post:
      operationId: createOcoOrder
      summary: New OCO order
      description: Send in a new OCO (One-Cancels-the-Other) order. An OCO consists of a limit order and a stop-loss or stop-loss-limit order with the same quantity and side.
      tags:
      - 

# --- truncated at 32 KB (60 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/binance/refs/heads/main/openapi/binance-trading-api-openapi.yml