龚成明 2 gadi atpakaļ
vecāks
revīzija
463349043a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      scripts/one-pro.js

+ 1 - 1
scripts/one-pro.js

@@ -88,7 +88,7 @@ const orderHandler = async function(context, task) {
         const cummulativeQuoteQty = NumKit.getSubFloat(buyRst.cummulativeQuoteQty, 6)
         // 计算扣除手续费后的实际成交数量
         let executedQty = 0
-        for (const fill of orderRst.fills) {
+        for (const fill of buyRst.fills) {
           executedQty += parseFloat(fill.qty)
           // 扣除支付的手续费
           if (fill.commissionAsset === 'HOOK') {