Skip to content

Commit b2b0684

Browse files
Merge branch 'master' of github.com:greatwitenorth/insight-api
2 parents 2cc8545 + 36bb5a0 commit b2b0684

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/controllers/currency.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ exports.index = function(req, res) {
4343
if (bitstampRate === 0 || currentTime >= (timestamp + delay)) {
4444
timestamp = currentTime;
4545

46-
_request('https://www.bitstamp.net/api/ticker/', function(err, data) {
47-
if (!err) bitstampRate = parseFloat(JSON.parse(data).last);
46+
_request('https://www.cryptonator.com/api/ticker/aur-usd', function(err, data) {
47+
if (!err) bitstampRate = parseFloat(JSON.parse(data)['ticker']['price']);
4848

4949
res.jsonp({
5050
status: 200,

config/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var home = process.env.INSIGHT_DB || (getUserHome() + '/.insight');
2424
if (process.env.INSIGHT_NETWORK === 'livenet') {
2525
env = 'livenet';
2626
db = home;
27-
port = '3001';
27+
port = '3000';
2828
b_port = '12341';
2929
p2p_port = '12340';
3030
} else {

0 commit comments

Comments
 (0)