Commit Graph

822 Commits

Author SHA1 Message Date
Jeroen Bouma
3d84247e5f fixedincome/treasury some fixes (#4413)
* Fix treasury

* Update oecd_model.py

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-07 14:18:51 +00:00
Ikko Eltociear Ashimine
2e841b34d4 Fix typo in conftest.py (#4406)
fuction -> function

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-06 14:27:10 -05:00
James Maslek
f0d8fa65e5 Make the UI a little cleaner (#4405)
* Make the UI a little cleaner

* ta load

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-03-06 13:57:32 -05:00
montezdesousa
475ebb5acd [WIP] Migrate user, feature flags and configurations to dataclass (#4309)
* implement user and change is guest

* replace User methods

* move remaining functions to user

* fix bug

* portfolio test

* fix tests

* fix tests

* uncomment skip

* ruff

* start credentials model implementation

* change deault structure

* refacto quandl

* change default struct and file names

* bug

* start using global user

* add comments

* move update flair

* change cfg references in keys model

* reddit & fmp

* refactore additional keys

* remaing config keys

* remove unsude imports and fix hub keys

* ruff

* fix line too long

* unblock unittests

* fix keys model tests

* remove os patch

* fix account controller tests

* fix account controller tests

* fix account model

* account fixed

* fix user tests

* User Model

* User Model

* User Model

* Move session folder

* User Model : grouping the models

* User Model : fix bugs

* Config Plot + bug fix

* User Model : Refactoring plots

* Feature flags

* Remove dup

* clean comments a fix some vars

* fix feature flags controller

* refactor obbff from settings controller

* refactor a bunch of obbff variables

* fix bug blocking terminal

* fix integration tests

* refactor controllers with obbff

* refactor remaining ffs

* remove comments

* log not started

* mispelled variable

* set current user on local model

* User Model : moving files + updating

* User Preferences

* User : Refactor is_guest function + bug fix

* User : refactor is_guest function

* Fix conftest.py

* remove lost obbffs

* typo on fileoverwrite

* Plot config: move variables and start plot dpi

* User : tests

* refactor plot dpi references

* remove plot dpi imports

* refactor some config terminal leftover

* /account/sync : fix bug

* remove configs reload

* start path refactor

* installation paths vs user paths

* remove cfg_plot

* Tests : User Refactoring

* user prefix only for preferences

* user prefix only for preferences

* move user paths

* remove comment

* update apply remote configs

* fix tz not updating

* save some copys

* small fix

* create interface for credentials and preferences

* wrong docstrings fixed

* ruff core

* fix some pref setting

* login is better

* ruff

* ruff

* remove Literal

* add small comment

* Tests : User Refactoring

* Credentials Model : add DataBento

* Fix helper_funcs

* Fixing code

* Tests : fixing

* User Model : freezing the models

* Fixed Income + Databento

* Tests : fixing keys

* black

* ruff

* Tests : user model

* Tests : user model

* Fix linting

* Fix linting

* Linting

* Linting

* Fixing code and tests

* Fix tests

* mypy

* SDK

* Clean ruff cache

* Fix syntax issue

* Update fred_view

* Black

* Linting

* Update code

* Update tests

* Linting

* Linting

* Tests

* Black

* Linting

* Linting

* Mock os.listdir to avoid looking for file that doesnt exist

* Mock options paths

* lint

* Tests : fix

* Code : update

* Tests + Linting

* Tests

* Ruff

* Code : update

* Tests

* Code : update

* Fix workflow

* Code : update

---------

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-05 00:37:19 +01:00
teh_coderer
94e2b33802 hotfix/economy-charts (#4387)
* fixes

* missing dropna on economy models, bump pywry version to override download path

* Update backend.py

* tests

* fix rare instance CHART_DIV is undefined if pywry window loads too fast

* add warning of pywry version due to json keys change

* pylint

* Update fred_view.py

* Update fred_view.py

* Update plotly_helper.py
2023-03-02 22:30:16 -05:00
James Maslek
26ffa0d7b4 Merge main into develop (#4381)
* Merge main into develop

* Regenerate lock and reqs
2023-03-02 12:12:52 -05:00
Jeroen Bouma
d67a7da69d Delete everything related to the Sector and Industry Analysis menu (#4374)
* Get rid of sia

* Remove Portfolio Analysis menu that was not being used

* Remove Portfolio Analysis menu that was not being used

* That comment about GitHub datasets failing to load included sia, removed that

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-02 09:40:07 -05:00
teh_coderer
602cfa2c8c [POC] Plotly Backend (#3941)
* Update portfolio_view.py

* mypy 1.0 test

* Update helpers.py

* black

* ruff

* Update thought_of_the_day.py

* isort

* Update portfolio_view.py

* Update business_insider_view.py

* funds,bt,ca,fa view updates

* economy,etf,futures view updates

* econometrics regression

* mypy

* reports notebooks, PlotlyTA class adjustments, crypto finbrain view

* crypto views updates

* crypto views done?, ba, econometrics, funds, reports

* update docstrings

* Update sec_view.py

* portfolio reports

* Update equity.ipynb

* ruff

* mypy + equity reports

* Update yahoo_finance_view.py

* Update economy_controller.py

* clean up returns

* mypy

* finished dashboards/reports templates

* update some tests

* Update common.py

* Update account_controller.py

* Update banner.txt

* update tests

* tests

* Update helpers_denomination.py

* tests

* tests

* finished tests, refactor add_histplot/add_corr_plot

* ruff

* Update backend.py

* mypy

* Update backend.py

* pywry linux libs for tests

* pywry version bump

* OpenBBFIgure import changes

* Update business_insider_view.py

* Update backend.py

* tests

* bump pywry version

* forecast plot_explainability converted to plotly

* Update helpers.py

* tests

* Update helpers.py

* tests

* Update helpers.py

* Update helpers.py

* default plotly annotation `showarrow` to false

* Update backend.py

* fixes

* Update poetry.lock

* docker

* Update openbb.dockerfile

* up

* Update style.css

* bump pywry version

* Update unit-test.yml

* Update unit-test.yml

* figure to image/pdf export

* requirements txt files, pywry version bump

* mypy, pylint

* cleanup

* Update covid_view.py

* Update helper_funcs.py

* Update backend.py

* updates

* Update backend.py

* Update backend.py

* bump pywry version

* Update poetry.lock

* Update trailmap.py

* update reports

* Update custom_indicators_plugin.py

* Update momentum_plugin.py

* equity report

* reqs files

* Update fred_view.py

* ruff

* Update po_view.py

* bump pywry version

* reqs txt files

* fix installer icons for mac

* test updated torch/darts/pyinstaller on mac

* Update dashboards_controller.py

* Update terminal.py

* Update terminal.spec

* Update terminal.spec

* test

* Update poetry.lock

* Report adjustments, improved dashboard subprocesses termination

* pylint

* Update plotly_helper.py

* Update plotly_helper.py

* pylint

* revert darts

* test

* test

* fix

* improve shap scatter plot

* Update helpers.py

* Update helpers.py

* cleanup

* Update runa_view.py

* more cleanupp

* fixes

* update tests

* Update intrinio_view.py

* Update intrinio_view.py

* Update intrinio_view.py

* reqs files, poetry lock

* Update backend.py

* test for new icon

* Update fmp_view.py

* updates

* Update plotly_helper.py

* Update businessinsider_view.py

* ruff

* pylint

* fix previous merge

* Update plotly_helper.py

* update reqs files

* Update directories.py

* fix alt covid

* fix display_candle data is None load being unreachable, get covid views ready for sdk server

* Update covid_view.py

* refactor cleanup

* plotly_ta adjustments

* terminal wide ignore print_table if export

* Update plotly_helper.py

* forgot to save a few

* added edge case fallback if figures are in queue before backend fail

* Update ta_class.py

* Rename env variable name required to return plotly json

* Resolve pydocstyle warnings

* Resolve linting errors

* revert forecasting/pyinstaller versions

* Update terminal.spec

* finished incoming fixedincome menu, improve get_ecb_yield_curve speed with multiprocessing

* update deps

* Update backend.py

* fix fred model/view from switch to DataFrame, improve ecb_model

* Update config_terminal.py

* Update backend.py

* black

* clean up

* Update fred_view.py

* Update ta_class.py

* Update ta_class.py

* Update plotly_helper.py

* sync fixedincome

* Update ecb_model.py

* convert excel to csv for faster processing

* cleanup

* remove excel files

* Update terminal_controller.py

* update tests

* adjustments/missed figs in export_data

* Update cryptocurrency_helpers.py

* fixes

* account for volume column with no volume when plotting indicators , images autogen POC

* Update plotly_helper.py

* Update etf_controller.py

* Update etf_controller.py

* margin arg for export_data func figures, some plot adjustments

* logic for numpy array for plotly helper `get_dateindex` function

* cleanup

* update

* req file updates

* views

* Update backend.py

* update tests

* Update test_load_none[btc-usd].yaml

* convert merged cpi chart

* linting

* updates

* clean

* tests

* Update openbb.dockerfile

* remove test docker in root

* Update CONTRIBUTING.md

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
2023-03-01 22:48:45 -05:00
Brendan de Faria
7c74b10887 Hotfix/bug #3837 (#3942)
* Fix: Fixed spaces causing error in --sort flag at crypto/disc/...

* Fixed minor issues

* fixed formatting using black

* Ran tests locally

* fixed top command

* reverse flag to gainers

* reverse flag to losers

* fixed dappradar verbose exceptions

* tests

* tests

* tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-03-01 13:07:05 -05:00
James Maslek
437607c54b merge release into develop (#4359)
* Update trailmap.py (#4300)

* Fixes Failing AutoDocs (#4304)

* Fixes Failing AutoDocs

* Update test_print_help.txt

* Release time

* Revert papermill and update gh pages action

* Fix shortname (#4356)

* uninstall brotli on conda test

* Fix issue 4316 (#4357)

* Fix issue 4316

* Updating polygon_model + options_controller

* Tests : FRED

* ruff

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-03-01 09:07:10 -05:00
james
e35bad24c3 Checkout develop tests for keys 2023-02-28 16:09:32 -05:00
james
85d62a66fb Merge branch 'hotfix/options-screener-fix' of https://github.com/OpenBB-finance/OpenBBTerminal into hotfix/options-screener-fix 2023-02-28 16:02:23 -05:00
Danglewood
7b1fb4b50a fixes 2023-02-28 12:41:27 -08:00
james
d020c46ea9 Guess not 2023-02-28 14:58:27 -05:00
james
e3ccb05024 Revert some tests 2023-02-28 14:47:43 -05:00
james
6fe7088036 fix test 2023-02-28 14:18:52 -05:00
james
1b86c5e922 lint 2023-02-28 13:31:29 -05:00
Danglewood
94c7a6bb93 rewrite test 2023-02-28 09:14:44 -08:00
Danglewood
165b380202 remove one test artifact 2023-02-28 08:01:02 -08:00
Danglewood
134cfcdda8 resolve merge conflict 2023-02-28 07:36:38 -08:00
jeroen
f8fcd174a9 Fix linting 2023-02-28 10:53:00 +01:00
Danglewood
faaf4e9a73 black 2023-02-27 19:04:54 -08:00
Danglewood
4913488433 updates volatility_model test 2023-02-27 19:01:04 -08:00
james
d9b20a2ef1 ur welcome <3 2023-02-27 21:38:00 -05:00
jeroen
6d3fc04a64 Introduce CPI functionality 2023-02-28 02:30:31 +01:00
Danglewood
fe17100102 resolve merge conflict 2023-02-27 11:27:21 -08:00
Diogo Sousa
4a7d277e16 Merge branch 'develop' into hotfix/issue4212 2023-02-27 17:53:06 +00:00
Diogo Sousa
8661f22884 fix test 2023-02-27 17:49:14 +00:00
teh_coderer
bf26d4a7c7 Merge branch 'develop' into feature/sdk-update 2023-02-27 12:26:28 -05:00
james
95fcd765f3 Etf 2023-02-27 11:56:54 -05:00
teh_coderer
0203e2b0db Merge branch 'develop' into feature/sdk-update 2023-02-27 11:54:55 -05:00
jeroen
522c282d0a Update tests 2023-02-27 17:10:29 +01:00
jeroen
34d7f6a307 Remove etf/screener and tests 2023-02-27 15:42:38 +01:00
Danglewood
82eb29927a test markers 2023-02-26 14:45:16 -08:00
Danglewood
d2d96de758 pylint 2023-02-26 13:31:27 -08:00
Danglewood
46f63fad89 ruff 2023-02-26 13:17:28 -08:00
Danglewood
b5bcaf9830 adds unit testing for cones 2023-02-26 13:12:06 -08:00
Danglewood
67ca8a656e coverage 2023-02-25 22:16:16 -08:00
Danglewood
9289c53675 black 2023-02-25 21:28:33 -08:00
Danglewood
1b75600f83 removes test_view_available_presets[] 2023-02-25 21:21:55 -08:00
Danglewood
781ca58dd4 rewrite test for test_syncretism_view 2023-02-25 20:46:53 -08:00
Danglewood
785193b7fd rewrite for test_github_model 2023-02-25 18:06:30 -08:00
Danglewood
86590e16ea updates more test files 2023-02-25 17:47:07 -08:00
Danglewood
171803ddc1 updates tests for options screener 2023-02-25 16:53:01 -08:00
james
1ae9115741 Delete rogue file and update test and add fixedincome to en.yml 2023-02-25 18:31:12 -05:00
Jeroen Bouma
bec294b92d Merge branch 'develop' into feature/finance-database-update 2023-02-25 14:24:18 +01:00
jeroen
7357c1c9ef Fix tests 2023-02-25 14:18:21 +01:00
James Maslek
0174a202ed Merge branch 'develop' into feature/fixed_income 2023-02-24 11:34:29 -05:00
James Maslek
d3efd2f326 Merge branch 'develop' into feature/fixed_income 2023-02-24 11:13:19 -05:00
james
aa71ccbc61 Tests 2023-02-24 11:00:56 -05:00