spot
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBinance Spot Skill
Binance 现货 Skill
Spot request on Binance using authenticated API endpoints. Requires API key and secret key for certain endpoints. Return the result in JSON format.
使用经过身份验证的API端点发起Binance现货请求,部分端点需要提供API key和secret key,返回JSON格式的结果。
Quick Reference
快速参考
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Exchange information | None | symbol, symbols, permissions, showPermissionSets, symbolStatus | No |
| Test connectivity | None | None | No |
| Check server time | None | None | No |
| Compressed/Aggregate trades list | symbol | fromId, startTime, endTime, limit | No |
| Current average price | symbol | None | No |
| Order book | symbol | limit, symbolStatus | No |
| Old trade lookup | symbol | limit, fromId | No |
| Kline/Candlestick data | symbol, interval | startTime, endTime, timeZone, limit | No |
| Rolling window price change statistics | None | symbol, symbols, windowSize, type, symbolStatus | No |
| 24hr ticker price change statistics | None | symbol, symbols, type, symbolStatus | No |
| Symbol order book ticker | None | symbol, symbols, symbolStatus | No |
| Symbol price ticker | None | symbol, symbols, symbolStatus | No |
| Trading Day Ticker | None | symbol, symbols, timeZone, type, symbolStatus | No |
| Recent trades list | symbol | limit | No |
| UIKlines | symbol, interval | startTime, endTime, timeZone, limit | No |
| Cancel All Open Orders on a Symbol | symbol | recvWindow | Yes |
| Current open orders | None | symbol, recvWindow | Yes |
| New order | symbol, side, type | timeInForce, quantity, quoteOrderQty, price, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | Yes |
| Cancel order | symbol | orderId, origClientOrderId, newClientOrderId, cancelRestrictions, recvWindow | Yes |
| Query order | symbol | orderId, origClientOrderId, recvWindow | Yes |
| Order Amend Keep Priority | symbol, newQty | orderId, origClientOrderId, newClientOrderId, recvWindow | Yes |
| 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 |
| New OCO - Deprecated | symbol, side, quantity, price, stopPrice | listClientOrderId, limitClientOrderId, limitStrategyId, limitStrategyType, limitIcebergQty, trailingDelta, stopClientOrderId, stopStrategyId, stopStrategyType, stopLimitPrice, stopIcebergQty, stopLimitTimeInForce, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |
| Test new order | symbol, side, type | computeCommissionRates, timeInForce, quantity, quoteOrderQty, price, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | Yes |
| Cancel Order list | symbol | orderListId, listClientOrderId, newClientOrderId, recvWindow | Yes |
| Query Order list | None | orderListId, origClientOrderId, recvWindow | Yes |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| New order using SOR | symbol, side, type, quantity | timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |
| Test new order using SOR | symbol, side, type, quantity | computeCommissionRates, timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |
| Account information | None | omitZeroBalances, recvWindow | Yes |
| Query Commission Rates | symbol | None | Yes |
| Query all Order lists | None | fromId, startTime, endTime, limit, recvWindow | Yes |
| All orders | symbol | orderId, startTime, endTime, limit, recvWindow | Yes |
| Query Allocations | symbol | startTime, endTime, fromAllocationId, limit, orderId, recvWindow | Yes |
| Query relevant filters | symbol | recvWindow | Yes |
| Query Prevented Matches | symbol | preventedMatchId, orderId, fromPreventedMatchId, limit, recvWindow | Yes |
| Account trade list | symbol | orderId, startTime, endTime, fromId, limit, recvWindow | Yes |
| Query Open Order lists | None | recvWindow | Yes |
| Query Order Amendments | symbol, orderId | fromExecutionId, limit, recvWindow | Yes |
| Query Unfilled Order Count | None | recvWindow | Yes |
| Endpoint | 描述 | 必填参数 | 可选参数 | 是否需要身份验证 |
|---|---|---|---|---|
| 交易所信息 | 无 | symbol, symbols, permissions, showPermissionSets, symbolStatus | 否 |
| 测试连通性 | 无 | 无 | 否 |
| 检查服务器时间 | 无 | 无 | 否 |
| 压缩/聚合交易列表 | symbol | fromId, startTime, endTime, limit | 否 |
| 当前平均价格 | symbol | 无 | 否 |
| 订单簿 | symbol | limit, symbolStatus | 否 |
| 历史交易查询 | symbol | limit, fromId | 否 |
| K线/烛台数据 | symbol, interval | startTime, endTime, timeZone, limit | 否 |
| 滚动窗口价格变动统计 | 无 | symbol, symbols, windowSize, type, symbolStatus | 否 |
| 24小时行情价格变动统计 | 无 | symbol, symbols, type, symbolStatus | 否 |
| 交易对订单簿行情 | 无 | symbol, symbols, symbolStatus | 否 |
| 交易对价格行情 | 无 | symbol, symbols, symbolStatus | 否 |
| 交易日行情 | 无 | symbol, symbols, timeZone, type, symbolStatus | 否 |
| 最近交易列表 | symbol | limit | 否 |
| UI用K线 | symbol, interval | startTime, endTime, timeZone, limit | 否 |
| 取消某个交易对的所有未成交订单 | symbol | recvWindow | 是 |
| 当前未成交订单 | 无 | symbol, recvWindow | 是 |
| 新建订单 | symbol, side, type | timeInForce, quantity, quoteOrderQty, price, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | 是 |
| 取消订单 | symbol | orderId, origClientOrderId, newClientOrderId, cancelRestrictions, recvWindow | 是 |
| 查询订单 | symbol | orderId, origClientOrderId, recvWindow | 是 |
| 修改订单并保留优先级 | symbol, newQty | orderId, origClientOrderId, newClientOrderId, recvWindow | 是 |
| 取消现有订单并发送新订单 | 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 | 是 |
| 新建OCO订单 - 已弃用 | symbol, side, quantity, price, stopPrice | listClientOrderId, limitClientOrderId, limitStrategyId, limitStrategyType, limitIcebergQty, trailingDelta, stopClientOrderId, stopStrategyId, stopStrategyType, stopLimitPrice, stopIcebergQty, stopLimitTimeInForce, newOrderRespType, selfTradePreventionMode, recvWindow | 是 |
| 测试新建订单 | symbol, side, type | computeCommissionRates, timeInForce, quantity, quoteOrderQty, price, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | 是 |
| 取消订单组 | symbol | orderListId, listClientOrderId, newClientOrderId, recvWindow | 是 |
| 查询订单组 | 无 | orderListId, origClientOrderId, recvWindow | 是 |
| 新建订单组 - 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 | 是 |
| 新建订单组 - 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 | 是 |
| 新建订单组 - 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 | 是 |
| 新建订单组 - 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 | 是 |
| 新建订单组 - 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 | 是 |
| 使用SOR新建订单 | symbol, side, type, quantity | timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow | 是 |
| 使用SOR测试新建订单 | symbol, side, type, quantity | computeCommissionRates, timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow | 是 |
| 账户信息 | 无 | omitZeroBalances, recvWindow | 是 |
| 查询佣金费率 | symbol | 无 | 是 |
| 查询所有订单组 | 无 | fromId, startTime, endTime, limit, recvWindow | 是 |
| 所有订单 | symbol | orderId, startTime, endTime, limit, recvWindow | 是 |
| 查询分配记录 | symbol | startTime, endTime, fromAllocationId, limit, orderId, recvWindow | 是 |
| 查询相关过滤器 | symbol | recvWindow | 是 |
| 查询被阻止的成交记录 | symbol | preventedMatchId, orderId, fromPreventedMatchId, limit, recvWindow | 是 |
| 账户交易列表 | symbol | orderId, startTime, endTime, fromId, limit, recvWindow | 是 |
| 查询未成交订单组 | 无 | recvWindow | 是 |
| 查询订单修改记录 | symbol, orderId | fromExecutionId, limit, recvWindow | 是 |
| 查询未成交订单数量 | 无 | recvWindow | 是 |
Parameters
参数说明
Common Parameters
公共参数
- symbol: Symbol to query (e.g., BNBUSDT)
- symbols: List of symbols to query
- permissions: List of permissions to query
- showPermissionSets: Controls whether the content of the field is populated or not. Defaults to
permissionSets(e.g., true)true - symbol: (e.g., BNBUSDT)
- fromId: ID to get aggregate trades from INCLUSIVE. (e.g., 1)
- startTime: Timestamp in ms to get aggregate trades from INCLUSIVE. (e.g., 1735693200000)
- endTime: Timestamp in ms to get aggregate trades until INCLUSIVE. (e.g., 1735693200000)
- limit: Default: 500; Maximum: 1000. (e.g., 500)
- timeZone: Default: 0 (UTC)
- recvWindow: The value cannot be greater than . Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified. (e.g., 5000)
60000 - timestamp: (e.g., 1)
- quantity: (e.g., 1)
- quoteOrderQty: (e.g., 1)
- price: (e.g., 400)
- newClientOrderId: A unique id among open orders. Automatically generated if not sent. Orders with the same can be accepted only when the previous one is filled, otherwise the order will be rejected.
newClientOrderID - strategyId: (e.g., 1)
- strategyType: The value cannot be less than . (e.g., 1)
1000000 - stopPrice: Used with ,
STOP_LOSS,STOP_LOSS_LIMIT, andTAKE_PROFITorders. (e.g., 1)TAKE_PROFIT_LIMIT - trailingDelta: See Trailing Stop order FAQ. (e.g., 1)
- icebergQty: Used with ,
LIMIT, andSTOP_LOSS_LIMITto create an iceberg order. (e.g., 1)TAKE_PROFIT_LIMIT - pegOffsetValue: Priceleveltopegthepriceto(max:100). SeePeggedOrdersInfo (e.g., 1)
- orderId: (e.g., 1)
- origClientOrderId:
- newQty: must be greater than 0 and less than the order's quantity. (e.g., 1)
newQty - cancelNewClientOrderId: Used to uniquely identify this cancel. Automatically generated by default.
- cancelOrigClientOrderId: Either or
cancelOrderIdmust be sent. </br> If bothcancelOrigClientOrderIdandcancelOrderIdparameters are provided, thecancelOrigClientOrderIdis searched first, then thecancelOrderIdfrom that result is checked against that order. </br> If both conditions are not met the request will be rejected.cancelOrigClientOrderId - cancelOrderId: Either or
cancelOrderIdmust be sent. </br>If bothcancelOrigClientOrderIdandcancelOrderIdparameters are provided, thecancelOrigClientOrderIdis searched first, then thecancelOrderIdfrom that result is checked against that order. </br>If both conditions are not met the request will be rejected. (e.g., 1)cancelOrigClientOrderId - listClientOrderId: A unique Id for the entire orderList
- quantity: (e.g., 1)
- limitClientOrderId: A unique Id for the limit order
- price: (e.g., 1)
- limitStrategyId: (e.g., 1)
- limitStrategyType: The value cannot be less than . (e.g., 1)
1000000 - limitIcebergQty: Used to make the leg an iceberg order. (e.g., 1)
LIMIT_MAKER - stopClientOrderId: A unique Id for the stop loss/stop loss limit leg
- stopPrice: (e.g., 1)
- stopStrategyId: (e.g., 1)
- stopStrategyType: The value cannot be less than . (e.g., 1)
1000000 - stopLimitPrice: If provided, is required. (e.g., 1)
stopLimitTimeInForce - stopIcebergQty: Used with leg to make an iceberg order. (e.g., 1)
STOP_LOSS_LIMIT - computeCommissionRates: Default: See Commissions FAQ to learn more.
false - orderListId: Either or
orderListIdmust be provided (e.g., 1)listClientOrderId - aboveClientOrderId: Arbitrary unique ID among open orders for the above order. Automatically generated if not sent
- aboveIcebergQty: Note that this can only be used if is
aboveTimeInForce. (e.g., 1)GTC - abovePrice: Can be used if is
aboveType,STOP_LOSS_LIMIT, orLIMIT_MAKERto specify the limit price. (e.g., 1)TAKE_PROFIT_LIMIT - aboveStopPrice: Can be used if is
aboveType,STOP_LOSS,STOP_LOSS_LIMIT,TAKE_PROFIT. EitherTAKE_PROFIT_LIMIToraboveStopPriceor both, must be specified. (e.g., 1)aboveTrailingDelta - aboveTrailingDelta: See Trailing Stop order FAQ. (e.g., 1)
- aboveStrategyId: Arbitrary numeric value identifying the above order within an order strategy. (e.g., 1)
- aboveStrategyType: Arbitrary numeric value identifying the above order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
- abovePegOffsetValue: (e.g., 1)
- belowClientOrderId: Arbitrary unique ID among open orders for the below order. Automatically generated if not sent
- belowIcebergQty: Note that this can only be used if is
belowTimeInForce. (e.g., 1)GTC - belowPrice: Can be used if is
belowType,STOP_LOSS_LIMIT, orLIMIT_MAKERto specify the limit price. (e.g., 1)TAKE_PROFIT_LIMIT - belowStopPrice: Can be used if is
belowType,STOP_LOSSorSTOP_LOSS_LIMIT, TAKE_PROFITEither belowStopPrice or belowTrailingDelta or both, must be specified. (e.g., 1)TAKE_PROFIT_LIMIT - belowTrailingDelta: See Trailing Stop order FAQ. (e.g., 1)
- belowStrategyId: Arbitrary numeric value identifying the below order within an order strategy. (e.g., 1)
- belowStrategyType: Arbitrary numeric value identifying the below order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
- belowPegOffsetValue: (e.g., 1)
- workingClientOrderId: Arbitrary unique ID among open orders for the working order. Automatically generated if not sent.
- workingPrice: (e.g., 1)
- workingQuantity: Sets the quantity for the working order. (e.g., 1)
- workingIcebergQty: This can only be used if is
workingTimeInForce, or ifGTCisworkingType. (e.g., 1)LIMIT_MAKER - workingStrategyId: Arbitrary numeric value identifying the working order within an order strategy. (e.g., 1)
- workingStrategyType: Arbitrary numeric value identifying the working order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
- workingPegOffsetValue: (e.g., 1)
- pendingClientOrderId: Arbitrary unique ID among open orders for the pending order. Automatically generated if not sent.
- pendingPrice: (e.g., 1)
- pendingStopPrice: (e.g., 1)
- pendingTrailingDelta: (e.g., 1)
- pendingIcebergQty: This can only be used if is
pendingTimeInForceor ifGTCispendingType. (e.g., 1)LIMIT_MAKER - pendingStrategyId: Arbitrary numeric value identifying the pending order within an order strategy. (e.g., 1)
- pendingStrategyType: Arbitrary numeric value identifying the pending order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
- pendingPegOffsetValue: (e.g., 1)
- pendingAboveClientOrderId: Arbitrary unique ID among open orders for the pending above order. Automatically generated if not sent.
- pendingAbovePrice: Can be used if is
pendingAboveType,STOP_LOSS_LIMIT, orLIMIT_MAKERto specify the limit price. (e.g., 1)TAKE_PROFIT_LIMIT - pendingAboveStopPrice: Can be used if is
pendingAboveType,STOP_LOSS,STOP_LOSS_LIMIT,TAKE_PROFIT(e.g., 1)TAKE_PROFIT_LIMIT - pendingAboveTrailingDelta: See Trailing Stop FAQ (e.g., 1)
- pendingAboveIcebergQty: This can only be used if is
pendingAboveTimeInForceor ifGTCispendingAboveType. (e.g., 1)LIMIT_MAKER - pendingAboveStrategyId: Arbitrary numeric value identifying the pending above order within an order strategy. (e.g., 1)
- pendingAboveStrategyType: Arbitrary numeric value identifying the pending above order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
- pendingAbovePegOffsetValue: (e.g., 1)
- pendingBelowClientOrderId: Arbitrary unique ID among open orders for the pending below order. Automatically generated if not sent.
- pendingBelowPrice: Can be used if is
pendingBelowTypeorSTOP_LOSS_LIMITto specify limit price (e.g., 1)TAKE_PROFIT_LIMIT - pendingBelowStopPrice: Can be used if is
pendingBelowType,STOP_LOSS. EitherSTOP_LOSS_LIMIT, TAKE_PROFIT or TAKE_PROFIT_LIMITorpendingBelowStopPriceor both, must be specified. (e.g., 1)pendingBelowTrailingDelta - pendingBelowTrailingDelta: (e.g., 1)
- pendingBelowIcebergQty: This can only be used if is
pendingBelowTimeInForce, or ifGTCispendingBelowType. (e.g., 1)LIMIT_MAKER - pendingBelowStrategyId: Arbitrary numeric value identifying the pending below order within an order strategy. (e.g., 1)
- pendingBelowStrategyType: Arbitrary numeric value identifying the pending below order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
- pendingBelowPegOffsetValue: (e.g., 1)
- pendingQuantity: Sets the quantity for the pending order. (e.g., 1)
- omitZeroBalances: When set to , emits only the non-zero balances of an account. Default value:
truefalse - fromAllocationId: (e.g., 1)
- timestamp: (e.g., 1)
- preventedMatchId: (e.g., 1)
- fromPreventedMatchId: (e.g., 1)
- orderId: (e.g., 1)
- fromExecutionId: (e.g., 1)
- limit: Default:500; Maximum: 1000 (e.g., 500)
- symbol: 要查询的交易对(例如:BNBUSDT)
- symbols: 要查询的交易对列表
- permissions: 要查询的权限列表
- showPermissionSets: 控制是否填充字段的内容,默认值为
permissionSetstrue - fromId: 聚合交易的起始ID(包含该ID)
- startTime: 聚合交易的起始时间戳(单位:毫秒,包含该时间)
- endTime: 聚合交易的结束时间戳(单位:毫秒,包含该时间)
- limit: 默认值:500;最大值:1000
- timeZone: 默认值:0(UTC)
- recvWindow: 值不能超过,支持最多三位小数精度以指定微秒
60000 - quantity: 数量
- quoteOrderQty: 报价资产数量
- price: 价格
- newClientOrderId: 未成交订单中的唯一ID,未发送则自动生成。仅当之前相同的订单已成交时,重复的ID才会被接受,否则订单会被拒绝。
newClientOrderID - strategyId: 策略ID
- strategyType: 值不能小于
1000000 - stopPrice: 用于、
STOP_LOSS、STOP_LOSS_LIMIT和TAKE_PROFIT订单TAKE_PROFIT_LIMIT - trailingDelta: 参见移动止损订单常见问题
- icebergQty: 用于、
LIMIT和STOP_LOSS_LIMIT订单创建冰山订单TAKE_PROFIT_LIMIT - pegOffsetValue: 挂单价格的偏移水平(最大值:100),参见挂单信息
- orderId: 订单ID
- origClientOrderId: 原始客户端订单ID
- newQty: 必须大于0且小于订单原有数量
newQty - cancelNewClientOrderId: 用于唯一标识取消请求,默认自动生成
- cancelOrigClientOrderId: 必须传入或
cancelOrderId其中一个。如果两个参数都提供,会先搜索cancelOrigClientOrderId,再检查结果中的cancelOrderId是否匹配,不满足则请求会被拒绝。cancelOrigClientOrderId - cancelOrderId: 必须传入或
cancelOrderId其中一个。如果两个参数都提供,会先搜索cancelOrigClientOrderId,再检查结果中的cancelOrderId是否匹配,不满足则请求会被拒绝。cancelOrigClientOrderId - listClientOrderId: 整个订单组的唯一ID
- limitClientOrderId: 限价订单的唯一ID
- limitStrategyId: 限价订单策略ID
- limitStrategyType: 值不能小于
1000000 - limitIcebergQty: 用于将订单腿设置为冰山订单
LIMIT_MAKER - stopClientOrderId: 止损/限价止损订单腿的唯一ID
- stopStrategyId: 止损订单策略ID
- stopStrategyType: 值不能小于
1000000 - stopLimitPrice: 如果提供该参数,则必须同时提供
stopLimitTimeInForce - stopIcebergQty: 用于订单腿创建冰山订单
STOP_LOSS_LIMIT - computeCommissionRates: 默认值:,参见佣金常见问题了解更多
false - orderListId: 必须提供或
orderListId其中一个listClientOrderId - aboveClientOrderId: 上方订单在未成交订单中的任意唯一ID,未发送则自动生成
- aboveIcebergQty: 仅当为
aboveTimeInForce时可使用GTC - abovePrice: 当为
aboveType、STOP_LOSS_LIMIT或LIMIT_MAKER时可用于指定限价TAKE_PROFIT_LIMIT - aboveStopPrice: 当为
aboveType、STOP_LOSS、STOP_LOSS_LIMIT、TAKE_PROFIT时可使用,必须指定TAKE_PROFIT_LIMIT或aboveStopPrice至少一个aboveTrailingDelta - aboveTrailingDelta: 参见移动止损订单常见问题
- aboveStrategyId: 用于标识订单策略内上方订单的任意数值
- aboveStrategyType: 用于标识上方订单策略的任意数值,小于1000000的值为保留值不可使用
- abovePegOffsetValue: 上方挂单偏移值
- belowClientOrderId: 下方订单在未成交订单中的任意唯一ID,未发送则自动生成
- belowIcebergQty: 仅当为
belowTimeInForce时可使用GTC - belowPrice: 当为
belowType、STOP_LOSS_LIMIT或LIMIT_MAKER时可用于指定限价TAKE_PROFIT_LIMIT - belowStopPrice: 当为
belowType、STOP_LOSS、STOP_LOSS_LIMIT或TAKE_PROFIT时可使用,必须指定TAKE_PROFIT_LIMIT或belowStopPrice至少一个belowTrailingDelta - belowTrailingDelta: 参见移动止损订单常见问题
- belowStrategyId: 用于标识订单策略内下方订单的任意数值
- belowStrategyType: 用于标识下方订单策略的任意数值,小于1000000的值为保留值不可使用
- belowPegOffsetValue: 下方挂单偏移值
- workingClientOrderId: 工作订单在未成交订单中的任意唯一ID,未发送则自动生成
- workingPrice: 工作订单价格
- workingQuantity: 设置工作订单的数量
- workingIcebergQty: 仅当为
workingTimeInForce或GTC为workingType时可使用LIMIT_MAKER - workingStrategyId: 用于标识订单策略内工作订单的任意数值
- workingStrategyType: 用于标识工作订单策略的任意数值,小于1000000的值为保留值不可使用
- workingPegOffsetValue: 工作订单挂单偏移值
- pendingClientOrderId: 待触发订单在未成交订单中的任意唯一ID,未发送则自动生成
- pendingPrice: 待触发订单价格
- pendingStopPrice: 待触发订单止损价格
- pendingTrailingDelta: 待触发订单移动止损偏移量
- pendingIcebergQty: 仅当为
pendingTimeInForce或GTC为pendingType时可使用LIMIT_MAKER - pendingStrategyId: 用于标识订单策略内待触发订单的任意数值
- pendingStrategyType: 用于标识待触发订单策略的任意数值,小于1000000的值为保留值不可使用
- pendingPegOffsetValue: 待触发订单挂单偏移值
- pendingAboveClientOrderId: 上方待触发订单在未成交订单中的任意唯一ID,未发送则自动生成
- pendingAbovePrice: 当为
pendingAboveType、STOP_LOSS_LIMIT或LIMIT_MAKER时可用于指定限价TAKE_PROFIT_LIMIT - pendingAboveStopPrice: 当为
pendingAboveType、STOP_LOSS、STOP_LOSS_LIMIT、TAKE_PROFIT时可使用TAKE_PROFIT_LIMIT - pendingAboveTrailingDelta: 参见移动止损常见问题
- pendingAboveIcebergQty: 仅当为
pendingAboveTimeInForce或GTC为pendingAboveType时可使用LIMIT_MAKER - pendingAboveStrategyId: 用于标识订单策略内上方待触发订单的任意数值
- pendingAboveStrategyType: 用于标识上方待触发订单策略的任意数值,小于1000000的值为保留值不可使用
- pendingAbovePegOffsetValue: 上方待触发订单挂单偏移值
- pendingBelowClientOrderId: 下方待触发订单在未成交订单中的任意唯一ID,未发送则自动生成
- pendingBelowPrice: 当为
pendingBelowType或STOP_LOSS_LIMIT时可用于指定限价TAKE_PROFIT_LIMIT - pendingBelowStopPrice: 当为
pendingBelowType、STOP_LOSS、STOP_LOSS_LIMIT或TAKE_PROFIT时可使用,必须指定TAKE_PROFIT_LIMIT或pendingBelowStopPrice至少一个pendingBelowTrailingDelta - pendingBelowTrailingDelta: 下方待触发订单移动止损偏移量
- pendingBelowIcebergQty: 仅当为
pendingBelowTimeInForce或GTC为pendingBelowType时可使用LIMIT_MAKER - pendingBelowStrategyId: 用于标识订单策略内下方待触发订单的任意数值
- pendingBelowStrategyType: 用于标识下方待触发订单策略的任意数值,小于1000000的值为保留值不可使用
- pendingBelowPegOffsetValue: 下方待触发订单挂单偏移值
- pendingQuantity: 设置待触发订单的数量
- omitZeroBalances: 设置为时仅返回账户非零余额,默认值:
truefalse - fromAllocationId: 分配记录起始ID
- timestamp: 时间戳
- preventedMatchId: 被阻止成交记录ID
- fromPreventedMatchId: 被阻止成交记录起始ID
- fromExecutionId: 执行记录起始ID
Enums
枚举值
- interval: 1s | 1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 6h | 8h | 12h | 1d | 3d | 1w | 1M
- windowSize: 1m | 2m | 3m | 4m | 5m | 6m | 7m | 8m | 9m | 10m | 11m | 12m | 13m | 14m | 15m | 16m | 17m | 18m | 19m | 20m | 21m | 22m | 23m | 24m | 25m | 26m | 27m | 28m | 29m | 30m | 31m | 32m | 33m | 34m | 35m | 36m | 37m | 38m | 39m | 40m | 41m | 42m | 43m | 44m | 45m | 46m | 47m | 48m | 49m | 50m | 51m | 52m | 53m | 54m | 55m | 56m | 57m | 58m | 59m | 1h | 2h | 3h | 4h | 5h | 6h | 7h | 8h | 9h | 10h | 11h | 12h | 13h | 14h | 15h | 16h | 17h | 18h | 19h | 20h | 21h | 22h | 23h | 1d | 2d | 3d | 4d | 5d | 6d
- type: FULL | MINI
- type: MARKET | LIMIT | STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT | LIMIT_MAKER | NON_REPRESENTABLE
- selfTradePreventionMode: NONE | EXPIRE_TAKER | EXPIRE_MAKER | EXPIRE_BOTH | DECREMENT | NON_REPRESENTABLE
- symbolStatus: TRADING | END_OF_DAY | HALT | BREAK | NON_REPRESENTABLE
- timeInForce: GTC | IOC | FOK | NON_REPRESENTABLE
- pegPriceType: PRIMARY_PEG | MARKET_PEG | NON_REPRESENTABLE
- pegOffsetType: PRICE_LEVEL | NON_REPRESENTABLE
- newOrderRespType: ACK | RESULT | FULL | MARKET | LIMIT
- cancelRestrictions: ONLY_NEW | NEW | ONLY_PARTIALLY_FILLED | PARTIALLY_FILLED
- cancelReplaceMode: STOP_ON_FAILURE | ALLOW_FAILURE
- orderRateLimitExceededMode: DO_NOTHING | CANCEL_ONLY
- stopLimitTimeInForce: GTC | IOC | FOK
- side: BUY | SELL
- aboveType: STOP_LOSS_LIMIT | STOP_LOSS | LIMIT_MAKER | TAKE_PROFIT | TAKE_PROFIT_LIMIT
- aboveTimeInForce: GTC | IOC | FOK
- abovePegPriceType: PRIMARY_PEG | MARKET_PEG
- abovePegOffsetType: PRICE_LEVEL
- belowType: STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT
- belowTimeInForce: GTC | IOC | FOK
- belowPegPriceType: PRIMARY_PEG | MARKET_PEG
- belowPegOffsetType: PRICE_LEVEL
- workingType: LIMIT | LIMIT_MAKER
- workingPegPriceType: PRIMARY_PEG | MARKET_PEG
- workingPegOffsetType: PRICE_LEVEL
- pendingPegPriceType: PRIMARY_PEG | MARKET_PEG
- pendingPegOffsetType: PRICE_LEVEL
- pendingAboveType: STOP_LOSS_LIMIT | STOP_LOSS | LIMIT_MAKER | TAKE_PROFIT | TAKE_PROFIT_LIMIT
- pendingAbovePegPriceType: PRIMARY_PEG | MARKET_PEG
- pendingAbovePegOffsetType: PRICE_LEVEL
- pendingBelowType: STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT
- pendingBelowPegPriceType: PRIMARY_PEG | MARKET_PEG
- pendingBelowPegOffsetType: PRICE_LEVEL
- workingSide: BUY | SELL
- workingTimeInForce: GTC | IOC | FOK
- pendingType: LIMIT | MARKET | STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT | LIMIT_MAKER
- pendingSide: BUY | SELL
- pendingTimeInForce: GTC | IOC | FOK
- pendingAboveTimeInForce: GTC | IOC | FOK
- pendingBelowTimeInForce: GTC | IOC | FOK
- interval: 1s | 1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 6h | 8h | 12h | 1d | 3d | 1w | 1M
- windowSize: 1m | 2m | 3m | 4m | 5m | 6m | 7m | 8m | 9m | 10m | 11m | 12m | 13m | 14m | 15m | 16m | 17m | 18m | 19m | 20m | 21m | 22m | 23m | 24m | 25m | 26m | 27m | 28m | 29m | 30m | 31m | 32m | 33m | 34m | 35m | 36m | 37m | 38m | 39m | 40m | 41m | 42m | 43m | 44m | 45m | 46m | 47m | 48m | 49m | 50m | 51m | 52m | 53m | 54m | 55m | 56m | 57m | 58m | 59m | 1h | 2h | 3h | 4h | 5h | 6h | 7h | 8h | 9h | 10h | 11h | 12h | 13h | 14h | 15h | 16h | 17h | 18h | 19h | 20h | 21h | 22h | 23h | 1d | 2d | 3d | 4d | 5d | 6d
- type: FULL | MINI
- type: MARKET | LIMIT | STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT | LIMIT_MAKER | NON_REPRESENTABLE
- selfTradePreventionMode: NONE | EXPIRE_TAKER | EXPIRE_MAKER | EXPIRE_BOTH | DECREMENT | NON_REPRESENTABLE
- symbolStatus: TRADING | END_OF_DAY | HALT | BREAK | NON_REPRESENTABLE
- timeInForce: GTC | IOC | FOK | NON_REPRESENTABLE
- pegPriceType: PRIMARY_PEG | MARKET_PEG | NON_REPRESENTABLE
- pegOffsetType: PRICE_LEVEL | NON_REPRESENTABLE
- newOrderRespType: ACK | RESULT | FULL | MARKET | LIMIT
- cancelRestrictions: ONLY_NEW | NEW | ONLY_PARTIALLY_FILLED | PARTIALLY_FILLED
- cancelReplaceMode: STOP_ON_FAILURE | ALLOW_FAILURE
- orderRateLimitExceededMode: DO_NOTHING | CANCEL_ONLY
- stopLimitTimeInForce: GTC | IOC | FOK
- side: BUY | SELL
- aboveType: STOP_LOSS_LIMIT | STOP_LOSS | LIMIT_MAKER | TAKE_PROFIT | TAKE_PROFIT_LIMIT
- aboveTimeInForce: GTC | IOC | FOK
- abovePegPriceType: PRIMARY_PEG | MARKET_PEG
- abovePegOffsetType: PRICE_LEVEL
- belowType: STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT
- belowTimeInForce: GTC | IOC | FOK
- belowPegPriceType: PRIMARY_PEG | MARKET_PEG
- belowPegOffsetType: PRICE_LEVEL
- workingType: LIMIT | LIMIT_MAKER
- workingPegPriceType: PRIMARY_PEG | MARKET_PEG
- workingPegOffsetType: PRICE_LEVEL
- pendingPegPriceType: PRIMARY_PEG | MARKET_PEG
- pendingPegOffsetType: PRICE_LEVEL
- pendingAboveType: STOP_LOSS_LIMIT | STOP_LOSS | LIMIT_MAKER | TAKE_PROFIT | TAKE_PROFIT_LIMIT
- pendingAbovePegPriceType: PRIMARY_PEG | MARKET_PEG
- pendingAbovePegOffsetType: PRICE_LEVEL
- pendingBelowType: STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT
- pendingBelowPegPriceType: PRIMARY_PEG | MARKET_PEG
- pendingBelowPegOffsetType: PRICE_LEVEL
- workingSide: BUY | SELL
- workingTimeInForce: GTC | IOC | FOK
- pendingType: LIMIT | MARKET | STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT | LIMIT_MAKER
- pendingSide: BUY | SELL
- pendingTimeInForce: GTC | IOC | FOK
- pendingAboveTimeInForce: GTC | IOC | FOK
- pendingBelowTimeInForce: GTC | IOC | FOK
Authentication
身份验证
For endpoints that require authentication, you will need to provide Binance API credentials.
Required credentials:
- apiKey: Your Binance API key (for header)
- secretKey: Your Binance API secret (for signing)
Base URLs:
- Mainnet: https://api.binance.com
- Testnet: https://testnet.binance.vision
需要身份验证的端点需要提供Binance API凭证:
所需凭证:
- apiKey: 你的Binance API密钥(放在请求头中)
- secretKey: 你的Binance API密钥(用于签名)
基础URL:
Security
安全说明
Share Credentials
共享凭证
Users can provide Binance API credentials by sending a file where the content is in the following format:
bash
abc123...xyz
secret123...key用户可以通过发送包含以下格式内容的文件提供Binance API凭证:
bash
abc123...xyz
secret123...keyNever Display Full Secrets
不要完整展示密钥
When showing credentials to users:
- API Key: Show first 5 + last 4 characters:
su1Qc...8akf - Secret Key: Always mask, show only last 5:
***...aws1
Example response when asked for credentials:
Account: main
API Key: su1Qc...8akf
Secret: ***...aws1
Environment: Mainnet
向用户展示凭证时:
- API Key: 展示前5位 + 最后4位:
su1Qc...8akf - Secret Key: 始终掩码,仅展示最后5位:
***...aws1
查询凭证时的响应示例:
账户: main
API Key: su1Qc...8akf
Secret: ***...aws1
环境: 主网
Listing Accounts
列出账户
When listing accounts, show names and environment only — never keys:
Binance Accounts:
- main (Mainnet/Testnet)
- testnet-dev (Testnet)
- futures-keys (Mainnet)
列出账户时,仅展示名称和环境,绝对不要展示密钥:
Binance账户列表:
- main (主网/测试网)
- testnet-dev (测试网)
- futures-keys (主网)
Transactions in Mainnet
主网交易
When performing transactions in mainnet, always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.
在主网执行交易操作前,必须向用户确认,要求用户输入"CONFIRM"后再继续操作。
Binance Accounts
Binance账户配置
main
main
- API Key: your_mainnet_api_key
- Secret: your_mainnet_secret
- Testnet: false
- API Key: your_mainnet_api_key
- Secret: your_mainnet_secret
- 测试网: false
testnet-dev
testnet-dev
- API Key: your_testnet_api_key
- Secret: your_testnet_secret
- Testnet: true
- API Key: your_testnet_api_key
- Secret: your_testnet_secret
- 测试网: true
TOOLS.md Structure
TOOLS.md 结构
bash
undefinedbash
undefinedBinance Accounts
Binance 账户
main
main
- API Key: abc123...xyz
- Secret: secret123...key
- Testnet: false
- Description: Primary trading account
- API Key: abc123...xyz
- Secret: secret123...key
- Testnet: false
- Description: 主交易账户
testnet-dev
testnet-dev
- API Key: test456...abc
- Secret: testsecret...xyz
- Testnet: true
- Description: Development/testing
- API Key: test456...abc
- Secret: testsecret...xyz
- Testnet: true
- Description: 开发/测试用账户
futures-keys
futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Testnet: false
- Description: Futures trading account
undefined- API Key: futures789...def
- Secret: futuressecret...uvw
- Testnet: false
- Description: 合约交易账户
undefinedAgent Behavior
Agent 行为规则
- Credentials requested: Mask secrets (show last 5 chars only)
- Listing accounts: Show names and environment, never keys
- Account selection: Ask if ambiguous, default to main
- When doing a transaction in mainnet, confirm with user before by asking to write "CONFIRM" to proceed
- New credentials: Prompt for name, environment, signing mode
- 凭证查询:掩码处理密钥,仅展示最后5位
- 账户列表:仅展示名称和环境,绝对不展示密钥
- 账户选择:存在歧义时询问用户,默认使用main账户
- 主网交易操作前必须要求用户输入"CONFIRM"确认后再执行
- 新增凭证:提示用户输入账户名称、环境、签名模式
Adding New Accounts
新增账户
When user provides new credentials:
- Ask for account name
- Ask: Mainnet or Testnet?
- Store in with masked display confirmation
TOOLS.md
用户提供新凭证时:
- 询问账户名称
- 询问:主网还是测试网?
- 存储到中,并返回掩码后的确认信息
TOOLS.md
Signing Requests
请求签名
All trading endpoints require HMAC SHA256 signature:
- Build query string with all params + timestamp (Unix ms)
- Sign query string with secretKey using HMAC SHA256, RSA, or Ed25519 (depending on account config)
- Append signature to query string
- Include header
X-MBX-APIKEY
See for implementation details.
references/authentication.md所有交易端点都需要HMAC SHA256签名:
- 构建包含所有参数+时间戳(Unix毫秒)的查询字符串
- 根据账户配置,使用secretKey通过HMAC SHA256、RSA或Ed25519对查询字符串签名
- 将签名附加到查询字符串中
- 在请求头中添加字段
X-MBX-APIKEY
实现细节参见 。
references/authentication.md