Kaynağa Gözat

0成交不绘制

skyffire 1 yıl önce
ebeveyn
işleme
d9a16f09cb
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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;