diff --git a/app.js b/app.js index 680f62d..7f9cbd6 100644 --- a/app.js +++ b/app.js @@ -49,7 +49,7 @@ wsGdax.on('message', function(data) { if(change[2] === '0') { delete orderBook.bids[change[1]]; } else { - pos = bs.closest(array_keys(orderBook.bids), change[2]); + pos = bs.closest(array_keys(orderBook.bids), change[1]); tmp = new array(); tmp[change[1]] = change[2];