From 14f944f953dd59106821c9244a89c4eb4a956758 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 5 Aug 2020 13:38:16 -0700 Subject: send single usd rate --- lib/binance.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/binance.js') 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(); -- cgit v1.2.3