5112 Commits

Author SHA1 Message Date
James Maslek
adda20c90b Merge branch 'release/3.0.0rc1' of https://github.com/OpenBB-finance/OpenBBTerminal into release/3.0.0rc1 2023-03-23 20:35:56 -04:00
James Maslek
47f77c6348 Fix all these conflicts 2023-03-23 20:35:06 -04:00
teh_coderer
bf80ced99c ship it 2023-03-23 20:10:40 -04:00
teh_coderer
e25d1027c0 fix gh-pages yarn lockfile, integration tests libs 2023-03-23 19:26:18 -04:00
teh_coderer
365f28fef3 fix removed start_required_configurations 2023-03-23 18:14:37 -04:00
teh_coderer
2d5f7bd80a Update gh-pages.yml 2023-03-23 18:03:44 -04:00
teh_coderer
216c65316a fix print_pretty_prediction, avoid error on DummyBackend.__version__ 2023-03-23 17:01:58 -04:00
James Maslek
53a8ec9b2f Release Branch 2023-03-23 16:31:22 -04:00
teh_coderer
7972098ce7 hotfix/PyWry Linux Wheels-Import Error Handing (#4561)
* init

* Update openbb.dockerfile

* fixing linting

* req files CLI update

* bump pywry

* new width/weight env vars for pywry specifically

* Update backend.py

* req files

* Update backend.py

* last bump pywry 0.4.0

* Update dashboards_controller.py

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-23 20:22:05 +00:00
Colin Delahunty
18070bc714 Added start_date functionality (#4564)
* Added start_date functionality

* Updated tests

* Added fixes

* Fix test

* retest

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-23 18:44:52 +00:00
Igor Radovanovic
941a4b0e12 fix windows build (#4571) 2023-03-23 18:44:48 +00:00
James Maslek
69694332e6 Documentation push (#4501)
* hi didier

* Add files

* Add the changelogs from GH

* Api keys + cleaning up spelling + found some old refs

* spelling

* Merge branch 'feature/documentation3p0' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/documentation3p0

* updates to faq sections

* spelling

* fixing FA so it runs

* adding guides - need pics

* telegram/discord docs markdown format conversion

* fix: added new reference styles

* adding examples to discord - remove play button

* updating bot docs

* image showing on docs

Co-authored-by: jose-donato <jose-donato@users.noreply.github.com>

* feat: added imageurl for examples

* updates Stocks SDK intro

* bot pics update

* updating rest of bot docs

* adding code for generating index and bot updates

* linting

* Downgrade scikit-learn to avoid DistanceMetric32 not being found

* add some updates to guide for auto select commands

* Add pytest-recorder to requirements.txt

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: jose-donato <zmcdonato@gmail.com>
Co-authored-by: jose-donato <jose-donato@users.noreply.github.com>
2023-03-23 17:36:47 +00:00
jose-donato
dbd466d381 New table design (#4485)
* fix: new table design

* fix: added trillions

* fixing some raw data

* fix: trying to fix global+resize

* feat: improving design

* fix: new styling and lot of reorganizing

* title fix

* feat: new html

* fix: bottom bar

* fix: table dates

* fix: table html

* fix: new filtering

* fix: new filtering

* fix: long

* Lint

* Lint again

* fix: beautiful james suggestions

* fix: some more fixes

* fix: typo

* fix economy bug

* feat: added toast to notify user and some more cleanup

* fix: more issues

* tests

* fix: james updates

* fix: added banner to charts as well

* fixing title

* better fix

* feat: added column resizing and any number of columns

* auto column width - poc

* feat: added colors toggle, support to display source, fixed some more issues

* fix: table deploy

* fix: table issue

* fix header

* fix: some fixes

* fix: remember pagination and default pagination to 30

* mypy

* Colins tests

* Fix economy test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-03-23 16:45:46 +00:00
Igor Radovanovic
2bf1729bbd Alt & mutual fund unit test & cleanup (#4540)
* Alternative & Mutual Funds unit tests & cleanup

* ruff

* add dependency

* general linting updates

* Update reqs

* pytest-recorder updates

* pre-commit config

* checkout dependencies from develop

* dependency update

* dependency update

* pytest-recorder updates

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-03-23 12:33:36 +00:00
Henrique Joaquim
e69966b4a5 Economy menu bugs <> making the integration test work (#4563)
* fix malformed dataframe on bigmac index for several countries

* improve handling of exception for gdp

* improve handling of exception for rgdp

* improve handling of exception for fgdp

* improve handling of exception for oecd model

* fix list index out of bonds

* add arg to fred
2023-03-23 09:22:48 +00:00
Henrique Joaquim
937d033160 Adds BaseModel and SystemModel (#4491)
* adding BaseModel

* initial version of the system model

* creating setup functions and removing constants from config_terminal

* removing log_supress const

* fix test

* merge

* system handler

* fix import

* centralized configs setup

* repr to use the BaseModel

* updating i18n dict location

* ignoring warning on wrong type-var

* ruff

* Update openbb_terminal/core/models/system_model.py

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

* Update openbb_terminal/core/models/system_model.py

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

* import literal

* loading env files before the plot backend is called

* fix tests/openbb_terminal/test_terminal_helper.py

* tests need to have i18n initialized

* fix seeking_alpha tests

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-03-22 15:00:58 +00:00
Colin Delahunty
b481504aab Fix M1 CI (#4550)
* Step one: error handle Option class

* Step one: error handle Option class

* Got upcoming working

* Fixed

* NExt

* NExt

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2023-03-22 13:26:17 +00:00
Colin Delahunty
26ec83e9fa Fix build workflow on Intel macs (#4549)
* Step one: error handle Option class

* Step one: error handle Option class

* Got upcoming working

* Fixed

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2023-03-22 11:17:46 +00:00
teh_coderer
0e0069eb97 Feature/In-Chart Volume, Streamlit TA Indicators (#4467)
* init

* rename `add_stock_volume`  to `add_inchart_volume` in OpenBBFigure class

* ruff

* poetry lock, req txt files

* fix: ma indicator not in list, connectgaps=true for subtickers

* improved forecasting streamlit

* added past_cov_legend next to explainability plot

* Update base.py

* updates

* Remove deprecated currencies dashboard and it's dependency

* Revert import statement deletion

* Lint docstrings and delete unused assets

* Fix forecast voila dashboard

* Fix futures voila dashboard

* Remove broken crypto prices dashboard

* Remove vsurf dashboard because of over-verbose yfinance error messages

* Fix chains dashboard chart title positioning

* Remove i18n entries for deleted dashboards

* streamlit cmdline fix for macs/conda

* Update reddit_model.py

* mypy, fixed removed `load_dotenv_and_reload_configs` in `website\controller_doc_classes.py`

* readded rust install on CLI for linux in case cache gets cleared

* Update forex_helper.py

* Update test_load[60-YahooFinance].csv

* Update test_call_func[call_sec-marketwatch_view.sec_filings-other_args37-called_with37].yaml

* deps

* sdk generation tests, trailmap fixes

* Revert "sdk generation tests, trailmap fixes"

This reverts commit 2575784a33.

* Revert "Revert "sdk generation tests, trailmap fixes""

This reverts commit 5cb0ce030b.

* improve ta-multi, add title/legends to fred_view

* Update ta_controller.py

* ruff

* Update helper_funcs.py

* Update yfinance_view.py

* Update helper_funcs.py

* change executable parent paths to REPOSITORY_DIRECTORY

* fix distorted candlestick plots when freq is weekly/month, fix demark

* fix yaxis click handler

* Update popups.js

* Update popups.js

* Update popups.js

* Update volatility_plugin.py

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2023-03-21 21:47:29 +00:00
Colin Delahunty
5425b063ae Fixes the Upcoming Command (#4547)
* Step one: error handle Option class

* Step one: error handle Option class

* Got upcoming working

* Got upcoming working
2023-03-21 14:53:31 +00:00
Jalil F
a43e414f48 Update crypto newsletter substack to RSS. fixes #4496 (#4497)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-21 13:49:24 +00:00
montezdesousa
d6718842e0 Fix show version flag not being saved in .env (#4534)
* save pref in .env

* black

* MAke generate sdk timeout longer

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-21 13:06:53 +00:00
montezdesousa
1a1e8c0ed4 Add login command (#4509)
* fix show version

* update login prompt and account

* update set preference

* fix account controller

* block login/logout if not called from account

* change conditions to start terminal

* fix required args account model

* add not to login command

* pylint

* accounte controller messages

* set default user when logout

* logout then show menu

* remove unused functions

* fix logging bug

* ruff

* fix account unittests

* fix session unittests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-21 10:13:59 +00:00
Jeroen Bouma
6b4f0ad6da Add new functionality to measure country performance (#4514)
* Add in new country parameters

* Add in tests corresponding to the new commands

* Update SDK and some more robustness

* Update tests

* Update tests

* Revenue and spending didnt work, then saw spending has many more options

* Small bug

* Update tests and overall improvements

* Forgot to add ccpi

* Make more efficient

* Update tests

* Fix IDX issue within real gdp

* Add quarterly flag to fgdp

* Add integration tests

* Update tests

* Fix SDK and related bugs and fix CPI for SDK

* Zzzz tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-20 15:21:58 +00:00
James Maslek
cceeb3e2b6 Fixing fa/ bugs (#4524)
* Fix fraud showing nothing when NA values

* Fix sdk

* fix #4457

* sdk generation tests

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-03-20 14:54:07 +00:00
Chavithra
890cc87f19 Update visualize_output function (#4536) 2023-03-20 14:51:19 +00:00
Colin Delahunty
4548abb45e Hotfix/3591 (#4519)
* Step one: error handle Option class

* Step one: error handle Option class

* Handle unfindable
2023-03-17 21:11:58 +00:00
Colin Delahunty
4e7f82069c Fix Finviz Error (#4518)
* Step one: error handle Option class

* Step one: error handle Option class

* Handle unfindable
2023-03-17 21:11:39 +00:00
Colin Delahunty
1dffba8ee4 Adds Error Handling to the options class (#4516)
* Step one: error handle Option class

* Step one: error handle Option class

* Handle unfindable
2023-03-17 20:12:19 +00:00
Colin Delahunty
84a3628b2e Removed duplicate chart (#4511)
* Removed duplicate chart

* Removed duplicate chart

* improved and fixed `call_index` in economy controller

* Update preferences_model.py

* Improve handling for dot in ticker

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-03-17 17:14:51 +00:00
Colin Delahunty
4ea20eb50d Improve handling for dot in ticker (#4513) 2023-03-17 15:32:28 +00:00
Colin Delahunty
165898f7da Fixed crypto dashboard (#4512)
* Fixed crypto dashboard

* Fixed crypto dashboard
2023-03-17 15:17:19 +00:00
James Maslek
afa9d6cd6c Update dev deps (#4440)
* Update dev deps

* Merge and update

* I guess pywry needs to be pinned smh

* Bump ruff

* pre commit

* mypy

* This is what I get for no verify
2023-03-17 14:06:20 +00:00
Colin Delahunty
2db27b48d1 Got things working (#4510) 2023-03-17 14:05:55 +00:00
Colin Delahunty
09f53dd14b Made fa/pt more accurate (#4503)
* Got things working

* Got things working

* Got things working
2023-03-17 13:34:47 +00:00
Colin Delahunty
3aec94cdde Improve Loading Custom Files (#4504)
* Got things working

* Got things working

* Got things working
2023-03-17 11:16:20 +00:00
teh_coderer
eef99b606f Fix get_monitors() error when no enumerators available (#4506) 2023-03-17 09:23:34 +00:00
James Maslek
f6c4554658 Deprecating some functions and removing old unused code (#4482)
* Deprecat some options features

* Remove bro/ally

* Missed the merge

* even out deps
2023-03-16 23:19:56 +00:00
Colin Delahunty
0a544c9d6e Got things working (#4505) 2023-03-16 21:21:52 +00:00
montezdesousa
18b82a7d80 Hub | save preferences locally (#4494)
* remove preferences sync

* refactor preferences handler

* change func name

* remove credentials handler + add writedotenv

* remove flair and sync from cloud

* read flair from env dict

* remove unused func

* simplify func

* ruff

* mypy

* remove token from keys

* simplify handle credential

* save exception load env just in case

* uncomment dev link

* pylint

* fix accounte controller

* fix sdk keys bug

* fix bug on apply_configs

* fix feature flags controller tests

* mock properly

* remove comment

* fix more tests

* fix test

* fix screeninfo

* update ff controller after develop merge

* fix sync test
2023-03-16 16:58:10 +00:00
jose-donato
6e9fefce9e Adds bot documentation to docusaurus and changes for hub (#4409)
* feat: adds bot docs to docu

* fix: file structure

* fix: brings changelog and switch platform button

* adding available options and changing Example text

* fix: detect whether iframe, fix availableoptions component, dynamic update third friday for options component

* fix: updated readme to reflect new changes

* fix: made it so from iframe only shows relevant sidebar

* PLAY BUTTON WOOO - works on discord/charting/chart

* comment

* fix: search bar, improve search

* fix: hijacks ctrl+k from iframe, adds visit to hub link

* about

* setting up play button for all images on Discord

* Bot docs updates

* terminal/faqs

* update main page

* add changelog to terminal

* SDK refactoring

* minor reordering

* bot struct in place

* move bot faqs over

* updating bot index and installation

* add new letterings

* fix: adds new navbar

* fix: new bot images and layouts

* updating installation and flow

* black linter

* spelling

* spelling

* The best commit

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-16 16:29:57 +00:00
teh_coderer
1fe786b79b Hotfix/Interactive in featflags menu (#4500)
* added `USE_INTERACTIVE_DF` to `featflags` menu, `console.print` changed value

* Got things working

---------

Co-authored-by: colin99d <colin99delahunty@gmail.com>
2023-03-16 16:09:12 +00:00
Henrique Joaquim
da5665af6f remove old sdk files (#4498) 2023-03-16 13:07:24 +00:00
Colin Delahunty
65818683c2 Hotfix/fred (#4493)
* Updated reqs

* Updated reqs

* Fix test

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-15 20:33:35 +00:00
Colin Delahunty
753ccfecf7 Added fix (#4492)
Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-03-15 20:16:22 +00:00
teh_coderer
d216d8df96 fix: added print_to_console arg to print_rich_table and fixed crypto performance opening in pywry window (#4495) 2023-03-15 20:15:57 +00:00
montezdesousa
b19dc5205d Remove matplotlib references (#4479)
* remove theme refs

* will come for dtabento later

* remove theme refs except databento

* ruff

* remove mpl variables

* mpl still used in po

* move databento to plotly

* pylint

* ruff

* theme ref to openbb_terminal

* juans sugg

* fix: removed raw arg in `display_candle` which could return the dataframe and error, added figure to `export_data`

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-03-15 14:25:59 +00:00
Colin Delahunty
8bd7606120 Fix Pandas Warning (#4490)
* Added fix

* Added fix

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-15 13:25:50 +00:00
Jeroen Bouma
46fcf9c950 Add version featflag (#4487)
* Add version featflag

* Small mistake, ta also complained
2023-03-15 09:33:09 +00:00
Jeroen Bouma
452ecd1275 Make adjustments to the guides (#4477)
* Update the website guides

* Fix wrong paths in about functionality

* Update settings and feature flags menu

* Done

* Done

* Update screen
2023-03-14 20:07:35 +00:00