Skip to content

Commit

Permalink
minimize this check to kraken users, see askmike#203
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Feb 10, 2014
1 parent 53ee2c4 commit b5ab125
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gekko.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ if(!config.profitSimulator.slippage)
// temp at Sun Feb 9 17:13:45 CET 2014
if(!config.DEMA.thresholds)
util.die('Please update your config!');

// see @link:
// https://github.com/askmike/gekko/issues/202
try {
require('kraken-api');
// only worry about this when the user wants to watch kraken
if(config.watch.exchange.toLowerCase() === 'kraken')
require('kraken-api');
} catch(err) {
util.die('Kraken module cannot be found, if you are on Windows read this:\n\nhttps://github.com/askmike/gekko/issues/202');
}
Expand Down

0 comments on commit b5ab125

Please sign in to comment.