diff --git a/lib/database.js b/lib/database.js index c8c0f240e..f052b2854 100644 --- a/lib/database.js +++ b/lib/database.js @@ -161,9 +161,9 @@ function save_tx(txid, blockheight, cb) { } function get_market_data(market, cb) { - if(fs.existsSync('./markets/' + market + '.js')){ + if(fs.existsSync('./lib/markets/' + market + '.js')){ exMarket = require('./markets/' + market); - exMarket.get_data(settings.markets, function(err, obj){ + exMarket.get_data(settings.markets.coin, settings.markets.exchange, function(err, obj){ return cb(err, obj); }); }else{