Parcourir la source

0成交不绘制

skyffire il y a 1 an
Parent
commit
d9a16f09cb
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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;