龚成明 hace 2 años
padre
commit
463349043a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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') {