Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to display 0.0000xx prices #27

Open
PDM78 opened this issue Nov 18, 2021 · 2 comments
Open

Need to display 0.0000xx prices #27

PDM78 opened this issue Nov 18, 2021 · 2 comments

Comments

@PDM78
Copy link

PDM78 commented Nov 18, 2021

I'm looking to display prices that are a few decimal places to the right. Unfortunately, the code does not display JASMY price, instead just a 0.00. Is there a way to show the full price?

Thanks in advance.

Phil.

@davidchung-coin-cloud
Copy link

I was able to do this by modifying this line:

price = f"{cur_symbol}{data[cur]:,.2f}"

in price_apis.py, to read:

price = f"{cur_symbol}{data[cur]:,.8g}"

I did this on line 180 because I'm using CoinGecko. You could do the same on line 116 if you are using coinmarketcap.

@uahekker
Copy link

uahekker commented Feb 2, 2022

thanks that helped

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

No branches or pull requests

3 participants