Exchange-Order

如何在 Bittrex API 中獲取訂單狀態

  • December 25, 2017

getOrder使用API​​時如何知道訂單狀態?

要求:

https://bittrex.com/api/v1.1/account/getorder&uuid=<uuid>

範例響應:

{
"success" : true,
"message" : "",
"result" : {
   "AccountId" : null,
   "OrderUuid" : "0cb4c4e4-bdc7-4e13-8c13-430e587d2cc1",
   "Exchange" : "BTC-SHLD",
   "Type" : "LIMIT_BUY",
   "Quantity" : 1000.00000000,
   "QuantityRemaining" : 1000.00000000,
   "Limit" : 0.00000001,
   "Reserved" : 0.00001000,
   "ReserveRemaining" : 0.00001000,
   "CommissionReserved" : 0.00000002,
   "CommissionReserveRemaining" : 0.00000002,
   "CommissionPaid" : 0.00000000,
   "Price" : 0.00000000,
   "PricePerUnit" : null,
   "Opened" : "2014-07-13T07:45:46.27",
   "Closed" : null,
   "IsOpen" : true,
   "Sentinel" : "6c454604-22e2-4fb4-892e-179eede20972",
   "CancelInitiated" : false,
   "ImmediateOrCancel" : false,
   "IsConditional" : false,
   "Condition" : "NONE",
   "ConditionTarget" : null
}}

您可以使用響應 json 中的此欄位來了解訂單是否已完成

QuantityRemaining

這個文件告訴訂單是打開還是關閉

IsOpen

它非常不言自明。如果您想了解更多資訊,請發表評論。

引用自:https://bitcoin.stackexchange.com/questions/66319