ソースを参照

0成交不绘制

skyffire 1 年間 前
コミット
d9a16f09cb
1 ファイル変更4 行追加0 行削除
  1. 4 0
      src/index.js

+ 4 - 0
src/index.js

@@ -645,6 +645,10 @@ export default class StockHeatmap extends React.Component {
       this.circles = []
       this.windowedData.map(d => {
         const marketDepth = d.marketDepth;
+        if (+marketDepth.lastTradedQty === 0) {
+          return
+        }
+
         const ask1 = marketDepth.sells[0];
         const bid1 = marketDepth.buys[0];
         const ts = d.ts;