aboutsummaryrefslogtreecommitdiffstats
path: root/lib/binance.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/binance.js')
-rw-r--r--lib/binance.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/binance.js b/lib/binance.js
index 1951d820..aa6364c8 100644
--- a/lib/binance.js
+++ b/lib/binance.js
@@ -15,9 +15,13 @@ module.exports = () => {
rates[symbol] = msg.c * fx[symbol];
});
+ app.set("ask", msg.a);
+ app.set("last", msg.l);
+ app.set("balance", await lq.getBalance());
app.set("rates", rates);
+ checkQueue();
} catch (e) {
- l.error("binance socket error", e);
+ l.error("binance socket error", e.message);
}
};