spot by binance/binance-skills-hub
npx skills add https://github.com/binance/binance-skills-hub --skill spot使用经过身份验证的 API 端点对 Binance 进行现货请求。某些端点需要 API 密钥和密钥。以 JSON 格式返回结果。
| 端点 | 描述 | 必填 | 可选 | 身份验证 |
|---|---|---|---|---|
/api/v3/exchangeInfo (GET) | 交易所信息 | 无 | symbol, symbols, permissions, showPermissionSets, symbolStatus | 否 |
/api/v3/ping (GET) | 测试连接性 | 无 | 无 | 否 |
/api/v3/time (GET) | 检查服务器时间 | 无 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 无 |
| 否 |
/api/v3/aggTrades (GET) | 压缩/聚合交易列表 | symbol | fromId, startTime, endTime, limit | 否 |
/api/v3/avgPrice (GET) | 当前平均价格 | symbol | 无 | 否 |
/api/v3/depth (GET) | 订单簿 | symbol | limit, symbolStatus | 否 |
/api/v3/historicalTrades (GET) | 历史交易查询 | symbol | limit, fromId | 否 |
/api/v3/klines (GET) | K线/蜡烛图数据 | symbol, interval | startTime, endTime, timeZone, limit | 否 |
/api/v3/ticker (GET) | 滚动窗口价格变动统计 | 无 | symbol, symbols, windowSize, type, symbolStatus | 否 |
/api/v3/ticker/24hr (GET) | 24小时价格变动统计 | 无 | symbol, symbols, type, symbolStatus | 否 |
/api/v3/ticker/bookTicker (GET) | 交易对订单簿价格 | 无 | symbol, symbols, symbolStatus | 否 |
/api/v3/ticker/price (GET) | 交易对价格 | 无 | symbol, symbols, symbolStatus | 否 |
/api/v3/ticker/tradingDay (GET) | 交易日价格 | 无 | symbol, symbols, timeZone, type, symbolStatus | 否 |
/api/v3/trades (GET) | 最近交易列表 | symbol | limit | 否 |
/api/v3/uiKlines (GET) | UIKlines | symbol, interval | startTime, endTime, timeZone, limit | 否 |
/api/v3/openOrders (DELETE) | 取消交易对上的所有未成交订单 | symbol | recvWindow | 是 |
/api/v3/openOrders (GET) | 当前未成交订单 | 无 | symbol, recvWindow | 是 |
/api/v3/order (POST) | 新订单 | symbol, side, type | timeInForce, quantity, quoteOrderQty, price, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | 是 |
/api/v3/order (DELETE) | 取消订单 | symbol | orderId, origClientOrderId, newClientOrderId, cancelRestrictions, recvWindow | 是 |
/api/v3/order (GET) | 查询订单 | symbol | orderId, origClientOrderId, recvWindow | 是 |
/api/v3/order/amend/keepPriority (PUT) | 订单修改保持优先级 | symbol, newQty | orderId, origClientOrderId, newClientOrderId, recvWindow | 是 |
/api/v3/order/cancelReplace (POST) | 取消现有订单并发送新订单 | symbol, side, type, cancelReplaceMode | timeInForce, quantity, quoteOrderQty, price, cancelNewClientOrderId, cancelOrigClientOrderId, cancelOrderId, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, cancelRestrictions, orderRateLimitExceededMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | 是 |
/api/v3/order/oco (POST) | 新 OCO - 已弃用 | symbol, side, quantity, price, stopPrice | listClientOrderId, limitClientOrderId, limitStrategyId, limitStrategyType, limitIcebergQty, trailingDelta, stopClientOrderId, stopStrategyId, stopStrategyType, stopLimitPrice, stopIcebergQty, stopLimitTimeInForce, newOrderRespType, selfTradePreventionMode, recvWindow | 是 |
/api/v3/order/test (POST) | 测试新订单 | symbol, side, type | computeCommissionRates, timeInForce, quantity, quoteOrderQty, price, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | 是 |
/api/v3/orderList (DELETE) | 取消订单列表 | symbol | orderListId, listClientOrderId, newClientOrderId, recvWindow | 是 |
/api/v3/orderList (GET) | 查询订单列表 | 无 | orderListId, origClientOrderId, recvWindow | 是 |
/api/v3/orderList/oco (POST) | 新订单列表 - OCO | symbol, side, quantity, aboveType, belowType | listClientOrderId, aboveClientOrderId, aboveIcebergQty, abovePrice, aboveStopPrice, aboveTrailingDelta, aboveTimeInForce, aboveStrategyId, aboveStrategyType, abovePegPriceType, abovePegOffsetType, abovePegOffsetValue, belowClientOrderId, belowIcebergQty, belowPrice, belowStopPrice, belowTrailingDelta, belowTimeInForce, belowStrategyId, belowStrategyType, belowPegPriceType, belowPegOffsetType, belowPegOffsetValue, newOrderRespType, selfTradePreventionMode, recvWindow | 是 |
/api/v3/orderList/opo (POST) | 新订单列表 - OPO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingType, pendingSide | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingClientOrderId, pendingPrice, pendingStopPrice, pendingTrailingDelta, pendingIcebergQty, pendingTimeInForce, pendingStrategyId, pendingStrategyType, pendingPegPriceType, pendingPegOffsetType, pendingPegOffsetValue, recvWindow | 是 |
/api/v3/orderList/opoco (POST) | 新订单列表 - OPOCO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingSide, pendingAboveType | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingAboveClientOrderId, pendingAbovePrice, pendingAboveStopPrice, pendingAboveTrailingDelta, pendingAboveIcebergQty, pendingAboveTimeInForce, pendingAboveStrategyId, pendingAboveStrategyType, pendingAbovePegPriceType, pendingAbovePegOffsetType, pendingAbovePegOffsetValue, pendingBelowType, pendingBelowClientOrderId, pendingBelowPrice, pendingBelowStopPrice, pendingBelowTrailingDelta, pendingBelowIcebergQty, pendingBelowTimeInForce, pendingBelowStrategyId, pendingBelowStrategyType, pendingBelowPegPriceType, pendingBelowPegOffsetType, pendingBelowPegOffsetValue, recvWindow | 是 |
/api/v3/orderList/oto (POST) | 新订单列表 - OTO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingType, pendingSide, pendingQuantity | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingClientOrderId, pendingPrice, pendingStopPrice, pendingTrailingDelta, pendingIcebergQty, pendingTimeInForce, pendingStrategyId, pendingStrategyType, pendingPegPriceType, pendingPegOffsetType, pendingPegOffsetValue, recvWindow | 是 |
/api/v3/orderList/otoco (POST) | 新订单列表 - OTOCO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingSide, pendingQuantity, pendingAboveType | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingAboveClientOrderId, pendingAbovePrice, pendingAboveStopPrice, pendingAboveTrailingDelta, pendingAboveIcebergQty, pendingAboveTimeInForce, pendingAboveStrategyId, pendingAboveStrategyType, pendingAbovePegPriceType, pendingAbovePegOffsetType, pendingAbovePegOffsetValue, pendingBelowType, pendingBelowClientOrderId, pendingBelowPrice, pendingBelowStopPrice, pendingBelowTrailingDelta, pendingBelowIcebergQty, pendingBelowTimeInForce, pendingBelowStrategyId, pendingBelowStrategyType, pendingBelowPegPriceType, pendingBelowPegOffsetType, pendingBelowPegOffsetValue, recvWindow | 是 |
/api/v3/sor/order (POST) | 使用 SOR 的新订单 | symbol, side, type, quantity | timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow | 是 |
/api/v3/sor/order/test (POST) | 使用 SOR 测试新订单 | symbol, side, type, quantity | computeCommissionRates, timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow | 是 |
/api/v3/account (GET) | 账户信息 | 无 | omitZeroBalances, recvWindow | 是 |
/api/v3/account/commission (GET) | 查询佣金费率 | symbol | 无 | 是 |
/api/v3/allOrderList (GET) | 查询所有订单列表 | 无 | fromId, startTime, endTime, limit, recvWindow | 是 |
/api/v3/allOrders (GET) | 所有订单 | symbol | orderId, startTime, endTime, limit, recvWindow | 是 |
/api/v3/myAllocations (GET) | 查询分配 | symbol | startTime, endTime, fromAllocationId, limit, orderId, recvWindow | 是 |
/api/v3/myFilters (GET) | 查询相关过滤器 | symbol | recvWindow | 是 |
/api/v3/myPreventedMatches (GET) | 查询被阻止的匹配 | symbol | preventedMatchId, orderId, fromPreventedMatchId, limit, recvWindow | 是 |
/api/v3/myTrades (GET) | 账户交易列表 | symbol | orderId, startTime, endTime, fromId, limit, recvWindow | 是 |
/api/v3/openOrderList (GET) | 查询未成交订单列表 | 无 | recvWindow | 是 |
/api/v3/order/amendments (GET) | 查询订单修改 | symbol, orderId | fromExecutionId, limit, recvWindow | 是 |
/api/v3/rateLimit/order (GET) | 查询未成交订单数量 | 无 | recvWindow | 是 |
permissionSets 字段的内容。默认为 true(例如,true)60000。支持最多三位小数的精度(例如,6000.346),以便可以指定微秒。 (例如,5000)newClientOrderID 的订单才能被接受,否则订单将被拒绝。1000000。 (例如,1)STOP_LOSS、STOP_LOSS_LIMIT、TAKE_PROFIT 和 TAKE_PROFIT_LIMIT 订单一起使用。 (例如,1)LIMIT、STOP_LOSS_LIMIT 和 TAKE_PROFIT_LIMIT 一起使用以创建冰山订单。 (例如,1)newQty 必须大于 0 且小于订单数量。 (例如,1)cancelOrderId 或 cancelOrigClientOrderId 中的一个。如果同时提供了 cancelOrderId 和 cancelOrigClientOrderId 参数,则首先搜索 cancelOrderId,然后检查该结果中的 cancelOrigClientOrderId 是否与该订单匹配。如果两个条件都不满足,请求将被拒绝。cancelOrderId 或 cancelOrigClientOrderId 中的一个。如果同时提供了 cancelOrderId 和 cancelOrigClientOrderId 参数,则首先搜索 cancelOrderId,然后检查该结果中的 cancelOrigClientOrderId 是否与该订单匹配。如果两个条件都不满足,请求将被拒绝。 (例如,1)1000000。 (例如,1)LIMIT_MAKER 订单成为冰山订单。 (例如,1)1000000。 (例如,1)stopLimitTimeInForce。 (例如,1)STOP_LOSS_LIMIT 订单一起使用以创建冰山订单。 (例如,1)false 参见佣金常见问题以了解更多信息。orderListId 或 listClientOrderId 中的一个(例如,1)aboveTimeInForce 为 GTC 时使用。 (例如,1)aboveType 是 STOP_LOSS_LIMIT、LIMIT_MAKER 或 TAKE_PROFIT_LIMIT,可用于指定限价。 (例如,1)aboveType 是 STOP_LOSS、STOP_LOSS_LIMIT、TAKE_PROFIT、TAKE_PROFIT_LIMIT,可以使用。必须指定 aboveStopPrice 或 aboveTrailingDelta 或两者。 (例如,1)belowTimeInForce 为 GTC 时使用。 (例如,1)belowType 是 STOP_LOSS_LIMIT、LIMIT_MAKER 或 TAKE_PROFIT_LIMIT,可用于指定限价。 (例如,1)belowType 是 STOP_LOSS、STOP_LOSS_LIMIT, TAKE_PROFIT 或 TAKE_PROFIT_LIMIT 可以使用。必须指定 belowStopPrice 或 belowTrailingDelta 或两者。 (例如,1)workingTimeInForce 为 GTC,或者 workingType 为 LIMIT_MAKER 时使用。 (例如,1)pendingTimeInForce 为 GTC 或者 pendingType 为 LIMIT_MAKER 时使用。 (例如,1)pendingAboveType 是 STOP_LOSS_LIMIT、LIMIT_MAKER 或 TAKE_PROFIT_LIMIT,可用于指定限价。 (例如,1)pendingAboveType 是 STOP_LOSS、STOP_LOSS_LIMIT、TAKE_PROFIT、TAKE_PROFIT_LIMIT 可以使用(例如,1)pendingAboveTimeInForce 为 GTC 或者 pendingAboveType 为 LIMIT_MAKER 时使用。 (例如,1)pendingBelowType 是 STOP_LOSS_LIMIT 或 TAKE_PROFIT_LIMIT,可用于指定限价(例如,1)pendingBelowType 是 STOP_LOSS、STOP_LOSS_LIMIT, TAKE_PROFIT 或 TAKE_PROFIT_LIMIT 可以使用。必须指定 pendingBelowStopPrice 或 pendingBelowTrailingDelta 或两者。 (例如,1)pendingBelowTimeInForce 为 GTC,或者 pendingBelowType 为 LIMIT_MAKER 时使用。 (例如,1)true 时,仅显示账户的非零余额。默认值:false对于需要身份验证的端点,您需要提供 Binance API 凭证。所需凭证:
基础 URL:
用户可以通过发送文件来提供 Binance API 凭证,文件内容格式如下:
abc123...xyz
secret123...key
向用户显示凭证时:
su1Qc...8akf***...aws1当被问及凭证时的示例响应:账户:主网 API 密钥:su1Qc...8akf 密钥:***...aws1 环境:主网
列出账户时,仅显示名称和环境——切勿显示密钥:Binance 账户:
在主网执行交易时,始终在继续之前通过要求用户输入 "CONFIRM" 来与用户确认。
## Binance 账户
### main
- API 密钥:abc123...xyz
- 密钥:secret123...key
- 测试网:false
- 描述:主要交易账户
### testnet-dev
- API 密钥:test456...abc
- 密钥:testsecret...xyz
- 测试网:true
- 描述:开发/测试
### futures-keys
- API 密钥:futures789...def
- 密钥:futuressecret...uvw
- 测试网:false
- 描述:期货交易账户
当用户提供新凭证时:
TOOLS.md 中,并显示掩码后的确认信息所有交易端点都需要 HMAC SHA256 签名:
X-MBX-APIKEY 请求头包含 User-Agent 请求头,其字符串如下:binance-spot/1.0.1 (Skill)
有关实现细节,请参见 references/authentication.md。
每周安装次数
504
代码仓库
GitHub 星标数
366
首次出现
7 天前
安全审计
安装于
codex487
opencode486
cursor485
gemini-cli485
github-copilot485
amp484
Spot request on Binance using authenticated API endpoints. Requires API key and secret key for certain endpoints. Return the result in JSON format.
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
/api/v3/exchangeInfo (GET) | Exchange information | None | symbol, symbols, permissions, showPermissionSets, symbolStatus | No |
/api/v3/ping (GET) | Test connectivity | None | None | No |
/api/v3/time (GET) | Check server time | None | None | No |
/api/v3/aggTrades (GET) | Compressed/Aggregate trades list | symbol | fromId, startTime, endTime, limit | No |
/api/v3/avgPrice (GET) | Current average price | symbol | None | No |
/api/v3/depth (GET) | Order book | symbol | limit, symbolStatus | No |
/api/v3/historicalTrades (GET) | Old trade lookup | symbol | limit, fromId | No |
/api/v3/klines (GET) | Kline/Candlestick data | symbol, interval | startTime, endTime, timeZone, limit | No |
/api/v3/ticker (GET) | Rolling window price change statistics | None | symbol, symbols, windowSize, type, symbolStatus | No |
/api/v3/ticker/24hr (GET) | 24hr ticker price change statistics | None | symbol, symbols, type, symbolStatus | No |
/api/v3/ticker/bookTicker (GET) | Symbol order book ticker | None | symbol, symbols, symbolStatus | No |
/api/v3/ticker/price (GET) | Symbol price ticker | None | symbol, symbols, symbolStatus | No |
/api/v3/ticker/tradingDay (GET) | Trading Day Ticker | None | symbol, symbols, timeZone, type, symbolStatus | No |
/api/v3/trades (GET) | Recent trades list | symbol | limit | No |
/api/v3/uiKlines (GET) | UIKlines | symbol, interval | startTime, endTime, timeZone, limit | No |
/api/v3/openOrders (DELETE) | Cancel All Open Orders on a Symbol | symbol | recvWindow | Yes |
/api/v3/openOrders (GET) | Current open orders | None | symbol, recvWindow | Yes |
/api/v3/order (POST) | New order | symbol, side, type | timeInForce, quantity, quoteOrderQty, price, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | Yes |
/api/v3/order (DELETE) | Cancel order | symbol | orderId, origClientOrderId, newClientOrderId, cancelRestrictions, recvWindow | Yes |
/api/v3/order (GET) | Query order | symbol | orderId, origClientOrderId, recvWindow | Yes |
/api/v3/order/amend/keepPriority (PUT) | Order Amend Keep Priority | symbol, newQty | orderId, origClientOrderId, newClientOrderId, recvWindow | Yes |
/api/v3/order/cancelReplace (POST) | Cancel an Existing Order and Send a New Order | symbol, side, type, cancelReplaceMode | timeInForce, quantity, quoteOrderQty, price, cancelNewClientOrderId, cancelOrigClientOrderId, cancelOrderId, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, cancelRestrictions, orderRateLimitExceededMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | Yes |
/api/v3/order/oco (POST) | New OCO - Deprecated | symbol, side, quantity, price, stopPrice | listClientOrderId, limitClientOrderId, limitStrategyId, limitStrategyType, limitIcebergQty, trailingDelta, stopClientOrderId, stopStrategyId, stopStrategyType, stopLimitPrice, stopIcebergQty, stopLimitTimeInForce, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |
/api/v3/order/test (POST) | Test new order | symbol, side, type | computeCommissionRates, timeInForce, quantity, quoteOrderQty, price, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | Yes |
/api/v3/orderList (DELETE) | Cancel Order list | symbol | orderListId, listClientOrderId, newClientOrderId, recvWindow | Yes |
/api/v3/orderList (GET) | Query Order list | None | orderListId, origClientOrderId, recvWindow | Yes |
/api/v3/orderList/oco (POST) | New Order list - OCO | symbol, side, quantity, aboveType, belowType | listClientOrderId, aboveClientOrderId, aboveIcebergQty, abovePrice, aboveStopPrice, aboveTrailingDelta, aboveTimeInForce, aboveStrategyId, aboveStrategyType, abovePegPriceType, abovePegOffsetType, abovePegOffsetValue, belowClientOrderId, belowIcebergQty, belowPrice, belowStopPrice, belowTrailingDelta, belowTimeInForce, belowStrategyId, belowStrategyType, belowPegPriceType, belowPegOffsetType, belowPegOffsetValue, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |
/api/v3/orderList/opo (POST) | New Order List - OPO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingType, pendingSide | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingClientOrderId, pendingPrice, pendingStopPrice, pendingTrailingDelta, pendingIcebergQty, pendingTimeInForce, pendingStrategyId, pendingStrategyType, pendingPegPriceType, pendingPegOffsetType, pendingPegOffsetValue, recvWindow | Yes |
/api/v3/orderList/opoco (POST) | New Order List - OPOCO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingSide, pendingAboveType | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingAboveClientOrderId, pendingAbovePrice, pendingAboveStopPrice, pendingAboveTrailingDelta, pendingAboveIcebergQty, pendingAboveTimeInForce, pendingAboveStrategyId, pendingAboveStrategyType, pendingAbovePegPriceType, pendingAbovePegOffsetType, pendingAbovePegOffsetValue, pendingBelowType, pendingBelowClientOrderId, pendingBelowPrice, pendingBelowStopPrice, pendingBelowTrailingDelta, pendingBelowIcebergQty, pendingBelowTimeInForce, pendingBelowStrategyId, pendingBelowStrategyType, pendingBelowPegPriceType, pendingBelowPegOffsetType, pendingBelowPegOffsetValue, recvWindow | Yes |
/api/v3/orderList/oto (POST) | New Order list - OTO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingType, pendingSide, pendingQuantity | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingClientOrderId, pendingPrice, pendingStopPrice, pendingTrailingDelta, pendingIcebergQty, pendingTimeInForce, pendingStrategyId, pendingStrategyType, pendingPegPriceType, pendingPegOffsetType, pendingPegOffsetValue, recvWindow | Yes |
/api/v3/orderList/otoco (POST) | New Order list - OTOCO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingSide, pendingQuantity, pendingAboveType | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingAboveClientOrderId, pendingAbovePrice, pendingAboveStopPrice, pendingAboveTrailingDelta, pendingAboveIcebergQty, pendingAboveTimeInForce, pendingAboveStrategyId, pendingAboveStrategyType, pendingAbovePegPriceType, pendingAbovePegOffsetType, pendingAbovePegOffsetValue, pendingBelowType, pendingBelowClientOrderId, pendingBelowPrice, pendingBelowStopPrice, pendingBelowTrailingDelta, pendingBelowIcebergQty, pendingBelowTimeInForce, pendingBelowStrategyId, pendingBelowStrategyType, pendingBelowPegPriceType, pendingBelowPegOffsetType, pendingBelowPegOffsetValue, recvWindow | Yes |
/api/v3/sor/order (POST) | New order using SOR | symbol, side, type, quantity | timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |
/api/v3/sor/order/test (POST) | Test new order using SOR | symbol, side, type, quantity | computeCommissionRates, timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |
/api/v3/account (GET) | Account information | None | omitZeroBalances, recvWindow | Yes |
/api/v3/account/commission (GET) | Query Commission Rates | symbol | None | Yes |
/api/v3/allOrderList (GET) | Query all Order lists | None | fromId, startTime, endTime, limit, recvWindow | Yes |
/api/v3/allOrders (GET) | All orders | symbol | orderId, startTime, endTime, limit, recvWindow | Yes |
/api/v3/myAllocations (GET) | Query Allocations | symbol | startTime, endTime, fromAllocationId, limit, orderId, recvWindow | Yes |
/api/v3/myFilters (GET) | Query relevant filters | symbol | recvWindow | Yes |
/api/v3/myPreventedMatches (GET) | Query Prevented Matches | symbol | preventedMatchId, orderId, fromPreventedMatchId, limit, recvWindow | Yes |
/api/v3/myTrades (GET) | Account trade list | symbol | orderId, startTime, endTime, fromId, limit, recvWindow | Yes |
/api/v3/openOrderList (GET) | Query Open Order lists | None | recvWindow | Yes |
/api/v3/order/amendments (GET) | Query Order Amendments | symbol, orderId | fromExecutionId, limit, recvWindow | Yes |
/api/v3/rateLimit/order (GET) | Query Unfilled Order Count | None | recvWindow | Yes |
permissionSets field is populated or not. Defaults to true (e.g., true)60000. Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified. (e.g., 5000)For endpoints that require authentication, you will need to provide Binance API credentials. Required credentials:
Base URLs:
Users can provide Binance API credentials by sending a file where the content is in the following format:
abc123...xyz
secret123...key
When showing credentials to users:
su1Qc...8akf***...aws1Example response when asked for credentials: Account: main API Key: su1Qc...8akf Secret: ***...aws1 Environment: Mainnet
When listing accounts, show names and environment only — never keys: Binance Accounts:
When performing transactions in mainnet, always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.
## Binance Accounts
### main
- API Key: abc123...xyz
- Secret: secret123...key
- Testnet: false
- Description: Primary trading account
### testnet-dev
- API Key: test456...abc
- Secret: testsecret...xyz
- Testnet: true
- Description: Development/testing
### futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Testnet: false
- Description: Futures trading account
When user provides new credentials:
TOOLS.md with masked display confirmationAll trading endpoints require HMAC SHA256 signature:
X-MBX-APIKEY headerInclude User-Agent header with the following string: binance-spot/1.0.1 (Skill)
See references/authentication.md for implementation details.
Weekly Installs
504
Repository
GitHub Stars
366
First Seen
7 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
codex487
opencode486
cursor485
gemini-cli485
github-copilot485
amp484
97,600 周安装
newClientOrderID can be accepted only when the previous one is filled, otherwise the order will be rejected.1000000. (e.g., 1)STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders. (e.g., 1)LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order. (e.g., 1)newQty must be greater than 0 and less than the order's quantity. (e.g., 1)cancelOrderId or cancelOrigClientOrderId must be sent. If both cancelOrderId and cancelOrigClientOrderId parameters are provided, the cancelOrderId is searched first, then the cancelOrigClientOrderId from that result is checked against that order. If both conditions are not met the request will be rejected.cancelOrderId or cancelOrigClientOrderId must be sent. If both cancelOrderId and cancelOrigClientOrderId parameters are provided, the cancelOrderId is searched first, then the cancelOrigClientOrderId from that result is checked against that order. If both conditions are not met the request will be rejected. (e.g., 1)1000000. (e.g., 1)LIMIT_MAKER leg an iceberg order. (e.g., 1)1000000. (e.g., 1)stopLimitTimeInForce is required. (e.g., 1)STOP_LOSS_LIMIT leg to make an iceberg order. (e.g., 1)false See Commissions FAQ to learn more.orderListId or listClientOrderId must be provided (e.g., 1)aboveTimeInForce is GTC. (e.g., 1)aboveType is STOP_LOSS_LIMIT , LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price. (e.g., 1)aboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT. Either aboveStopPrice or aboveTrailingDelta or both, must be specified. (e.g., 1)belowTimeInForce is GTC. (e.g., 1)belowType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price. (e.g., 1)belowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT or TAKE_PROFIT_LIMIT Either belowStopPrice or belowTrailingDelta or both, must be specified. (e.g., 1)workingTimeInForce is GTC, or if workingType is LIMIT_MAKER. (e.g., 1)pendingTimeInForce is GTC or if pendingType is LIMIT_MAKER. (e.g., 1)pendingAboveType is STOP_LOSS_LIMIT , LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price. (e.g., 1)pendingAboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT (e.g., 1)pendingAboveTimeInForce is GTC or if pendingAboveType is LIMIT_MAKER. (e.g., 1)pendingBelowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT to specify limit price (e.g., 1)pendingBelowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT or TAKE_PROFIT_LIMIT. Either pendingBelowStopPrice or pendingBelowTrailingDelta or both, must be specified. (e.g., 1)pendingBelowTimeInForce is GTC, or if pendingBelowType is LIMIT_MAKER. (e.g., 1)true, emits only the non-zero balances of an account. Default value: false