From fd1069819e5bf79abc86f8baa266bd807625ffdd Mon Sep 17 00:00:00 2001 From: JFD3D Date: Wed, 17 Aug 2016 23:46:37 -0700 Subject: [PATCH] Fix Altcoin/BTC Pair Graph --- config.js | 10 ++++++---- plugins/server/controllers/data.js | 8 ++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/config.js b/config.js index be2243906f..b3272b2670 100644 --- a/config.js +++ b/config.js @@ -13,13 +13,14 @@ c.mongo_password = null c.assets = [ "BTC", //"ETH", - //"LTC", + "LTC", ] c.currencies = [ //"CNY", //"EUR", "USD", - "USDT" + "USDT", + "BTC" ] // will require(plugins/{name}/_codemap or {name}/_codemap) // to watch an exchange, uncomment it from the list below. @@ -27,7 +28,7 @@ c.enabled_plugins = [ //"bitfinex", "gdax", //"kraken", - //"poloniex", + "poloniex", "server" ] @@ -45,7 +46,8 @@ c.graph_limits = [50, 100, 150, 200, 300, 500, 1000, 2000] c.graph_selectors = [ "gdax.BTC-USD", //"kraken.BTC-USD", - //"poloniex.BTC-USDT", + "poloniex.BTC-USDT", + "poloniex.LTC-BTC", //"bitfinex.BTC-USD", ] c.log_query_limit = 200 diff --git a/plugins/server/controllers/data.js b/plugins/server/controllers/data.js index 24de3397ae..42418661d6 100644 --- a/plugins/server/controllers/data.js +++ b/plugins/server/controllers/data.js @@ -84,10 +84,10 @@ module.exports = function container (get, set) { var asset = selector.split('.')[1].split('-')[0] var line = [ tick.time, - n(x.open).format('0.00'), - n(x.high).format('0.00'), - n(x.low).format('0.00'), - n(x.close).format('0.00'), + n(x.open).format('0.00000000'), + n(x.high).format('0.00000000'), + n(x.low).format('0.00000000'), + n(x.close).format('0.00000000'), x.volume, format_currency(x.close, currency) + ' ' + asset + '/' + currency + ' (' + exchange + ')' ].join(',')