Skip to content

Commit a2c4153

Browse files
committed
Fixes #745
1 parent 0d0a4cd commit a2c4153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node-binance-api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,14 +2498,14 @@ let api = function Binance( options = {} ) {
24982498
let updateDepthCache = () => {
24992499
Binance.depthCache[symbol].eventTime = depth.E;
25002500
for ( obj of depth.b ) { //bids
2501-
if ( obj[1] === '0.00000000' ) {
2501+
if ( obj[1] == 0 ) {
25022502
delete Binance.depthCache[symbol].bids[obj[0]];
25032503
} else {
25042504
Binance.depthCache[symbol].bids[obj[0]] = parseFloat( obj[1] );
25052505
}
25062506
}
25072507
for ( obj of depth.a ) { //asks
2508-
if ( obj[1] === '0.00000000' ) {
2508+
if ( obj[1] == 0 ) {
25092509
delete Binance.depthCache[symbol].asks[obj[0]];
25102510
} else {
25112511
Binance.depthCache[symbol].asks[obj[0]] = parseFloat( obj[1] );

0 commit comments

Comments
 (0)