Commit Graph

5089 Commits

Author SHA1 Message Date
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
Theodore Aptekarev
a276dc4dfe Update reddit connection client (#4478)
* Change deprecated psaw dependency to the maintained pmaw

* Fix docstring linting errors

* Remove deprecated watchlist command because it's taking too long to run

* Remove deprecated spac command because it's taking too long to run

* Update SDK and trailmap

* Fix legacy seaborn chart popping up when calling redditsent

* Clean up spacc code

* Refactor reddit ba commands to reflect the dependency change

* Change regex that searches for tickers

* Fix popular command error when no stock tickers found

* Update tests

* Update requirements.txt files

* Sync dependencies with upstream

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-14 17:54:15 +00:00
montezdesousa
7ec63f827b Authentication QA fixes (#4472)
* fix logout cmd

* fix sync flag

* change msg

* update request test for delete session

* fix autocompletion for routines upload

* append to list of choices

* fix autocompletioin

* black

* mypy

* rewrite tests
2023-03-14 17:52:56 +00:00
Henrique Joaquim
1cdee7da70 change sessionid to uuid-like format (#4476) 2023-03-14 17:23:17 +00:00
montezdesousa
5a69fba516 Prefix OPENBB_ for .env vars (#4475)
* prefix OPENBB_ for .env vars

* black

* remove prefix only for dataclass

* remove openbb_ from setters

* don't send pref if sync disabled

* fix last commit

* add fields methods to handlers
2023-03-14 13:42:47 +00:00
Henrique Joaquim
0a15ec945b patch UserModel on logs (#4474) 2023-03-14 11:40:33 +00:00
teh_coderer
1be858c261 Update backend.py (#4471)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-13 18:24:31 +00:00
Ganesan Narayanan
7bd6537d07 docs: typo fix (#4466)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-13 17:59:01 +00:00
jose-donato
40cfe8148d Interactive tables using react (#4386)
* feat: experimenting tables with react

* feat: adding new interactive tables

* feat: adding more table features

* small changes

* update

* Update backend.py

* Update backend.py

* fix: dark mode?

* feat: lot of table improvements

* fix: my b

* fix: load only when prod

* feat: naive detect links and dates

* handle index and column names

* increased min width

* codespell

* mypy, pylint

* fix: added new chart, export, etc

* testing

* updates

* fix : add PLOT_OPEN_EXPORT,  USE_INTERACTIVE_DF to user dataclass

* bump pywry version, readd removed `plots_backend().start()`

* req files

* Update unit-test.yml

* Update unit-test.yml

* Update unit-test.yml

* updates

* fixing some date things

* update table

* fix formatting with timezones

* fixing some long prints and tables

* Mickey Mouse

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

* fix: ?!?!?

* adding limit arg to all print_rich_table

* tests

* lint

* simple by Default on interactive charts

* playing with some css (thks jose)

* Fix #4426

* Edit some structure

* fix sdk generation

* Update backend.py

* fa menu tested and working

* fix #4460

* fix #4460 drop indices

* update tests

* update tests

* Update helper_funcs.py

* tests

* Update unit-test.yml

* Update etf.ipynb

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: teh_coderer <tehcoderer@users.noreply.github.com>
Co-authored-by: jose-donato <jose-donato@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-13 17:50:48 +00:00
montezdesousa
723a3955db Fix stocks/fa/fraud command (#4469)
* move tradier to data providers

* key not sent´

* black
2023-03-13 17:30:55 +00:00
Henrique Joaquim
246404c79d Patch flag for log collection (#4470)
* Change the name of the flag on the user preferences

* patch flag for log collection
2023-03-13 16:26:00 +00:00
montezdesousa
38e819896c Fix preferences handler bug + dataclass repr (#4468)
* move tradier to data providers

* fix handlers
2023-03-13 15:59:28 +00:00
David Li
cbdf33603c Update SDK_README.md (#4461) 2023-03-12 18:57:27 +00:00
Krasimir Nedelchev
ef388126b8 docs: fix typo (#4464) 2023-03-12 18:57:13 +00:00
Luqman
c7e628584d Fix docs path for docker and pypi (#4451) 2023-03-10 23:08:42 +00:00
montezdesousa
bea21dff28 Handle pydantic ValidationError reading .env (#4456)
* move tradier to data providers

* handle env load errors

* improve message

* detail model in message
2023-03-10 23:07:40 +00:00
Henrique Joaquim
740152b862 Integration tests for etf/ta (#4450)
* some adjustments and added int tests for etf/ta

* ruff
2023-03-10 19:23:46 +00:00
montezdesousa
fea616ee90 Move start plot backend (#4454)
* move start plot backend

* update sdk helper
2023-03-10 14:29:27 +00:00