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

Dashboard: showing 8 (customizable?) decimal points #1498

Open
DrMabuse-2017 opened this issue Mar 13, 2018 · 5 comments
Open

Dashboard: showing 8 (customizable?) decimal points #1498

DrMabuse-2017 opened this issue Mar 13, 2018 · 5 comments

Comments

@DrMabuse-2017
Copy link

System information

  • **OS Platform and Distribution (Linux Debian 9.3 amd64):
  • **Zenbot version (version 4.1.0):
  • **Zenbot branch lattest:
  • **NodeJS version v8.10.0:
  • **Python version (when using a python script) no:
  • **Exact command to reproduce (include everything) Dashboard:
  • Did I make any changes to conf-sample.js?:

Hello guys...
The zenbot works very well.

I have a small problem.
In the dashboard, some numbers are only with 7 decimal numbers.

Example for a small crypto:
TRX 0.0000039
Better for me are 8 decimal numbers: 0.00000394, 0.00000398 etc.

This is in several places on the dashboard like this:

  • in the Current Market: Price, Ask, Bid
  • in my trades: Price, Total
  • in the chart on the right: Price

Please see screenshot with the red markings.

How can I extend the decimal numbers to 8 ?

Many Thanks
Mario

decimal_7

@ZeroCool940711
Copy link

At least it works for you, if I try to go to the dashboard I only get a blank page with a little bit of text at random places and nothing makes sense xD

@DeviaVir DeviaVir changed the title I have a small problem with the dashboard view Dashboard: showing 8 (customizable?) decimal points Mar 14, 2018
@DrMabuse-2017
Copy link
Author

@ZeroCool940711
I think that some resources are not loaded.
Look in the debugger console of the browser

@ZeroCool940711
Copy link

ZeroCool940711 commented Mar 14, 2018

@DrMabuse-2017 I get this error on the console.

Edit: I managed to fix it, after taking a look at Issue #1176 , what fixed the problem was using
npm install --unsafe-perm
I think that should be added to the readme.md under a section called "Troubleshooting" or something, I see a lot of people having that same problem and if its a known problem I think the best for everyone will be to add it somewhere where everybody can see the fix.

@sarcos
Copy link

sarcos commented Mar 23, 2018

About this issue : you can change the decimal points values in /templates/dashboard.ejs, line 76 for example, the parameter you want to change is : maximumFractionDigits

@DrMabuse-2017
Copy link
Author

@sarcos
I know that.
But the number has already been rounded before. The dashboard is only a view from existing result

Example:
Real crypt price in BTC: 0.00000569
Dashboard price in BTC: 0.0000057

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants