aboutsummaryrefslogtreecommitdiffstats
path: root/lib/binance.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-07-20 21:16:16 -0700
committerAdam Soltys <[email protected]>2020-07-20 21:16:16 -0700
commit5a15eb109b6ddd8232abfecaafc7d8ba7ada14ab (patch)
tree04575adc8c837413bb9c743cfb2234ec95d76bbb /lib/binance.js
parent1bbf30a5ece3b361ac5eb00da052fa63cbc91a2e (diff)
downloadcoinos-server-5a15eb109b6ddd8232abfecaafc7d8ba7ada14ab.tar.gz
coinos-server-5a15eb109b6ddd8232abfecaafc7d8ba7ada14ab.zip
atomic swaps
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);
}
};