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

Feature: Ultima Insights NewsMonitor Integration #4685

Merged
merged 41 commits into from
Apr 5, 2023
Merged

Feature: Ultima Insights NewsMonitor Integration #4685

merged 41 commits into from
Apr 5, 2023

Conversation

AdiSai
Copy link
Contributor

@AdiSai AdiSai commented Apr 4, 2023

Description

  • Summary of the change / bug fix.
    Integrating Ultima Insights News Monitor for the news and cnews commands
  • Link # issue, if applicable.
    N/A
  • Screenshot of the feature or the bug before/after fix, if applicable.
    Screenshot 2023-03-30 at 3 18 18 PM
  • Relevant motivation and context.
    Ultima Insights' News Monitor is a platform that harnesses the power of GPT + LLMs to help deliver better, more relevant news to investors. We help find the news & tell you why it's important before it's on the front page of Bloomberg.
  • List any dependencies that are required for this change.
    an Ultima Insights API key, available from https://www.ultimainsights.ai/

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.

Reopening #4644 with proper branch name conventions

@reviewpad reviewpad bot added the feat M Medium T-Shirt size feature label Apr 4, 2023
@andrewkenreich
Copy link
Contributor

andrewkenreich commented Apr 4, 2023

The Merge conflicts have to be resolved here before the tests will run (we tried to fix it but we can't write to your branch)

@andrewkenreich
Copy link
Contributor

ok should run now :)

@reviewpad reviewpad bot added feat XL Extra Large feature and removed feat M Medium T-Shirt size feature labels Apr 4, 2023
@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

❗ No coverage uploaded for pull request base (develop@10e2b38). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #4685   +/-   ##
==========================================
  Coverage           ?   56.82%           
==========================================
  Files              ?      593           
  Lines              ?    54043           
  Branches           ?        0           
==========================================
  Hits               ?    30711           
  Misses             ?    23332           
  Partials           ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@DidierRLopes
Copy link
Collaborator

Let's goooo!

Great work @AdiSai ! Welcome onboard

@DidierRLopes DidierRLopes added this pull request to the merge queue Apr 5, 2023
Merged via the queue into OpenBB-finance:develop with commit 4fe6cf4 Apr 5, 2023
IgorWounds pushed a commit that referenced this pull request Apr 6, 2023
* fix typing issue that prevents running

* news monitor integration for news

* UX improvements with news monitor integration

* italicize riskExtDesc

* minor cosmetic changes

* minor cosmetic changes

* minor cosmetic changes

* Update ultima_newsmonitor_view.py

* minor fixes to launch properly

* setting Ultima API key

* Ultima NewsMonitor integration into terminal done

* integration of the commands is done

* add Ultima to SDK trailmap, but SDK generation failed on M1 Mac

* add tests

* add unit tests

* Linting and sdk

* display message if not supported by Ultima News Monitor

* Update api-keys.md

* fix stock controller problem + remove source filtering from Ultima

* remove source filtering from Ultima

* add report issue message

* add some error handling in the view to ensure unsupported companies don't get fetched

* remove powered by Ultima Insights from console output

* ran black formatter to fix linting issues

* fix ruff issues

* fix pylint issues

* lint fix

* fixed linting issue and changed keys in the Feedparser model

* get all tests to pass

* proper testing with --record-mode=rewrite

* re-run tests for updated VCRs

* redid black formatting

* re-run test_print_help in stocks controller

* make breaking news output consistent and re-run tests

* remove unused import time

* reran tests with --rewrite-expected

---------

Co-authored-by: ovidysus0 <111447781+ovidysus0@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
IgorWounds added a commit that referenced this pull request Apr 7, 2023
* Start

* QA controller tests

* Unit tests batch 1

* ruff

* More tests

* Economy unit tests

* Tests: economy

