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

fixing equity report issue #4922

Merged
merged 6 commits into from
May 4, 2023
Merged

fixing equity report issue #4922

merged 6 commits into from
May 4, 2023

Conversation

andrewkenreich
Copy link
Contributor

@andrewkenreich andrewkenreich commented Apr 27, 2023

Description

This fixes the equity reports - a SDK command was deleted and new one wasn't being used

  • Summary of the change / bug fix.
  • Link # issue, if applicable.
  • Screenshot of the feature or the bug before/after fix, if applicable.
  • Relevant motivation and context.
  • List any dependencies that are required for this change.

How has this been tested?

  • Please describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • Please also list any relevant details for your test configuration.
  • Make sure affected commands still run in terminal
  • Ensure the SDK still works
  • Check any related reports

Checklist:

Others

  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.

@reviewpad reviewpad bot added the feat XS Extra small feature label Apr 27, 2023
@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Patch coverage: 42.44% and project coverage change: -0.21 ⚠️

Comparison is base (df9a154) 58.29% compared to head (67f12fc) 58.08%.

❗ Current head 67f12fc differs from pull request most recent head 2066446. Consider uploading reports for the commit 2066446 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4922      +/-   ##
===========================================
- Coverage    58.29%   58.08%   -0.21%     
===========================================
  Files          588      588              
  Lines        53666    53687      +21     
===========================================
- Hits         31283    31183     -100     
- Misses       22383    22504     +121     
Impacted Files Coverage Δ
.../core/plots/plotly_ta/plugins/volatility_plugin.py 31.37% <0.00%> (-1.29%) ⬇️
...inal/core/sdk/controllers/crypto_sdk_controller.py 0.00% <ø> (ø)
...inal/core/sdk/controllers/stocks_sdk_controller.py 0.00% <ø> (ø)
...penbb_terminal/core/sdk/models/crypto_sdk_model.py 0.00% <0.00%> (ø)
...bb_terminal/core/sdk/models/portfolio_sdk_model.py 0.00% <0.00%> (ø)
...penbb_terminal/core/sdk/models/stocks_sdk_model.py 0.00% <0.00%> (ø)
openbb_terminal/core/sdk/sdk_helpers.py 36.92% <ø> (ø)
openbb_terminal/core/sdk/sdk_init.py 92.75% <ø> (ø)
openbb_terminal/core/sdk/trailmap.py 92.68% <ø> (ø)
openbb_terminal/dashboards/stream/Forecasting.py 0.00% <0.00%> (ø)
... and 24 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@deeleeramone deeleeramone left a comment

Choose a reason for hiding this comment

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

The data request here is going to be problematic, and will always return nothing. Should be, company_name, right?

tables = openbb.etf.news(info["Short name"][0], 5) if "Short name" in info else symbol

@deeleeramone
Copy link
Contributor

Data is failing to return from openbb.stocks.fa.analyst.

Screenshot 2023-04-27 at 1 58 13 PM

Screenshot 2023-04-27 at 2 04 10 PM

@deeleeramone
Copy link
Contributor

deeleeramone commented Apr 27, 2023

Should probably avoid using sources that require an API key so that a demonstration notebook will work straight-out-of-the-box. We get weird results for similar companies to MSFT. RHT is an OTC penny stock, Reliq Health Technologies, from Canada. Not very much is similar between the two here.

Screenshot 2023-04-27 at 2 09 06 PM

The list of "Similar Companies" even includes, XLK, the Technology Sector ETF.

['CSCO', 'AAPL', 'SAP', 'RHT', 'IBM', 'ORCL', 'HPQ', 'GOOGL', 'XLK', 'MSFT']

@deeleeramone
Copy link
Contributor

Not getting any insider data from one place, but it does exist when openbb.stocks.ins.stats() is used.

Screenshot 2023-04-27 at 2 19 14 PM

@deeleeramone
Copy link
Contributor

A font is being called here, and the vast majority of people will not have it installed.

Screenshot 2023-04-27 at 2 23 24 PM

@reviewpad reviewpad bot added feat S Small T-Shirt size Feature and removed feat XS Extra small feature labels May 2, 2023
@deeleeramone
Copy link
Contributor

@andrewkenreich I tried patching some additional items, try it out and lemme know what breaks.

@jmaslek jmaslek added this pull request to the merge queue May 4, 2023
Merged via the queue into develop with commit b9a4faa May 4, 2023
13 checks passed
@piiq piiq deleted the hotfix/fix-equity-reports branch June 4, 2023 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat S Small T-Shirt size Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [Installer 3.0.0] /reports/equity: async handler deleted by the wrong thread
3 participants