Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Fix Altcoin/BTC Pair Graph #28

Merged
merged 1 commit into from
Aug 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@ 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.
c.enabled_plugins = [
//"bitfinex",
"gdax",
//"kraken",
//"poloniex",
"poloniex",
"server"
]

Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions plugins/server/controllers/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(',')
Expand Down