teh_coderer
6a9308c3e7
Feature/sdk v4 pydantic v2 ( #5458 )
...
* init
* Update provider_interface.py
* docstring
* pydantic v2
* Update __init__.py
* build package v2 support
* `alises` to `aliases`
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
* `alises` to `aliases`
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
* `alises` to `aliases`
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
* updates
* Update registry.py
* validate_arguments -> validate_call
* update terminal classes
* response_model_by_alias = False
* query_params by alias
* Update major_indices_constituents.py
* add alias to Query in `provider_interface`
* yfinance
* build package, add param defaults and correct `OBBject` results type
* fix cpi validation errors
* Update risk_premium.py
* fix `forex_pairs` active query param annotation, set default when only 1 provider
* fix and refactor intrinio `options_chains`
* Update poetry.lock
* fix benzinga news, build package, add intrinio fred_historical fetcher
* Update extension_map.json
* ruff
* Update unit_test_generator.py
* updates
* add `default=None` on Optional fields
* `parse_obj` -> `model_validate`
* add alias to dup fields on providers with `__alias_dict__`, fix `test_generate_model_docstring`
* Update package_builder.py
* fix validation errors, fix tests
* tests http
* `fred_historical` record
* Update test_intrinio_fetchers.py
* Update test_intrinio_fetchers.py
* Update test_intrinio_fetchers.py
* Update available_indices.py
* Update stock_historical.py
* build package
* build package without optional
* change `SystemSettings` -> `MockSystemSettings` in `test_system_settings.py`
* `openbb_figure.py`/`backend.py` terminal changes , update deps/lock files
* `linearmodels>4.26` auto installs `setuptools-scm` which cause error messages
* clean up
* `dev_install.py` for local development
* ruff
* dup `# noqa`
* build
* Update bitquery_model.py
* records
* rec
* f
* worky?
* update `integration_test_generator.py` and `unit_test_generator.py`
* renamed test to tests in file
* fix import due to change in file name
---------
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu >
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
2023-09-27 09:40:07 +01:00
montezdesousa
4660401974
Hotfix/tests passing ( #5452 )
...
* replace string dates with datetime in fetcher tests
* lint
2023-09-20 10:31:44 +01:00
Igor Radovanovic
77716b2081
Merge
2023-08-25 00:17:56 +02:00
Igor Radovanovic
c469ca3853
Fix income statement and lint
2023-07-12 14:11:25 +02:00
Igor Radovanovic
228ab0b529
linting
2023-07-12 11:51:46 +02: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
Jeroen Bouma
49641bd9e8
Update the routine, portfolio and screener files and adjust the documentation ( #4021 )
...
* Remove undesired example files
* Update the documentation for routines
* Add in video
* Add some additional text
* Add in a routines example that can be activated with --example
* Remove default old examples
* Add portfolio example holdings file
* Add portfolio optimization example allocation file
* Add example files for the portfolio menus
* Remove code that unintentionaly prints the home menu on every routine
* Add home instead of /
* Remove requirement to add file if you have an example
* Ensure portfolio/po/params also talks about docs correctly
* Move all routine, portfolio and screener presets to the correct folder
* Remove presets since they are moved
* Remove presets since they are moved
* Same implementation as for file in po
* Adjust code so it works with new folder
* Adjust code so it works with new folder
* Adjust code a little since I changed folder
* Update screener documentation to include how to create a screener
* Remove old readme
* Update documentation to better reflect where to find the files
* Also update SDK notes
* Update exe with auto complete and more info
* Add images
* Update images and the last script
* Update text to make it more apparent that it has an example attached
* Add section for routine scripts on home menu
* Make call_about more robust and add record and stop
* Update the routine markdown with info about record/stop including video
* Update scripts
* Update portfolio report
* Update tests and report
* fix small load bug
* rewrite help test
* last fix was buggy
* example by default
* fix po integration test
* keep example on arg
* adapt integration test
* fix portfolio integration test
* fix more portfolio integration tests
* pa is not an option anymore
* portfolio report choices only holdings
* update integration test for portfolio report
* Small formatting improvements
* Remove sleep and fix inconsistent return
* Some spelling
* oops
* Fix tests
---------
Co-authored-by: Jeroen Bouma <jeroenbouma@Jeroens-MacBook-Pro.local >
Co-authored-by: James Maslek <jmaslek11@gmail.com >
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com >
2023-01-30 13:22:32 -05:00
montezdesousa
f9086d6f38
Portfolio menu bug fixes ( #3204 )
...
* normalized way moving average is treated and prevent huge exception prompt
* changed descriptions on docs
* change to check_positive_float
* add integration tests
* fix linting
* add more integration tests
* add more integration tests
* fix linting
* add some po integration tests
* fix flag without prompt
* change orderbook to transactions
* limit warning to portfolio
* change print help
* format portfolio var
* reformat controller
* reformat es
* remove autocompletion
* change print help
* add percentage symbol to summary
* fix holp holv
* fix scripts
* update website doc
* add tqdm progress bars
* fix table spacing
* identify mret tables
* remove positive float from rfr
* flake8
* pylint
* fix reports
* revert to old menu help
* revert to old menu help
* Update test_portfolio.openbb
* quick change on empty lines
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt >
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2022-11-09 10:46:42 +00:00
montezdesousa
a9787dd2d1
Refactor reports menu and make it work on installer ( #2878 )
...
* start papermill rollback
* move reports to templates folder
* comment some stuff
* refactor reports controller
* change var names
* clean ctrl class vars
* small refactoring on metadata search
* relocate some func
* breaking changes
* revert some changes
* destroying changes
* change menu appearance
* change menu appeaerance again
* update choices
* change some assets locations
* remove unused vars
* change some docstrings
* rename vars
* its working
* forgot one dash
* omg its working
* clean some code and doc
* change func name
* fix a bug and add some comments
* fix economy report startup
* add custom reports
* allow custom reports
* forgot to delete this
* unused import
* make somestuff more explicit, 5 min rule
* add helper func
* supress errors--no-verify
* add some type checks
* fix check ipynb func
* check inputs in run
* rewrite some integration tests
* remove unused import
* add some docs to website
* add auto completion
* warn if no forecast
* add to do
* add arg name if 1 arg
* add papermill pointing to github main
* add notebooks
* fix terminal spec
* relocated choices files
* merge main
* relocate website docs for reports
* limit user choices
* fix portfolio auto completion
* limit choices fix
* clean som edocstrings
* limit user choices in run command
* improve run parser
* fix msg
* add reports controller tests
* relax crypto choices limit
* contain commands
* pass pre commit
* flake8
* flake8
* ignore mypy
* pylint
* website
* move docs to jupyter tab
* add installer dep
* remove etf
* remove reports
* update reports to main
* handle events erros
* rever reports to previous commits before main merge
* add papermill installer strategies
* add flags to terminal
* avoid sdk crash
* execute notebook in thread
* remove unused sys
* execute report in a child process
* fix some notebook stuff
* fix portfolio report
* fix reports controller volatility
* change api to sdk
* move images
* remove som unucessary installer imports
* remove debugger warning
* move ipykernel launcher
* supress notebook crash
* remove portfolio decorator
* fix run command
* forgot to change this
* add images
* fix portfolio report
* fix crypto report
* linting and tests
* add run integration test
* pylint
* hide reports module args
* try at supressing args
* try at supreccing warning
* solve some os issues
* handle pm errors
* fix warning unrecognized arguments
* change comment
* avoid crash when parameters not found
* fix etf commands
* minor cleanup
* update forecasting check
* fix some linting
* fix futures test
* pylint
* limit user choices to prompt
* limit user choices to prompt
* supress warnings
* revert poetry lock back to main
* papermill pointing to main
* flake8
* forgot requirements
* Update helper_funcs.py
* Update reports_model.py
* choices
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt >
Co-authored-by: James Simmons <53658028+simmonsj330@users.noreply.github.com >
2022-10-26 21:27:30 +01:00