Binance Trading API

Trading endpoints for COIN-M futures orders.

GitHub OpenAPI
Business capability
Trading Order Management BC-1370.30

Operations 29

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /dapi/v1/order Place a COIN-M futures order · New order #
Ask an LLM
“How do I open a long or short futures position on COIN-M?”
“Can I set a stop price on a futures order?”
Tell an agent
Place a {type} futures order on {symbol} at {price} for {quantity} {side}.
Open a COIN-M futures {side} position on {symbol} with a stop price of {stopPrice}.
GET /dapi/v1/order Check a COIN-M futures order · Query order #
Ask an LLM
“Is my COIN-M futures order filled yet?”
“Can I look up a futures order by its client order ID?”
Tell an agent
Check the status of COIN-M futures order {orderId} on {symbol}.
Look up futures order {symbol} by client order ID {origClientOrderId}.
DELETE /dapi/v1/order Cancel a COIN-M futures order · Cancel order #
Ask an LLM
“Can I cancel a futures order that hasn't filled?”
“What happens to a COIN-M order I cancel?”
Tell an agent destructive · confirm first
Cancel COIN-M futures order {orderId} on {symbol}.
Cancel futures order {symbol} by client order ID {origClientOrderId}.
GET /dapi/v1/openOrders List open COIN-M futures orders · Current all open orders #
Ask an LLM
“Which futures positions am I still open on?”
“Can I see all my open COIN-M orders at once?”
Tell an agent
Show my open COIN-M futures orders on {symbol}.
List every active futures position I hold.
POST /eapi/v1/order Place an options order · New order #
Ask an LLM
“How do I buy or sell an option contract?”
“Can I place an options order that only fills at a specific price?”
Tell an agent
Place an options {type} {side} order on {symbol} at {price} for {quantity}.
Buy {quantity} options contracts on {symbol} at {price} with a {timeInForce} time in force.
GET /eapi/v1/order Check an options order · Query single order #
Ask an LLM
“Has my options order been filled?”
“Can I look up an options order by its client order ID?”
Tell an agent
Check the status of options order {orderId} on {symbol}.
Look up options order {symbol} by client order ID {clientOrderId}.
DELETE /eapi/v1/order Cancel an options order · Cancel order #
Ask an LLM
“Can I cancel an options order before it fills?”
“What happens to an option I cancel?”
Tell an agent destructive · confirm first
Cancel options order {orderId} on {symbol}.
Cancel options order {symbol} by client order ID {clientOrderId}.
GET /eapi/v1/openOrders List open options orders · Query current open orders #
Ask an LLM
“Which options positions am I still open on?”
“Can I see all my open option contracts?”
Tell an agent
Show my open options orders on {symbol}.
List every active option contract I hold.
POST /sapi/v1/margin/order Place a margin account order · Margin account new order #
Ask an LLM
“How do I open a leveraged position on margin?”
“Can I set a stop price on a margin order?”
Tell an agent
Place a {type} margin {side} order on {symbol} at {price} for {quantity}.
Open a margin {side} position on {symbol} with a stop price of {stopPrice}.
GET /sapi/v1/margin/order Check a margin account order · Query margin account order #
Ask an LLM
“Is my margin order filled?”
“Can I look up a margin order by its client order ID?”
Tell an agent
Check the status of margin order {orderId} on {symbol}.
Look up margin order {symbol} by client order ID {origClientOrderId}.
DELETE /sapi/v1/margin/order Cancel a margin account order · Cancel margin account order #
Ask an LLM
“Can I cancel a margin order that hasn't filled?”
“What happens to a margin position I cancel?”
Tell an agent destructive · confirm first
Cancel margin order {orderId} on {symbol}.
Cancel margin order {symbol} by client order ID {origClientOrderId}.
GET /sapi/v1/margin/openOrders List open margin orders · Query margin account open orders #
Ask an LLM
“Which margin positions am I still open on?”
“Can I see all my open margin orders at once?”
Tell an agent
Show my open margin orders on {symbol}.
List every active margin position I hold.
POST /papi/v1/um/order Place a USDT-M futures order via portfolio margin · New UM order #
Ask an LLM
“How do I buy or sell USDT-M futures through a portfolio margin account?”
“Can I place a limit order with a time in force on a USDT-M futures contract through portfolio margin?”
Tell an agent
Place a {type} portfolio margin USDT-M order to {side} {quantity} of {symbol}.
Open a USDT-M {side} limit order on {symbol} at {price} with time in force {timeInForce} via portfolio margin.
POST /papi/v1/cm/order Place a COIN-margined futures order via portfolio margin · New CM order #
Ask an LLM
“What's the way to trade COIN-margined futures with portfolio margin?”
“How do I send a market order on a coin-margined futures contract?”
Tell an agent
Place a {type} order to {side} {quantity} of {symbol} on COIN-margined futures.
Open a {type} COIN-margined trade on {symbol} at {price} as a portfolio margin account user.
POST /papi/v1/margin/order Place a margin order via portfolio margin · New margin order #
Ask an LLM
“How do I open a margin trade using a portfolio margin account?”
“Can I place a limit margin order with a chosen time in force through portfolio margin?”
Tell an agent
Place a {type} portfolio margin order to {side} {quantity} of {symbol} on margin.
Send a portfolio margin margin order on {symbol} at {price} with time in force {timeInForce}.
POST /api/v3/order Place a spot order · New order #
Ask an LLM
“How do I buy or sell a coin on spot?”
“Can I set a stop price on a spot order?”
Tell an agent
Place a {type} spot {side} order on {symbol} at {price} for {quantity}.
Buy {quantity} {symbol} at {price} with a {timeInForce} time in force.
GET /api/v3/order Check a spot order · Query order #
Ask an LLM
“Is my spot order filled?”
“Can I look up a spot order by its client order ID?”
Tell an agent
Check the status of spot order {orderId} on {symbol}.
Look up spot order {symbol} by client order ID {origClientOrderId}.
DELETE /api/v3/order Cancel a spot order · Cancel order #
Ask an LLM
“Can I cancel a spot order that hasn't filled?”
“What happens to a spot position I cancel?”
Tell an agent destructive · confirm first
Cancel spot order {orderId} on {symbol}.
Cancel spot order {symbol} by client order ID {origClientOrderId}.
GET /api/v3/openOrders List open spot orders · Current open orders #
Ask an LLM
“Which spot positions am I still open on?”
“Can I see all my open spot orders at once?”
Tell an agent
Show my open spot orders on {symbol}.
List every active spot position I hold.
DELETE /api/v3/openOrders Cancel all spot orders on a symbol · Cancel all open orders on a symbol #
Ask an LLM
“Can I cancel every open spot order on a coin at once?”
“What happens to my OCO orders when I cancel all open orders?”
Tell an agent destructive · confirm first
Cancel all open spot orders on {symbol}.
Clear every active position on {symbol} in one request.
GET /api/v3/allOrders List all account orders for a symbol · All orders #
Ask an LLM
“What orders has my account placed on a spot symbol?”
“Can I list only the filled or canceled orders for a symbol?”
Tell an agent
List all orders for {symbol}.
Show {limit} orders for {symbol} starting from {orderId}.
POST /api/v3/order/oco Place an OCO (One-Cancels-the-Other) order · New OCO order #
Ask an LLM
“How do I place a limit order that cancels a stop-loss order?”
“Can an OCO order be set up with a stop-loss-limit order?”
Tell an agent
Place an OCO order on {symbol} with {quantity} at {price} and stop at {stopPrice}.
Create an OCO on {symbol} with {quantity} at {price}, stop at {stopPrice}, limit at {stopLimitPrice}.
POST /api/v3/order/test Test a new order without sending it · Test new order #
Ask an LLM
“Can I check that a new order's signature and parameters are valid before placing it?”
“What does a test order return if the order type is not supported?”
Tell an agent
Test a {type} order on {symbol} for {quantity} at {price}.
Validate a {type} order on {symbol} with {quantity} and {price} using test mode.
POST /api/v3/sor/order Place an order using Smart Order Routing · New order using SOR #
Ask an LLM
“Can I route an order across multiple liquidity sources for better execution?”
“Does SOR work for market and stop orders as well as limit orders?”
Tell an agent
Place a {type} order on {symbol} for {quantity} using SOR.
Route {quantity} of {symbol} at {price} through Smart Order Routing.
POST /fapi/v1/order Place a futures order · New order #
Ask an LLM
“How do I place a market order on a futures contract?”
“Can I reduce-only or close all positions with a single futures order?”
Tell an agent
Place a {type} order on {symbol} to {side} {quantity}.
Open a {type} futures position on {symbol} at {price} with time in force {timeInForce}.
GET /fapi/v1/order Check a futures order's status · Query order #
Ask an LLM
“Has my futures order been filled?”
“Can I find a futures order by its client order ID?”
Tell an agent
Check the status of futures order {orderId} on {symbol}.
Find my futures order on {symbol} with client ID {origClientOrderId}.
DELETE /fapi/v1/order Cancel an active futures order · Cancel order #
Ask an LLM
“How do I cancel a futures order that is still open?”
“Can I cancel a futures order by its client order ID?”
Tell an agent destructive · confirm first
Cancel futures order {orderId} on {symbol}.
Cancel the open futures order {origClientOrderId} on {symbol}.
POST /fapi/v1/batchOrders Place multiple futures orders at once · Place multiple orders #
Ask an LLM
“Can I submit several futures orders in one request?”
“What is the maximum number of orders I can send in a batch?”
Tell an agent
Place the batch of futures orders {batchOrders}.
Submit these futures orders together: {batchOrders}.
GET /fapi/v1/openOrders List all open futures orders · Current all open orders #
Ask an LLM
“Which futures orders are still open on my account?”
“Can I see open futures orders for just one symbol?”
Tell an agent
List all open futures orders.
Show my open futures orders on {symbol}.

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

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:binance-trading-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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:


# --- truncated at 32 KB (61 KB total) ---
# Full source: https://artifacts.apis.io/binance/openapi/binance-trading-api-openapi.yml