* table fixes (#4666)

* fix: table fixes

* fix: tablaroni

* fix: pagination protection

* fix: dm much more

* fix: colors

* fix: colors

* fix: colors

* fix Timestamp on stocks `get_quote`

* fix `call_tob`  having `quote` as prog/docstring

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>

* bug as default flair if no login (#4681)

* init (#4683)

* Feature: Ultima Insights NewsMonitor Integration (#4685)

* fix typing issue that prevents running

* news monitor integration for news

* UX improvements with news monitor integration

* italicize riskExtDesc

* minor cosmetic changes

* minor cosmetic changes

* minor cosmetic changes

* Update ultima_newsmonitor_view.py

* minor fixes to launch properly

* setting Ultima API key

* Ultima NewsMonitor integration into terminal done

* integration of the commands is done

* add Ultima to SDK trailmap, but SDK generation failed on M1 Mac

* add tests

* add unit tests

* Linting and sdk

* display message if not supported by Ultima News Monitor

* Update api-keys.md

* fix stock controller problem + remove source filtering from Ultima

* remove source filtering from Ultima

* add report issue message

* add some error handling in the view to ensure unsupported companies don't get fetched

* remove powered by Ultima Insights from console output

* ran black formatter to fix linting issues

* fix ruff issues

* fix pylint issues

* lint fix

* fixed linting issue and changed keys in the Feedparser model

* get all tests to pass

* proper testing with --record-mode=rewrite

* re-run tests for updated VCRs

* redid black formatting

* re-run test_print_help in stocks controller

* make breaking news output consistent and re-run tests

* remove unused import time

* reran tests with --rewrite-expected

---------

Co-authored-by: ovidysus0 <111447781+ovidysus0@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>

* Terminal/hub QA (#4678)

* move update flair

* sort repr

* remove packaged sys model var

* update decorator for check api key

* ruff

* change if stat

* ruff

* no need for new var

* pylint

* Refactor sources menu (#4668)

* add data sources defaults to model

* fix f string

* refactor sources controller

* write sources to file

* write to user file

* add user data sources file inside OpenBBUserData

* append to user file, don't rewrite

* fix when sources folder does not exist

* codespell

* change func name

* change path to str

* ruff

* Add method to upload entire user field

* change clear func args

* update get_ordered_list_sources function

* move flatten

* move flatten

* change extend func name

* remove comment

* clean sources utils funcs

* mypy

* Update utils.py

* spacing

* docs

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* Move tradier from hub to local (#4700)

* Move tradier from hub to local

* Flake error

* Disable error

* Update stocks_helper.py

* Update stocks_helper.py

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* Unit tests batch

* Unit tests batch

* ruff

* Unit tests batch

* Tests : Economy ; moving csv file

* Apply black

* Apply ruff

---------

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Adi Sai <adithya.sairam1@gmail.com>
Co-authored-by: ovidysus0 <111447781+ovidysus0@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
jmaslek added a commit that referenced this pull request Apr 13, 2023
* fix typing issue that prevents running

* news monitor integration for news

* UX improvements with news monitor integration

* italicize riskExtDesc

* minor cosmetic changes

* minor cosmetic changes

* minor cosmetic changes

* Update ultima_newsmonitor_view.py

* minor fixes to launch properly

* setting Ultima API key

* Ultima NewsMonitor integration into terminal done

* integration of the commands is done

* add Ultima to SDK trailmap, but SDK generation failed on M1 Mac

* add tests

* add unit tests

* Linting and sdk

* display message if not supported by Ultima News Monitor

* Update api-keys.md

* fix stock controller problem + remove source filtering from Ultima

* remove source filtering from Ultima

* add report issue message

* add some error handling in the view to ensure unsupported companies don't get fetched

* remove powered by Ultima Insights from console output

* ran black formatter to fix linting issues

* fix ruff issues

* fix pylint issues

* lint fix

* fixed linting issue and changed keys in the Feedparser model

* get all tests to pass

* proper testing with --record-mode=rewrite

* re-run tests for updated VCRs

* redid black formatting

* re-run test_print_help in stocks controller

* make breaking news output consistent and re-run tests

* remove unused import time

* reran tests with --rewrite-expected

---------

Co-authored-by: ovidysus0 <111447781+ovidysus0@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
jmaslek added a commit that referenced this pull request Apr 13, 2023
* Start

* QA controller tests

* Unit tests batch 1

* ruff

* More tests

* Economy unit tests

* Tests: economy

* table fixes (#4666)

* fix: table fixes

* fix: tablaroni

* fix: pagination protection

* fix: dm much more

* fix: colors

* fix: colors

* fix: colors

* fix Timestamp on stocks `get_quote`

* fix `call_tob`  having `quote` as prog/docstring

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>

* bug as default flair if no login (#4681)

* init (#4683)

* Feature: Ultima Insights NewsMonitor Integration (#4685)

* fix typing issue that prevents running

* news monitor integration for news

* UX improvements with news monitor integration

* italicize riskExtDesc

* minor cosmetic changes

* minor cosmetic changes

* minor cosmetic changes

* Update ultima_newsmonitor_view.py

* minor fixes to launch properly

* setting Ultima API key

* Ultima NewsMonitor integration into terminal done

* integration of the commands is done

* add Ultima to SDK trailmap, but SDK generation failed on M1 Mac

* add tests

* add unit tests

* Linting and sdk

* display message if not supported by Ultima News Monitor

* Update api-keys.md

* fix stock controller problem + remove source filtering from Ultima

* remove source filtering from Ultima

* add report issue message

* add some error handling in the view to ensure unsupported companies don't get fetched

* remove powered by Ultima Insights from console output

* ran black formatter to fix linting issues

* fix ruff issues

* fix pylint issues

* lint fix

* fixed linting issue and changed keys in the Feedparser model

* get all tests to pass

* proper testing with --record-mode=rewrite

* re-run tests for updated VCRs

* redid black formatting

* re-run test_print_help in stocks controller

* make breaking news output consistent and re-run tests

* remove unused import time

* reran tests with --rewrite-expected

---------

Co-authored-by: ovidysus0 <111447781+ovidysus0@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>

* Terminal/hub QA (#4678)

* move update flair

* sort repr

* remove packaged sys model var

* update decorator for check api key

* ruff

* change if stat

* ruff

* no need for new var

* pylint

* Refactor sources menu (#4668)

* add data sources defaults to model

* fix f string

* refactor sources controller

* write sources to file

* write to user file

* add user data sources file inside OpenBBUserData

* append to user file, don't rewrite

* fix when sources folder does not exist

* codespell

* change func name

* change path to str

* ruff

* Add method to upload entire user field

* change clear func args

* update get_ordered_list_sources function

* move flatten

* move flatten

* change extend func name

* remove comment

* clean sources utils funcs

* mypy

* Update utils.py

* spacing

* docs

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* Move tradier from hub to local (#4700)

* Move tradier from hub to local

* Flake error

* Disable error

* Update stocks_helper.py

* Update stocks_helper.py

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* Unit tests batch

* Unit tests batch

* ruff

* Unit tests batch

* Tests : Economy ; moving csv file

* Apply black

* Apply ruff

---------

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Adi Sai <adithya.sairam1@gmail.com>
Co-authored-by: ovidysus0 <111447781+ovidysus0@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat XL Extra Large feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants