Skip to content
This repository was archived by the owner on Feb 16, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
A couple of log cleanups
  • Loading branch information
mlmurray committed Feb 11, 2014
commit 9f2da0eff02ed0a2da1ac0fd461279bc760876f5
3 changes: 1 addition & 2 deletions exchanges/cryptsy.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Trader.prototype.getPortfolio = function(callback) {
var curr_balance, asst_balance;
var curr = this.currency;
var asst = this.asset;
log.debug('Get Portfolio with asset ', asst, 'and currency ', curr);

var calculate = function(data) {
if(!data)
return this.retry(this.getPortfolio, args, null);
Expand Down Expand Up @@ -241,7 +241,6 @@ Trader.prototype.getPortfolio = function(callback) {
Trader.prototype.getTicker = function(callback) {

var mkt_name = this.market;
log.debug('Get Ticker');
var set = function(err, data) {
log.debug('Timestamp is', data.datetime, 'with bid ', data.bid, 'and ask ', data.ask);
var ticker = {
Expand Down
4 changes: 2 additions & 2 deletions plugins/trader.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Trader.prototype.processAdvice = function(advice) {
log.info(
'Trader',
'Received advice to go long',
'Buying ', config.trader.asset
'Buying', config.trader.asset
);
} else if(advice.recommandation == 'short') {
this.manager.trade('SELL');
log.info(
'Trader',
'Received advice to go short',
'Selling ', config.trader.asset
'Selling', config.trader.asset
);
}
}
Expand Down