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

Add a bit more data and reformat the balance command #535

Merged
merged 2 commits into from
Sep 11, 2017
Merged

Add a bit more data and reformat the balance command #535

merged 2 commits into from
Sep 11, 2017

Conversation

cmroche
Copy link
Contributor

@cmroche cmroche commented Sep 10, 2017

This allows us to see the available balance, handy when you want to make manual trades.

This allows us to see the available balance, handy when you want to make manual trades.
var bal = moment().format('YYYY-MM-DD HH:mm:ss').grey + ' ' + engine.formatCurrency(quote.ask, true, true, false)
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

var bal = moment().format('YYYY-MM-DD HH:mm:ss').grey + ' ' + engine.formatCurrency(quote.ask, true, true, false) + (s.product_id).grey + '\n'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct to var bal = moment().format('YYYY-MM-DD HH:mm:ss').grey + ' ' + engine.formatCurrency(quote.ask, true, true, false) + ' ' + (s.product_id).grey + '\n'

need space between quote.ask and product_id

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, good catch.

@DeviaVir DeviaVir merged commit 977d512 into DeviaVir:master Sep 11, 2017
supersabbath pushed a commit to supersabbath/zenbot that referenced this pull request Oct 2, 2017
* Add a bit more data and reformat the balance command

This allows us to see the available balance, handy when you want to make manual trades.

* Added back missing space between ask and pair
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants