소스 검색

修复错误

龚成明 2 년 전
부모
커밋
463349043a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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') {