diff options
Diffstat (limited to 'lib/binance.js')
| -rw-r--r-- | lib/binance.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/binance.js b/lib/binance.js index aa6364c8..55b29ee8 100644 --- a/lib/binance.js +++ b/lib/binance.js @@ -7,7 +7,7 @@ module.exports = () => { try { let msg = JSON.parse(event.data); - let fx = app.get("fxrates"); + let fx = app.get("fx"); if (!fx) return; let rates = {}; @@ -16,7 +16,8 @@ module.exports = () => { }); app.set("ask", msg.a); - app.set("last", msg.l); + app.set("bid", msg.b); + app.set("last", msg.c); app.set("balance", await lq.getBalance()); app.set("rates", rates); checkQueue(); |
