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

Commit

Permalink
colors for balance cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodriguez committed Jun 11, 2017
1 parent e0bcc17 commit b715eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function container (get, set, clear) {
if (err) throw err
s.exchange.getQuote(s, function (err, quote) {
if (err) throw err
var bal = s.product_id + ' Asset: ' + balance.asset + ' Currency: ' + balance.currency + ' Total: ' + n(balance.asset).multiply(quote.ask).add(balance.currency).value()
var bal = (s.product_id + ' Asset: ').grey + balance.asset.white + ' Currency: '.grey + balance.currency.yellow + ' Total: '.grey + n(balance.asset).multiply(quote.ask).add(balance.currency).value().toString().yellow
console.log(bal)
process.exit()
})
Expand Down

0 comments on commit b715eeb

Please sign in to comment.