-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
fix tokenomics error #2155
fix tokenomics error #2155
Conversation
ahah we just pushed exactly at the same time a fix to this error 😄 |
@jose-donato oh really!? :D glad it's working, looking forward to find & fix more bugs :p |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before fixing the linting/tests, can you just update this line on messari_view.py to merged_df['circulating_supply']
instead of merged_df['values']
?
i will close my PR and we can work on yours. thanks 🚀
Sure! I'll do it now! |
…BTerminal into fix/tokenomicsDisplay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good now. we just need to fix the tests/linting.
do you need any help on setting the pre-commit hooks for the linting?
to fix the tests you only need to run:
pytest tests/openbb_terminal/cryptocurrency/test_cryptocurrency_helpers.py --record-mode=rewrite
this will update the tests that are failing
im getting this error, |
@jose-donato im trying |
also, i'd need help setting up the pre commit hooks for the linting... |
Hey @jaymgonzalez , Can you do this in your environment And then you can uninstall it with This is necessary for generating the tests, so that there are no new tests created due to the installation of this package. To set the pre-commit hook you can run |
Hey @DidierRLopes, thanks for your comment, I installed |
you need to run |
…BTerminal into fix/tokenomicsDisplay
hey @jose-donato, i run the command you posted in the comment before and it fixed |
Hey, thanks for your effort! |
yes i did, i just re run it and try again! 😄 |
If it does not work I can try figure it out tomorrow. |
…BTerminal into fix/tokenomicsDisplay
yeah i tried again and it didnt work 🤷🏽♂️ if you can have a look tomorrow and let me know if there is anything else i can do to help 😄 just joined the discord! where do you usually you hang out in there? |
Feel free to join us on any channel (perhaps #develop) and tag us: Didier & 1lluz10n |
Description
When trying to get the tokenomics info for any assets I was faced with this error.
The first change I made was to force the symbol to lower case which made the
not found on coingecko
error disappear but the it complained about the ID.Error: {'error': 'Could not find coin with the given id'}
Which was fixed by passing the coingecko ID to
get_coin_tokenomics()
function instead of the symbol.This fixes made tokenomic info appear but there is still an issue when displaying the data in a graph, which I need more time to understand and investigate.
How has this been tested?
Manual testing only
crypto / load [ANY] / dd / tk
Checklist:
Others
pre-commit install
.pytest tests/...
. -> getting this errorUninstall brotli and brotlipy before running tests
, not sure if i should uninstall the packages