取消全部CM条件单 (TRADE)
取消全部CM条件单
取消全部CM条件单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow取消全部CM条件单 (TRADE) › 响应
取消All CM 未完成Conditional 订单
codeCode.
msgMsg.
撤销全部CM订单 (TRADE)
撤销特定交易对全部CM订单
撤销全部CM订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow撤销全部CM订单 (TRADE) › 响应
取消All CM 未完成订单
codeCode.
msgMsg.
取消全部UM条件单 (TRADE)
取消全部UM条件单
取消全部UM条件单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow取消全部UM条件单 (TRADE) › 响应
取消All UM 未完成Conditional 订单
codeCode.
msgMsg.
撤销全部UM订单 (TRADE)
撤销特定交易对全部UM订单
撤销全部UM订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow撤销全部UM订单 (TRADE) › 响应
取消All UM 未完成订单
codeCode.
msgMsg.
CM条件单下单 (TRADE)
CM条件单下单
CM条件单下单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
CM条件单下单 (TRADE) › 请求体
symbol交易对
side方向
strategyTypetimestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
positionSide持仓方向,单向持仓模式下非必填,默认且仅可填BOTH;在双向持仓模式下必填,且仅可选择 LONG 或 SHORT
timeInForcequantityreduceOnlytrue或false; 非双开模式下默认false;双开模式下不接受此参数
priceworkingTypestopPrice 触发类型: MARK_PRICE, CONTRACT_PRICE. 默认 CONTRACT_PRICE
priceProtect条件单触发保护:"true" or "false", 默认 "false". STOP/STOP_MARKET or TAKE_PROFIT/TAKE_PROFIT_MARKET 需要此参数
newClientStrategyId用户自定义的订单号,不可以重复出现在挂单中。如空缺系统会自动赋值。必须满足正则规则: ^[\.A-Z\:/a-z0-9_-]{1,32}$
stopPriceUsed 带 STOP/STOP_MARKET 或 TAKE_PROFIT/TAKE_PROFIT_MARKET 订单.
activationPriceTRAILING_STOP_MARKET 单使用,默认标记价格
callbackRateTRAILING_STOP_MARKET 单使用, 最小0.1, 最大5,1代表1%
recvWindowCM条件单下单 (TRADE) › 响应
New CM Conditional 订单
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
pairPair.
timeInForceTime In Force.
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
bookTime条件单下单时间
updateTime更新时间
workingTypeWorking Type.
priceProtectPrice Protect.
取消CM条件订单 (TRADE)
取消CM条件订单
取消CM条件订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
strategyIdnewClientStrategyIdrecvWindow取消CM条件订单 (TRADE) › 响应
取消CM Conditional 订单
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
timeInForceTime In Force.
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
bookTime条件单下单时间
updateTime更新时间
workingTypeWorking Type.
priceProtectPrice Protect.
查询CM订单 (USER_DATA)
查询CM订单状态
查询CM订单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderIdorigClientOrderIdrecvWindow查询CM订单 (USER_DATA) › 响应
CM 订单
avgPriceAvg Price.
clientOrderIdClient Order ID.
cumBaseCum Base.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
origTypeOrig Type.
pricePrice.
reduceOnlyReduce Only.
sideSide.
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
pairPair.
positionSideBOTH means that it is the position of One-way Mode
timeorder time
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTimeupdate time
修改CM订单 (TRADE)
修改CM订单功能,当前只支持限价(LIMIT)订单修改,修改后会在撮合队列里重新排序
修改CM订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
修改CM订单 (TRADE) › 请求体
symbol交易对
sidequantity下单数量
price委托价格
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderId系统订单号
origClientOrderId用户自定义的订单号
priceMatchOPPONENT/ OPPONENT_5/ OPPONENT_10/ OPPONENT_20/QUEUE/ QUEUE_5/ QUEUE_10/ QUEUE_20;不能与price同时传
modifyId用户自定义的改单标识,原样返回。可选;服务端不校验唯一性。
recvWindow修改CM订单 (TRADE) › 响应
Modify CM 订单
orderId条件单触发后普通单id,当条件单被触发后才有
symbol交易对(如存在)。
pairPair.
status状态,枚举类型:completed 已完成,processing 处理中
clientOrderIdClient Order ID.
modifyId用户自定义的改单标识,仅当请求中传入时返回
pricePrice.
avgPriceAvg Price.
origQtyOrig Qty.
executedQtyExecuted Qty.
cumQtyCum Qty.
cumBaseCum Base.
timeInForceTime In Force.
type条件单触发后普通订单类型
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
origTypeOrig Type.
updateTime更新时间
CM下单 (TRADE)
CM下单
CM下单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
CM下单 (TRADE) › 请求体
symbol交易对
side方向
typetimestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
positionSide持仓方向,单向持仓模式下非必填,默认且仅可填BOTH;在双向持仓模式下必填,且仅可选择 LONG 或 SHORT
timeInForcequantity下单数量
reduceOnlytrue或false; 非双开模式下默认false;双开模式下不接受此参数
price委托价格
priceMatchOPPONENT/ OPPONENT_5/ OPPONENT_10/ OPPONENT_20/QUEUE/ QUEUE_5/ QUEUE_10/ QUEUE_20;不能与price同时传
newClientOrderId用户自定义的订单号,不可以重复出现在挂单中。如空缺系统会自动赋值。必须满足正则规则: ^[\.A-Z\:/a-z0-9_-]{1,32}$
newOrderRespTypeACK, RESULT,默认 ACK
recvWindowCM下单 (TRADE) › 响应
New CM 订单
clientOrderIdClient Order ID.
cumQtyCum Qty.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
pairPair.
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTime更新时间
撤销CM订单 (TRADE)
撤销CM订单
撤销CM订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderIdorigClientOrderIdrecvWindow撤销CM订单 (TRADE) › 响应
取消CM 订单
clientOrderIdClient Order ID.
cumQtyCum Qty.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
pairPair.
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTime更新时间
杠杆账户撤销单一交易对的所有挂单 (TRADE)
杠杆账户撤销单一交易对的所有挂单
杠杆账户撤销单一交易对的所有挂单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow杠杆账户撤销单一交易对的所有挂单 (TRADE) › 响应
取消杠杆 账户 All 未完成订单 on a 交易对
symbol交易对(如存在)。
origClientOrderIdOrig Client Order ID.
orderId条件单触发后普通单id,当条件单被触发后才有
orderListIdOrder List ID.
clientOrderIdClient Order ID.
pricePrice.
origQtyOrig Qty.
executedQtyExecuted Qty.
cummulativeQuoteQtyCummulative Quote Qty.
status状态,枚举类型:completed 已完成,processing 处理中
timeInForceTime In Force.
type条件单触发后普通订单类型
sideSide.
contingencyTypeContingency Type.
listStatusTypeList Status Type.
listOrderStatusList Order Status.
listClientOrderIdList Client Order ID.
transactionTimeTransaction Time.
Orders.
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
clientOrderIdClient Order ID.
Order Reports.
symbol交易对(如存在)。
origClientOrderIdOrig Client Order ID.
orderId条件单触发后普通单id,当条件单被触发后才有
orderListIdOrder List ID.
clientOrderIdClient Order ID.
pricePrice.
origQtyOrig Qty.
executedQtyExecuted Qty.
cummulativeQuoteQtyCummulative Quote Qty.
status状态,枚举类型:completed 已完成,processing 处理中
timeInForceTime In Force.
type条件单触发后普通订单类型
sideSide.
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
icebergQtyIceberg Qty.
查询杠杆账户 OCO (USER_DATA)
根据提供的可选参数检索特定的杠杆账户 OCO 订单。
查询杠杆账户 OCO (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderListIdorderListId 或 listClientOrderId 必须被提供
origClientOrderIdorderListId 或 listClientOrderId 必须被提供
recvWindow赋值不能大于 60000
查询杠杆账户 OCO (USER_DATA) › 响应
杠杆 账户's OCO
orderListIdOrder List ID.
contingencyTypeContingency Type.
listStatusTypeList Status Type.
listOrderStatusList Order Status.
listClientOrderIdList Client Order ID.
transactionTimeTransaction Time.
symbol交易对(如存在)。
Orders.
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
clientOrderIdClient Order ID.
取消杠杆账户OCO订单 (TRADE)
取消杠杆账户订单。
取消杠杆账户OCO订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderListIdorderListId 或 listClientOrderId 必须被提供
listClientOrderIdorderListId 或 listClientOrderId 必须被提供
newClientOrderId用户自定义的本次撤销操作的ID(注意不是被撤销的订单的自定义ID)。如无指定会自动赋值
recvWindow赋值不能超过 60000
取消杠杆账户OCO订单 (TRADE) › 响应
取消杠杆 账户 OCO 订单
orderListIdOrder List ID.
contingencyTypeContingency Type.
listStatusTypeList Status Type.
listOrderStatusList Order Status.
listClientOrderIdList Client Order ID.
transactionTimeTransaction Time.
symbol交易对(如存在)。
Orders.
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
clientOrderIdClient Order ID.
Order Reports.
symbol交易对(如存在)。
origClientOrderIdOrig Client Order ID.
orderId条件单触发后普通单id,当条件单被触发后才有
orderListIdOrder List ID.
clientOrderIdClient Order ID.
pricePrice.
origQtyOrig Qty.
executedQtyExecuted Qty.
cummulativeQuoteQtyCummulative Quote Qty.
status状态,枚举类型:completed 已完成,processing 处理中
timeInForceTime In Force.
type条件单触发后普通订单类型
sideSide.
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
查询杠杆账户订单 (USER_DATA)
查询杠杆账户订单
查询杠杆账户订单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderIdorigClientOrderIdrecvWindow赋值不能大于 60000
查询杠杆账户订单 (USER_DATA) › 响应
杠杆 账户 订单
clientOrderIdClient Order ID.
cummulativeQuoteQtyCummulative Quote Qty.
executedQtyExecuted Qty.
icebergQtyIceberg Qty.
isWorkingIs Working.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
pricePrice.
sideSide.
status状态,枚举类型:completed 已完成,processing 处理中
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
time时间。
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTime更新时间
accountIdAccount ID.
selfTradePreventionModeself trading preventation mode
preventedMatchIdPrevented Match ID.
preventedQuantityPrevented Quantity.
杠杆账户下单 (TRADE)
杠杆账户下单
杠杆账户下单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
杠杆账户下单 (TRADE) › 请求体
symbolsidetypetimestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
quantityquoteOrderQtypricestopPrice与 STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT,和 TAKE_PROFIT_LIMIT 订单一起使用
newClientOrderId客户自定义的唯一订单ID。若未发送自动生成。
newOrderRespType设置响应: JSON。 ACK, RESULT, 或 FULL; MARKET 和 LIMIT 订单类型默认为 FULL, 所有其他订单默认为 ACK
icebergQty与 LIMIT, STOP_LOSS_LIMIT,和 TAKE_PROFIT_LIMIT 一起使用创建 iceberg 订单
sideEffectTypetimeInForceselfTradePreventionMode允许的 ENUM 取决于交易对的配置。支持的值有 EXPIRE_TAKER,EXPIRE_MAKER,EXPIRE_BOTH,NONE
autoRepayAtCancel只有在自动借款单或者自动借还单生效,true表示的是撤单后需要把订单产生的借款归还,默认为true
recvWindow赋值不能超过 60000
杠杆账户下单 (TRADE) › 响应
New 杠杆 订单
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
clientOrderIdClient Order ID.
transactTimeTransact Time.
pricePrice.
origQtyOrig Qty.
executedQtyExecuted Qty.
cummulativeQuoteQtyCummulative Quote Qty.
status状态,枚举类型:completed 已完成,processing 处理中
timeInForceTime In Force.
type条件单触发后普通订单类型
sideSide.
marginBuyBorrowAmount下单后没有发生借款则不返回该字段
marginBuyBorrowAsset下单后没有发生借款则不返回该字段
Fills.
pricePrice.
qtyQty.
commissionCommission.
commissionAssetCommission Asset.
杠杆账户撤销订单 (TRADE)
杠杆账户撤销订单
杠杆账户撤销订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderIdorigClientOrderIdnewClientOrderId用户自定义的本次撤销操作的ID(注意不是被撤销的订单的自定义ID)。如无指定会自动赋值
recvWindow赋值不能超过 60000
杠杆账户撤销订单 (TRADE) › 响应
取消杠杆 账户 订单
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
origClientOrderIdOrig Client Order ID.
clientOrderIdClient Order ID.
pricePrice.
origQtyOrig Qty.
executedQtyExecuted Qty.
cummulativeQuoteQtyCummulative Quote Qty.
status状态,枚举类型:completed 已完成,processing 处理中
timeInForceTime In Force.
type条件单触发后普通订单类型
sideSide.
UM条件单下单 (TRADE)
UM条件单下单
UM条件单下单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
UM条件单下单 (TRADE) › 请求体
symbol交易对
sidestrategyTypetimestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
positionSide持仓方向,单向持仓模式下非必填,默认且仅可填BOTH;在双向持仓模式下必填,且仅可选择 LONG 或 SHORT
timeInForcequantityreduceOnlytrue或false; 非双开模式下默认false;双开模式下不接受此参数
priceworkingTypestopPrice 触发类型: MARK_PRICE(标记价格), CONTRACT_PRICE(合约最新价). 默认 CONTRACT_PRICE
priceProtect条件单触发保护:"true","false", 默认"false". 仅 STOP, STOP_MARKET, TAKE_PROFIT, TAKE_PROFIT_MARKET 需要此参数
newClientStrategyId用户自定义的订单号,不可以重复出现在挂单中。如空缺系统会自动赋值。必须满足正则规则: ^[\.A-Z\:/a-z0-9_-]{1,32}$
stopPriceUsed 带 STOP/STOP_MARKET 或 TAKE_PROFIT/TAKE_PROFIT_MARKET 订单.
activationPriceTRAILING_STOP_MARKET 单使用,默认标记价格
callbackRateTRAILING_STOP_MARKET 单使用, 最小0.1, 最大5,1代表1%
priceMatchOPPONENT/ OPPONENT_5/ OPPONENT_10/ OPPONENT_20/QUEUE/ QUEUE_5/ QUEUE_10/ QUEUE_20;不能与price同时传
selfTradePreventionModeNONE / EXPIRE_TAKER/ EXPIRE_MAKER/ EXPIRE_BOTH; 默认NONE
goodTillDateTIF为GTD时订单的自动取消时间, 当timeInforce为GTD时必传;传入的时间戳仅保留秒级精度,毫秒级部分会被自动忽略,时间戳需大于当前时间+600s且小于253402300799000
recvWindowUM条件单下单 (TRADE) › 响应
New UM Conditional 订单
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
timeInForceTime In Force.
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
bookTime条件单下单时间
updateTime更新时间
workingTypeWorking Type.
priceProtectPrice Protect.
selfTradePreventionMode//订单自成交保护模式
goodTillDate订单TIF为GTD时的自动取消时间
priceMatchPrice Match.
取消UM条件订单 (TRADE)
取消UM条件订单
取消UM条件订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
strategyIdnewClientStrategyIdrecvWindow取消UM条件订单 (TRADE) › 响应
取消UM Conditional 订单
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
timeInForceTime In Force.
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
bookTime条件单下单时间
updateTime更新时间
workingTypeWorking Type.
priceProtectPrice Protect.
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
priceMatchPrice Match.
查询UM订单 (USER_DATA)
查询UM订单状态
查询UM订单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderIdorigClientOrderIdrecvWindow查询UM订单 (USER_DATA) › 响应
UM 订单
avgPriceAvg Price.
clientOrderIdClient Order ID.
cumQuoteCum Quote.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
origTypeOrig Type.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
timeorder time
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTimeupdate time
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
priceMatchPrice Match.
修改UM订单 (TRADE)
修改UM订单功能,当前只支持限价(LIMIT)订单修改,修改后会在撮合队列里重新排序
修改UM订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
修改UM订单 (TRADE) › 请求体
symbol交易对
sidequantity下单数量
price委托价格
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderId系统订单号
origClientOrderId用户自定义的订单号
priceMatchOPPONENT/ OPPONENT_5/ OPPONENT_10/ OPPONENT_20/QUEUE/ QUEUE_5/ QUEUE_10/ QUEUE_20;不能与price同时传
modifyId用户自定义的改单标识,原样返回。可选;服务端不校验唯一性。
recvWindow修改UM订单 (TRADE) › 响应
Modify UM 订单
orderId条件单触发后普通单id,当条件单被触发后才有
symbol交易对(如存在)。
status状态,枚举类型:completed 已完成,processing 处理中
clientOrderIdClient Order ID.
modifyId用户自定义的改单标识,仅当请求中传入时返回
pricePrice.
avgPriceAvg Price.
origQtyOrig Qty.
executedQtyExecuted Qty.
cumQtyCum Qty.
cumQuoteCum Quote.
timeInForceTime In Force.
type条件单触发后普通订单类型
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
origTypeOrig Type.
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
updateTime更新时间
priceMatchPrice Match.
UM下单 (TRADE)
UM下单
UM下单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
UM下单 (TRADE) › 请求体
symbol交易对
sidetypetimestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
positionSide持仓方向,单向持仓模式下非必填,默认且仅可填BOTH;在双向持仓模式下必填,且仅可选择 LONG 或 SHORT
timeInForce有效方法
quantity下单数量
reduceOnlytrue或false; 非双开模式下默认false;双开模式下不接受此参数
price委托价格
newClientOrderId用户自定义的订单号,不可以重复出现在挂单中。如空缺系统会自动赋值。必须满足正则规则: ^[\.A-Z\:/a-z0-9_-]{1,32}$
newOrderRespTypeACK, RESULT,默认 ACK
priceMatchOPPONENT/ OPPONENT_5/ OPPONENT_10/ OPPONENT_20/QUEUE/ QUEUE_5/ QUEUE_10/ QUEUE_20;不能与price同时传
selfTradePreventionModeNONE / EXPIRE_TAKER/ EXPIRE_MAKER/ EXPIRE_BOTH; 默认NONE
goodTillDateTIF为GTD时订单的自动取消时间, 当timeInforce为GTD时必传;传入的时间戳仅保留秒级精度,毫秒级部分会被自动忽略,时间戳需大于当前时间+600s且小于253402300799000
recvWindowUM下单 (TRADE) › 响应
New UM 订单
clientOrderIdClient Order ID.
cumQtyCum Qty.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
timeInForceTime In Force.
type条件单触发后普通订单类型
selfTradePreventionMode//订单自成交保护模式
goodTillDate订单TIF为GTD时的自动取消时间
updateTime更新时间
priceMatchPrice Match.
撤销UM订单 (TRADE)
撤销UM订单
撤销UM订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderIdorigClientOrderIdrecvWindow撤销UM订单 (TRADE) › 响应
取消UM 订单
clientOrderIdClient Order ID.
cumQtyCum Qty.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTime更新时间
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
priceMatchPrice Match.
CM账户成交历史 (USER_DATA)
获取CM成交历史
CM账户成交历史 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolpairstartTime起始时间
endTime结束时间
fromId起始成交 ID。
limit返回结果数量。
recvWindowCM账户成交历史 (USER_DATA) › 响应
CM 账户 交易 列表
symbol交易对(如存在)。
idID.
orderId条件单触发后普通单id,当条件单被触发后才有
pairPair.
sideSide.
pricePrice.
qtyQty.
realizedPnlRealized Pnl.
marginAssetMargin Asset.
baseQtyBase Qty.
commissionCommission.
commissionAssetCommission Asset.
time时间。
positionSideBOTH means that it is the position of One-way Mode
buyerBuyer.
makerMaker.
CM持仓ADL队列估算 (USER_DATA)
CM持仓ADL队列估算
- 每30秒更新数据
- 队列分数0,1,2,3,4,分数越高说明在ADL队列中的位置越靠前
- 对于单向持仓模式或者是逐仓状态下的双向持仓模式的交易对,会返回 "LONG", "SHORT" 和 "BOTH" 分别表示不同持仓方向上持仓的adl队列分数
- 对于全仓状态下的双向持仓模式的交易对,会返回 "LONG", "SHORT" 和 "HEDGE", 其中"HEDGE"的存在仅作为标记;其中如果多空均有持仓的情况下,"LONG"和"SHORT"返回共同计算后相同的队列分数。
CM持仓ADL队列估算 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolrecvWindowCM持仓ADL队列估算 (USER_DATA) › 响应
CM 持仓 ADL Quantile Estimation
symbol交易对(如存在)。
Adl Quantile.
LONG双开模式下多头持仓的ADL队列估算分
SHORT双开模式下空头持仓的ADL队列估算分
HEDGEHEDGE 仅作为指示出现,请忽略数值
BOTH单开模式下持仓的ADL队列估算分
获取UM BNB抵扣开关状态 (USER_DATA)
查询用户 所有 symbol UM合约交易BNB抵扣开关状态(手续费抵扣开或关)
获取UM BNB抵扣开关状态 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow获取UM BNB抵扣开关状态 (USER_DATA) › 响应
获取UM 合约 BNB Burn 状态
feeBurn"true": 手续费抵扣开; "false": 手续费抵扣关
UM合约交易BNB抵扣开关 (TRADE)
改变用户 所有 symbol UM合约交易BNB抵扣开关(手续费抵扣开或关)
UM合约交易BNB抵扣开关 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
UM合约交易BNB抵扣开关 (TRADE) › 请求体
feeBurn"true": 手续费抵扣开; "false": 手续费抵扣关
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindowUM合约交易BNB抵扣开关 (TRADE) › 响应
Toggle BNB Burn On UM 合约 交易
codeCode.
msgMsg.
杠杆账户借贷 (MARGIN)
申请借贷
杠杆账户借贷 (MARGIN) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
杠杆账户借贷 (MARGIN) › 请求体
assetamounttimestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow杠杆账户借贷 (MARGIN) › 响应
杠杆 账户 借款
tranId交易ID。
杠杆账户 OCO 下单 (TRADE)
杠杆账户发送新 OCO 订单
杠杆账户 OCO 下单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
杠杆账户 OCO 下单 (TRADE) › 请求体
symbolside详见枚举定义:订单方向
quantitypricestopPricetimestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
listClientOrderId整个 orderList 的唯一 ID
limitClientOrderId限价单的唯一 ID
limitIcebergQtystopClientOrderId止损/止损限价单的唯一 ID
stopLimitPrice如果提供,须配合提交stopLimitTimeInForce
stopIcebergQtystopLimitTimeInForce有效值 GTC/FOK/IOC
newOrderRespType详见枚举定义:订单返回类型
sideEffectTypeNO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; 默认为 NO_SIDE_EFFECT
recvWindow杠杆账户 OCO 下单 (TRADE) › 响应
杠杆 账户 New OCO
orderListIdOrder List ID.
contingencyTypeContingency Type.
listStatusTypeList Status Type.
listOrderStatusList Order Status.
listClientOrderIdList Client Order ID.
transactionTimeTransaction Time.
symbol交易对(如存在)。
marginBuyBorrowAmount下单后没有发生借款则不返回该字段
marginBuyBorrowAsset下单后没有发生借款则不返回该字段
Orders.
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
clientOrderIdClient Order ID.
Order Reports.
杠杆账户归还借贷 (MARGIN)
获取杠杆账户归还借贷
杠杆账户归还借贷 (MARGIN) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
杠杆账户归还借贷 (MARGIN) › 请求体
assetamounttimestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow赋值不能超过60000
杠杆账户归还借贷 (MARGIN) › 响应
杠杆 账户 还款
tranId交易ID。
杠杆账户还款 (TRADE)
杠杆账户还款
杠杆账户还款 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
杠杆账户还款 (TRADE) › 请求体
assettimestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
amountspecifyRepayAssets指定还款资产,多资产用逗号分隔
recvWindow赋值不能超过60000
杠杆账户还款 (TRADE) › 响应
杠杆 账户 还款 Debt
amount还款金额
asset资产
specifyRepayAssetsSpecify Repay Assets.
updateTime更新时间
successSuccess.
查询杠杆账户交易历史 (USER_DATA)
查询杠杆账户交易历史
查询杠杆账户交易历史 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderIdstartTime起始时间
endTime结束时间
fromId起始成交 ID。
limit返回结果数量。
recvWindow赋值不能大于 60000
查询杠杆账户交易历史 (USER_DATA) › 响应
杠杆 账户 交易 列表
commissionCommission.
commissionAssetCommission Asset.
idID.
isBestMatchIs Best Match.
isBuyerIs Buyer.
isMakerIs Maker.
orderId条件单触发后普通单id,当条件单被触发后才有
pricePrice.
qtyQty.
symbol交易对(如存在)。
time时间。
查询CM所有条件订单(包括历史订单) (USER_DATA)
查询CM所有条件订单(包括历史订单
查询CM所有条件订单(包括历史订单) (USER_DATA) › 授权
查询CM所有条件订单(包括历史订单) (USER_DATA) › 请求权重
此端点消耗基于IP的请求权重。较重的端点会消耗更多您的IP速率限制容量。
请在限速说明章节中了解更多信息。
- 1 for a single
symbol - 40 when
symbolis omitted
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolstrategyIdstartTime起始时间
endTime结束时间
limit返回结果数量。
recvWindow查询CM所有条件订单(包括历史订单) (USER_DATA) › 响应
All CM Conditional 订单
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
status条件单触发后普通单状态, 当条件单被触发后才有
bookTime条件单下单时间
updateTime更新时间
triggerTimeTrigger Time.
timeInForceTime In Force.
type条件单触发后普通订单类型
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
查询所有CM订单(包括历史订单) (USER_DATA)
查询所有CM订单(包括历史订单)
查询所有CM订单(包括历史订单) (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbol交易对
pairorderIdstartTime起始时间
endTime结束时间
limit返回结果数量。
recvWindow查询所有CM订单(包括历史订单) (USER_DATA) › 响应
All CM 订单
avgPriceAvg Price.
clientOrderIdClient Order ID.
cumBaseCum Base.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
origTypeOrig Type.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
pairPair.
timeorder time
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTimeupdate time
查看CM当前全部条件挂单 (USER_DATA)
查看CM当前全部条件挂单。 请小心使用不带symbol参数的调用
查看CM当前全部条件挂单 (USER_DATA) › 授权
查看CM当前全部条件挂单 (USER_DATA) › 请求权重
此端点消耗基于IP的请求权重。较重的端点会消耗更多您的IP速率限制容量。
请在限速说明章节中了解更多信息。
- 1 for a single
symbol - 40 when
symbolis omitted
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolrecvWindow查看CM当前全部条件挂单 (USER_DATA) › 响应
All 当前 CM 未完成Conditional 订单
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
bookTimeorder time
updateTime更新时间
timeInForceTime In Force.
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
查看当前全部CM挂单 (USER_DATA)
查看当前全部CM挂单,请小心使用不带symbol参数的调用
- 不带
symbol参数,会返回所有交易对的挂单
查看当前全部CM挂单 (USER_DATA) › 授权
查看当前全部CM挂单 (USER_DATA) › 请求权重
此端点消耗基于IP的请求权重。较重的端点会消耗更多您的IP速率限制容量。
请在限速说明章节中了解更多信息。
- 1 for a single
symbol - 40 when
symbolis omitted
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolpairrecvWindow查看当前全部CM挂单 (USER_DATA) › 响应
All 当前 CM 未完成订单
avgPriceAvg Price.
clientOrderIdClient Order ID.
cumBaseCum Base.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
origTypeOrig Type.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
pairPair.
timeorder time
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTimeupdate time
查看UM当前全部条件挂单 (USER_DATA)
查看UM当前全部条件挂单。
查看UM当前全部条件挂单 (USER_DATA) › 授权
查看UM当前全部条件挂单 (USER_DATA) › 请求权重
此端点消耗基于IP的请求权重。较重的端点会消耗更多您的IP速率限制容量。
请在限速说明章节中了解更多信息。
- 1 for a single
symbol - 40 when
symbolis omitted
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolrecvWindow查看UM当前全部条件挂单 (USER_DATA) › 响应
All 当前 UM 未完成Conditional 订单
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
bookTime条件单下单时间
updateTime更新时间
timeInForceTime In Force.
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
priceMatchPrice Match.
查看当前全部UM挂单 (USER_DATA)
查看当前全部UM挂单,请小心使用不带symbol参数的调用
查看当前全部UM挂单 (USER_DATA) › 授权
查看当前全部UM挂单 (USER_DATA) › 请求权重
此端点消耗基于IP的请求权重。较重的端点会消耗更多您的IP速率限制容量。
请在限速说明章节中了解更多信息。
- 1 for a single
symbol - 40 when
symbolis omitted
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolrecvWindow查看当前全部UM挂单 (USER_DATA) › 响应
All 当前 UM 未完成订单
avgPriceAvg Price.
clientOrderIdClient Order ID.
cumQuoteCum Quote.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
origTypeOrig Type.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
timeorder time
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTimeupdate time
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
priceMatchPrice Match.
查询杠杆账户的所有订单 (USER_DATA)
查询杠杆账户的所有订单
查询杠杆账户的所有订单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderIdstartTime起始时间
endTime结束时间
limit返回结果数量。
recvWindow赋值不能大于 60000
查询杠杆账户的所有订单 (USER_DATA) › 响应
All 杠杆 账户 订单
clientOrderIdClient Order ID.
cummulativeQuoteQtyCummulative Quote Qty.
executedQtyExecuted Qty.
icebergQtyIceberg Qty.
isWorkingIs Working.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
pricePrice.
sideSide.
status状态,枚举类型:completed 已完成,processing 处理中
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
time时间。
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTime更新时间
accountIdAccount ID.
selfTradePreventionModeself trading preventation mode
preventedMatchIdPrevented Match ID.
preventedQuantityPrevented Quantity.
查询UM所有条件订单(包括历史订单) (USER_DATA)
查询UM所有条件订单(包括历史订单)
查询UM所有条件订单(包括历史订单) (USER_DATA) › 授权
查询UM所有条件订单(包括历史订单) (USER_DATA) › 请求权重
此端点消耗基于IP的请求权重。较重的端点会消耗更多您的IP速率限制容量。
请在限速说明章节中了解更多信息。
- 1 for a single
symbol - 40 when
symbolis omitted
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolstrategyIdstartTime起始时间
endTime结束时间
limit返回结果数量。
recvWindow查询UM所有条件订单(包括历史订单) (USER_DATA) › 响应
All UM Conditional 订单
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
status条件单触发后普通单状态, 当条件单被触发后才有
bookTime条件单下单时间
updateTime更新时间
triggerTimeTrigger Time.
timeInForceTime In Force.
type条件单触发后普通订单类型
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
priceMatchPrice Match.
查询所有UM订单(包括历史订单) (USER_DATA)
查询所有UM订单
查询所有UM订单(包括历史订单) (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderIdstartTime起始时间
endTime结束时间
limit返回结果数量。
recvWindow查询所有UM订单(包括历史订单) (USER_DATA) › 响应
All UM 订单
avgPriceAvg Price.
clientOrderIdClient Order ID.
cumQuoteCum Quote.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
origTypeOrig Type.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
timeorder time
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTimeupdate time
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
priceMatchPrice Match.
查询CM条件单历史 (USER_DATA)
查询CM条件单历史
查询CM条件单历史 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
strategyIdnewClientStrategyIdrecvWindow查询CM条件单历史 (USER_DATA) › 响应
CM Conditional 订单 历史
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
status条件单触发后普通单状态, 当条件单被触发后才有
bookTime条件单下单时间
updateTime更新时间
triggerTimeTrigger Time.
timeInForceTime In Force.
type条件单触发后普通订单类型
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
workingTypeWorking Type.
priceProtectPrice Protect.
priceMatchPrice Match.
查询CM订单修改历史 (TRADE)
查询CM订单修改历史
查询CM订单修改历史 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderId系统订单号
origClientOrderId用户自定义的订单号
startTime起始时间
endTime结束时间
limit返回结果数量。
recvWindow查询CM订单修改历史 (TRADE) › 响应
CM Modify 订单 历史
amendmentId修改记录号
symbol交易对(如存在)。
pairPair.
orderId条件单触发后普通单id,当条件单被触发后才有
clientOrderIdClient Order ID.
time修改时间
Amendment.
Price.
beforeBefore.
afterAfter.
Orig Qty.
beforeBefore.
afterAfter.
count修改记数,代表该修改记录是这笔订单第几次修改
modifyId用户自定义的改单标识,仅当请求中传入时返回
查询CM当前条件挂单 (USER_DATA)
查询CM当前条件挂单
查询CM当前条件挂单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
strategyIdnewClientStrategyIdrecvWindow查询CM当前条件挂单 (USER_DATA) › 响应
当前 CM 未完成Conditional 订单
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
bookTime条件单下单时间
updateTime更新时间
timeInForceTime In Force.
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
查看当前全部CM挂单 (USER_DATA)
查看当前全部CM挂单,请小心使用不带symbol参数的调用
查看当前全部CM挂单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对。
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderId订单ID。
origClientOrderId用户自定义订单ID。
recvWindow查看当前全部CM挂单 (USER_DATA) › 响应
当前 CM 未完成订单
avgPriceAvg Price.
clientOrderIdClient Order ID.
cumBaseCum Base.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
origTypeOrig Type.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
pairPair.
timeorder time
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTimeupdate time
查询杠杆账户挂单记录 (USER_DATA)
查询杠杆账户挂单记录
查询杠杆账户挂单记录 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow赋值不能大于 60000
查询杠杆账户挂单记录 (USER_DATA) › 响应
当前 杠杆 未完成订单
clientOrderIdClient Order ID.
cummulativeQuoteQtyCummulative Quote Qty.
executedQtyExecuted Qty.
icebergQtyIceberg Qty.
isWorkingIs Working.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
pricePrice.
sideSide.
status状态,枚举类型:completed 已完成,processing 处理中
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
time时间。
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTime更新时间
accountIdAccount ID.
selfTradePreventionModeself trading preventation mode
preventedMatchIdPrevented Match ID.
preventedQuantityPrevented Quantity.
查询UM当前条件挂单 (USER_DATA)
查询UM当前条件挂单
查询UM当前条件挂单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
strategyIdnewClientStrategyIdrecvWindow查询UM当前条件挂单 (USER_DATA) › 响应
当前 UM 未完成Conditional 订单
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
bookTime条件单下单时间
updateTime更新时间
timeInForceTime In Force.
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
priceMatchPrice Match.
查询当前UM挂单 (USER_DATA)
查询当前UM挂单
查询当前UM挂单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderIdorigClientOrderIdrecvWindow查询当前UM挂单 (USER_DATA) › 响应
当前 UM 未完成订单
avgPriceAvg Price.
clientOrderIdClient Order ID.
cumQuoteCum Quote.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
origQtyOrig Qty.
origTypeOrig Type.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
status状态,枚举类型:completed 已完成,processing 处理中
symbol交易对(如存在)。
timeorder time
timeInForceTime In Force.
type条件单触发后普通订单类型
updateTime更新时间
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
priceMatchPrice Match.
查询特定杠杆账户所有 OCO (USER_DATA)
根据提供的可选参数检索特定杠杆账户所有的 OCO 订单。
查询特定杠杆账户所有 OCO (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
fromId起始成交 ID。
startTime起始时间
endTime结束时间
limit返回结果数量。
recvWindow赋值不能大于 60000
查询特定杠杆账户所有 OCO (USER_DATA) › 响应
杠杆 账户's all OCO
orderListIdOrder List ID.
contingencyTypeContingency Type.
listStatusTypeList Status Type.
listOrderStatusList Order Status.
listClientOrderIdList Client Order ID.
transactionTimeTransaction Time.
symbol交易对(如存在)。
Orders.
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
clientOrderIdClient Order ID.
查询杠杆账户 OCO 挂单 (USER_DATA)
查询杠杆账户 OCO 挂单
查询杠杆账户 OCO 挂单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow赋值不能大于 60000
查询杠杆账户 OCO 挂单 (USER_DATA) › 响应
杠杆 账户's 未完成OCO
orderListIdOrder List ID.
contingencyTypeContingency Type.
listStatusTypeList Status Type.
listOrderStatusList Order Status.
listClientOrderIdList Client Order ID.
transactionTimeTransaction Time.
symbol交易对(如存在)。
Orders.
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
clientOrderIdClient Order ID.
查询UM条件单历史 (USER_DATA)
查询UM条件单历史
查询UM条件单历史 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
strategyIdnewClientStrategyIdrecvWindow查询UM条件单历史 (USER_DATA) › 响应
UM Conditional 订单 历史
newClientStrategyIdNew Client Strategy ID.
strategyIdStrategy ID.
strategyStatusStrategy Status.
strategyTypeStrategy Type.
origQtyOrig Qty.
pricePrice.
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
stopPriceplease ignore when order type is TRAILING_STOP_MARKET
symbol交易对(如存在)。
orderId条件单触发后普通单id,当条件单被触发后才有
status条件单触发后普通单状态, 当条件单被触发后才有
bookTime条件单下单时间
updateTime更新时间
triggerTimeTrigger Time.
timeInForceTime In Force.
type条件单触发后普通订单类型
activatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
workingTypeWorking Type.
priceProtectPrice Protect.
selfTradePreventionModeself trading preventation mode
goodTillDateorder pre-set auot cancel time for TIF GTD order
查询UM订单修改历史 (TRADE)
查询UM订单修改历史
查询UM订单修改历史 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
orderId系统订单号
origClientOrderId用户自定义的订单号
startTime起始时间
endTime结束时间
limit返回结果数量。
recvWindow查询UM订单修改历史 (TRADE) › 响应
UM Modify 订单 历史
amendmentId修改记录号
symbol交易对(如存在)。
pairPair.
orderId条件单触发后普通单id,当条件单被触发后才有
clientOrderIdClient Order ID.
time修改时间
Amendment.
Price.
beforeBefore.
afterAfter.
Orig Qty.
beforeBefore.
afterAfter.
count修改记数,代表该修改记录是这笔订单第几次修改
modifyId用户自定义的改单标识,仅当请求中传入时返回
priceMatchPrice Match.
用户CM强平单历史 (USER_DATA)
查询用户CM强平单历史
用户CM强平单历史 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolautoCloseTypeLIQUIDATION: 强平单, ADL: ADL 减仓单.
startTime起始时间
endTime结束时间
limit返回结果数量。
recvWindow赋值不能超过 60000
用户CM强平单历史 (USER_DATA) › 响应
用户's CM Force 订单
orderId条件单触发后普通单id,当条件单被触发后才有
symbol交易对(如存在)。
pairPair.
status状态,枚举类型:completed 已完成,processing 处理中
clientOrderIdClient Order ID.
pricePrice.
avgPriceAvg Price.
origQtyOrig Qty.
executedQtyExecuted Qty.
cumBaseCum Base.
timeInForceTime In Force.
type条件单触发后普通订单类型
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
origTypeOrig Type.
time时间。
updateTime更新时间
获取账户杠杆强制平仓记录 (USER_DATA)
获取账户杠杆强制平仓记录
获取账户杠杆强制平仓记录 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
startTime起始时间
endTime结束时间
current当前页码。
size返回结果数量。
recvWindow赋值不能大于 60000
获取账户杠杆强制平仓记录 (USER_DATA) › 响应
用户's 杠杆 Force 订单
Rows.
avgPriceAvg Price.
executedQtyExecuted Qty.
orderId条件单触发后普通单id,当条件单被触发后才有
pricePrice.
qtyQty.
sideSide.
symbol交易对(如存在)。
timeInForceTime In Force.
updatedTimeUpdated Time.
totalTotal.
用户强平单历史 (USER_DATA)
查询用户UM强平单历史
用户强平单历史 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolautoCloseTypeLIQUIDATION: 强平单, ADL: ADL 减仓单.
startTime起始时间
endTime结束时间
limit返回结果数量。
recvWindow赋值不能超过 60000
用户强平单历史 (USER_DATA) › 响应
用户's UM Force 订单
orderId条件单触发后普通单id,当条件单被触发后才有
symbol交易对(如存在)。
status状态,枚举类型:completed 已完成,processing 处理中
clientOrderIdClient Order ID.
pricePrice.
avgPriceAvg Price.
origQtyOrig Qty.
executedQtyExecuted Qty.
cumQuoteCum Quote.
timeInForceTime In Force.
type条件单触发后普通订单类型
reduceOnlyReduce Only.
sideSide.
positionSideBOTH means that it is the position of One-way Mode
origTypeOrig Type.
time时间。
updateTime更新时间
UM账户成交历史 (USER_DATA)
获取UM某交易对的成交历史
UM账户成交历史 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
startTime起始时间
endTime结束时间
fromId起始成交 ID。
limit返回结果数量。
recvWindowUM账户成交历史 (USER_DATA) › 响应
UM 账户 交易 列表
symbol交易对(如存在)。
idID.
orderId条件单触发后普通单id,当条件单被触发后才有
sideSide.
pricePrice.
qtyQty.
realizedPnlRealized Pnl.
quoteQtyQuote Qty.
commissionCommission.
commissionAssetCommission Asset.
time时间。
buyerBuyer.
makerMaker.
positionSideBOTH means that it is the position of One-way Mode
UM持仓ADL队列估算 (USER_DATA)
查询UM持仓ADL队列估算
- 每30秒更新数据
- 队列分数0,1,2,3,4,分数越高说明在ADL队列中的位置越靠前
- 对于单向持仓模式或者是逐仓状态下的双向持仓模式的交易对,会返回 "LONG", "SHORT" 和 "BOTH" 分别表示不同持仓方向上持仓的adl队列分数
- 对于全仓状态下的双向持仓模式的交易对,会返回 "LONG", "SHORT" 和 "HEDGE", 其中"HEDGE"的存在仅作为标记;其中如果多空均有持仓的情况下,"LONG"和"SHORT"返回共同计算后相同的队列分数。
UM持仓ADL队列估算 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
symbolrecvWindowUM持仓ADL队列估算 (USER_DATA) › 响应
UM 持仓 ADL Quantile Estimation
symbol交易对(如存在)。
Adl Quantile.
LONG双开模式下多头持仓的ADL队列估算分
SHORT双开模式下空头持仓的ADL队列估算分
BOTH单开模式下持仓的ADL队列估算分
UM条件单下单 (TRADE)
UM条件单下单
UM条件单下单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
UM条件单下单 (TRADE) › 请求体
algoType仅支持 CONDITIONAL
symbolsidetype条件订单类型
quantity下单数量
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
positionSide单向持仓模式下默认且仅可填BOTH;双向持仓模式下必填,仅可选择 LONG 或 SHORT
timeInForceprice委托价格
triggerPrice触发价
workingType触发类型,默认 CONTRACT_PRICE
priceMatch不能与 price 同时传
priceProtect条件单触发保护,默认 false
reduceOnly非双开模式下默认false;双开模式下不接受此参数
activatePrice追踪止损激活价格,仅TRAILING_STOP_MARKET需要
callbackRate追踪止损回调比例,范围[0.1, 10],1代表1%
clientAlgoId用户自定义的条件订单号,不可以重复出现在挂单中
newOrderRespTypeselfTradePreventionModegoodTillDateTIF为GTD时订单的自动取消时间,当timeInForce为GTD时必传
recvWindowUM条件单下单 (TRADE) › 响应
UM条件单下单
algoIdclientAlgoIdalgoTypeorderTypesymbolsidepositionSidetimeInForcequantityalgoStatustriggerPricepriceselfTradePreventionModeworkingTypepriceMatchpriceProtectreduceOnlyactivatePricecallbackRatecreateTimeupdateTimetriggerTimegoodTillDateUM撤销条件订单 (TRADE)
撤销条件订单
UM撤销条件订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
algoId系统订单号
clientAlgoId用户自定义的订单号
recvWindowUM撤销条件订单 (TRADE) › 响应
UM撤销条件订单
completeUM撤销全部条件订单 (TRADE)
UM撤销全部条件订单
UM撤销全部条件订单 (TRADE) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symbol交易对
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindowUM撤销全部条件订单 (TRADE) › 响应
UM撤销全部条件订单
codemsg查询UM当前条件挂单 (USER_DATA)
查询UM条件订单状态。如果订单状态为 CANCELED 或 EXPIRED 且无成交记录且创建时间超过3天,或创建时间超过90天,将不会被查询到。
查询UM当前条件挂单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
algoId系统订单号
clientAlgoId用户自定义的订单号
recvWindow查询UM当前条件挂单 (USER_DATA) › 响应
查询UM当前条件挂单
algoIdclientAlgoIdalgoTypeorderTypesymbolsidepositionSidetimeInForcequantityalgoStatusactualOrderIdactualPricetriggerPricepriceselfTradePreventionModeworkingTypepriceMatchclosePositionpriceProtectreduceOnlycreateTimeupdateTimetriggerTimegoodTillDate查看UM当前全部条件挂单 (USER_DATA)
查看当前全部条件挂单。不带symbol参数,会返回所有交易对的挂单。
查看UM当前全部条件挂单 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
algoTypesymbolalgoIdrecvWindow查看UM当前全部条件挂单 (USER_DATA) › 响应
查看UM当前全部条件挂单
algoIdclientAlgoIdalgoTypeorderTypesymbolsidepositionSidetimeInForcequantityalgoStatustriggerPricepriceselfTradePreventionModeworkingTypepriceMatchclosePositionpriceProtectreduceOnlycreateTimeupdateTimetriggerTimegoodTillDate查询UM条件单历史 (USER_DATA)
查询UM条件单历史
查询UM条件单历史 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
查询参数
symboltimestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
algoId只返回此orderID及之后的订单,缺省返回最近的订单
startTimeendTimelimit默认值:500 最大值:1000
recvWindow查询UM条件单历史 (USER_DATA) › 响应
查询UM条件单历史
algoIdclientAlgoIdalgoTypeorderTypesymbolsidepositionSidetimeInForcequantityalgoStatusactualOrderIdactualPricetriggerPricepriceselfTradePreventionModeworkingTypepriceMatchclosePositionpriceProtectreduceOnlycreateTimeupdateTimetriggerTimegoodTillDate传统金融合约协议 (USER_DATA)
签署传统金融合约协议
传统金融合约协议 (USER_DATA) › 授权
请求头
X-MBX-APIKEY访问此接口需要 API Key,并且必须在请求头中携带。关于如何创建 API Key,请参考:https://www.binance.com/cn/support/faq/detail/360002502072。
传统金融合约协议 (USER_DATA) › 请求体
timestamp用于请求签名的 Unix 时间戳,单位为毫秒. 该值必须反映客户端当前时间,并会在签名接口中由服务器进行校验.
recvWindow传统金融合约协议 (USER_DATA) › 响应
传统金融合约协议
codemsg