-
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
Bug/crypto defi vaults command broken #1822 #1874
Bug/crypto defi vaults command broken #1822 #1874
Conversation
…ing bout not verified request url
import pandas as pd | ||
import requests | ||
|
||
from openbb_terminal.decorators import log_start_end | ||
from openbb_terminal.helper_funcs import get_user_agent | ||
|
||
|
||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) |
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.
To disable Insecure Request Warning I disabled it on coindix_model level, but maybe it should be moved to some more flags/config related place ?
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.
For now I think this looks good yea!
Welcome back @JakubPluta 🚀 For the tests you can do
|
Thanks Didier, I have to get used to the current structure of the project, as it changed a "little" from my last PR :) |
the tests should pass once this #1885 is merged |
…ance#1874) * Add separate view for finbrain for crypto curreny sentiment analysis * Move json with symbols to separate directory, little refactoring, update readme * Add screenshot of finbrain for PolkaDot * Fix defi coindix vaults. Risk param is disabled. Disable urllib3 warning bout not verified request url * update tests for coindix - cassetes, csvs, txts * update vaults docs * Update _index.md * run crypto tests with record_mode=rewrite Co-authored-by: didierlopes.eth <[email protected]>
Description
Coindix changed their API spec. Now endpoint
https://apiv2.coindix.com/search
doesn't take as query parameterrisk
keyword, and also it's not returned in response. Also as get request to mentioned endpoint has flag:response = requests.get(..., verify=False)
it screams with urllib3 warnings. That`s why I also disabled this warning in stdout. For now it's in[Bug] Crypto/DeFi/Vaults - Command appears to be broken #1822
Before fix:
After fix.
How has this been tested?
Checklist:
Others
pre-commit install
.pytest tests/...
.