diff options
| author | Adam Soltys <[email protected]> | 2020-08-05 13:38:16 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-08-05 13:38:16 -0700 |
| commit | 14f944f953dd59106821c9244a89c4eb4a956758 (patch) | |
| tree | 0e824a9d93ea9fb957bab49f3724f6a52ac7102d /lib/binance.js | |
| parent | fa3c3306ea8c9f1faf0f0c1f7428bd47a48b41d4 (diff) | |
| download | coinos-server-14f944f953dd59106821c9244a89c4eb4a956758.tar.gz coinos-server-14f944f953dd59106821c9244a89c4eb4a956758.zip | |
send single usd rate
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(); |
