montezdesousa
659c214520
Add keys examples in docstrings ( #3497 )
...
* add keys examples
* add stocksera
* add more examples
* Update keys_view.py
* Update keys_view.py
* Update keys_model.py
* Update trail_map.csv
2022-11-21 19:43:07 +00:00
montezdesousa
1d3e468cb9
Portfolio optimization - plot, show and load endpoints ( #3443 )
...
* minor changes
* add spaces to print help
* start _show refactoring
* partial refactor po
* fix ef view
* refactor plot
* remove some unused stuff
* refactor charts
* forgot this
* validate input type
* change func name
* rename some endpoints
* move statics
* turn some args to kwargs
* rewrite equal docstring
* equal docstring again
* add docstrings and move some statics
* fix maxsharpe terminal bug
* refactor show
* fix ef
* add integration tests
* fix category bug
* fill some examples
* add more examples and fix nco
* add more examples
* add one more example
* add examples file
* add examples to load
* add detail to example
* add integration tests
* fix doc
* fix teste
* black
* flake
* pylint
* Linting
* Fix return
* Trying to fix display_plot
* display_rc_chart -> display_rc
Co-authored-by: Chavithra PARANA <chavithra@gmail.com >
2022-11-18 20:56:16 +00:00
teh_coderer
59d8b36bb0
[IMPROVE] Fix Docstring formatting/Fix missing, incomplete type hints ( #3412 )
...
* Fixes
* Update stocks_helper.py
* update git-actions set-output to new format
* Update stocks_helper.py
* Update terminal_helper.py
* removed LineAnnotateDrawer from qa_view
* lint
* few changes
* updates
* sdk auto gen modules done
* Update stocks_helper.py
* updates to changed imports, and remove first sdk_modules
* Update generate_sdk.py
* Update generate_sdk.py
* pylint
* revert stocks_helper
* Update generate_sdk.py
* Update sdk.py
* Update generate_sdk.py
* full auto generation, added sdk.py/controllers creation
* missed enable forecasting
* added running black in subprocess after sdk files generation completes
* removed deleted sdk_arg_logger
* comment out tests
* property doc fix
* clean up
* Update generate_sdk.py
* make trailmap classes useable for doc generation
* Update generate_sdk.py
* added lineon to trailmap class for linking to func in markdown
* changed lineon to dict
* added full_path to trailmap for linking in docs
* updated portfolio
* feat: initial files
* feat: added meta head
* feat: added funcdef
* added func_def to trailmap attributes for markdown in docs, added missing type hints to covid functions
* feat: added view and merged with jaun
* Update generate_sdk.py
* Update generate_sdk.py
* Update generate_sdk.py
* Update generate_sdk.py
* init
* fix returns
* fix: random stuff
* fix: random
* fixed encoding issue on windows
* fix: generate tabs
* update
* Update generate_sdk_markdown.py
* Create .pydocstyle.ini
* added type hint classes for views
* fixes
* alt, ba
* alt-economy
* Update finviz_compare_model.py
* fixs
* Update substack_model.py
* Update generate_sdk.py
* last of my section
* porfolio
* po
* Update optimizer_model.py
* fixing more things
* few more
* keys done
* update
* fixes
* Update generate_sdk_markdown.py
* Update generate_sdk_markdown.py
* mypy forecast fix
* Update generate_sdk_markdown.py
* Update generate_sdk_markdown.py
* Update generate_sdk_markdown.py
* fixes
* forecast fixes
* one more fix
* Update coinbase_model.py
* Update generate_sdk_markdown.py
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
Co-authored-by: James Maslek <jmaslek11@gmail.com >
Co-authored-by: jose-donato <zmcdonato@gmail.com >
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com >
2022-11-15 16:37:49 -05:00
montezdesousa
cd420c51c7
New format for SDK documentation ( #3211 )
...
* example changes in slopes
* change lettering size and side bar capitalization
* revert back to Fira
* start automatic website generation
* this was autogen
* add examples to slopes model
* generate slopes doc
* change to _index.md
* allow italic formatting
* fix regex
* option to regenerate paths
* update alt docs
* fix generate
* update alt
* fix generate
* update common
* target italic only for types
* format alt
* format italic common
* add sig indentation
* update sig indent alt
* update common ident
* add todo
* generate docstrings for all menus
* fix maxdd
* fix returns font size
* fix keys docs
* fix more docstrings
* escape literal symbols
* escape literal symbols
* reformat keys
* format opt
* remove literal escape
* remove another literal escape
* remove another literal escape
* unindent returns
* update docs return unindent
* add comma in last arg
* fix funcs without params
* fix signature
* compact some code
* refactor some more code
* refactor some code
* some final cleanup
* write docstrings
* change main
* move futures paths
* generate futures docs
* add external axes references
* fix typo
* revert to double docstring
* fix small bug
* remove docs folder
* generate.py in website folder
* add forecast to docs
* clear some warnings
* fix underscore
* remove cite
* refresh website docs
* fix forecast docstrings
* fix po
* fix po docs and remove italic
* fix more docstrings
* remove last warning
* codespell
* flake8
* exclude website contente from flake
* noqa on optimizer
* update website
* fix mypy
* remove setup from mypy
* mypy to openbbterminal
* update precommit
* pylint
* try to remove sdk loading issue
* avoid logging on test
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com >
2022-11-09 13:00:10 +00:00
Colin Delahunty
19660ff3ee
Updated check for new user ( #3302 )
...
* Updated check for new user
* Update docstring
* Fixed import error
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2022-11-04 10:18:23 -04:00
andrewkenreich
09f753da1c
More Fixes to Crypto + key sort ( #3244 )
...
* fix #3095 - autocomplete and command working + key sort
* fix #3056
* fix [Bug] bugs #3048
* fix [Bug] bug #3017
* sort -> sortby, not ascend, tests
* fix my goof ups
Co-authored-by: james <jmaslek11@gmail.com >
2022-11-03 11:45:40 -04:00
Colin Delahunty
b3e1b88186
Fixes traceback issue ( #3006 )
2022-10-24 10:27:57 +01:00
Colin Delahunty
52dd7a1f66
Add stocksera source to stocks/dps/ctb ( #2896 )
...
* Got stocksera source working
* Added fixes
* Removed prints
* Updated documentation
* Fixed pytest
* Added tests
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2022-10-19 23:24:48 +01:00
hjoaquim
37c39c3191
Degiro fix ( #2747 )
...
* little refactor for degiro company news
* fixed message always showing even on login fail
* added if there is a session before trying to retrieve holds
* minor fix to reset the session id
* added a creds reset on logout
* added credentials verification
* adds a test for degiro key
* added 2fa to the test
* added verification for topnews
* fixing pylint
* fixing tests
* fixing import order
* fixing keys tests
2022-10-14 12:13:35 +02:00
montezdesousa
1186939884
Fix keys menu: tokenterminal & shroom bug fix ( #2781 )
...
* fix tikenterminal and shroom
* add unittests
* add the 2 keys to api
2022-10-11 10:16:28 +01:00
jose-donato
4b4e86ad3b
Integration with Shroom ( #2367 )
...
* adding shroom
* added more shroom functions
* temp commit
* temp commit
* updated to use helper
* added tvl
* added shroom to keys
* tests
* updated to match didier fixes
* little fix in the example
* adding tests with Mr.Donato
* fixing decorator for models
* fixed tests for model w Mr.Donato Mr.Delahunty and Mr.Sousa
* feat: added shroom to keys
* added integration test
* re run tests
* fixing pylint
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt >
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt >
Co-authored-by: @montezdesousa
2022-10-10 14:22:43 +01:00
DidierRLopes
7979b1fc07
Add 3 Token Terminal commands ( #2447 )
...
* add crypto/ov/fun
* add tokenterminal to dependencies
* update website content
* add to main.yml
* fix tests
* add tests
* Update _index.md
* Update _index.md
* fix tests
* fix test
* List hint added
* improve code based on Jose input
* fix tests
* requirements for token terminal
* add source and fix source bug
* some improvements
* colors bars
* fix dependencies
* update kaleido version
* update setuptools for pkg_resources
* replace pkg_resources by importlib_metadata
* Added fixes
* Fixed tests
* fix stuff for Josecas
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
Co-authored-by: colin99d <colin99delahunty@gmail.com >
2022-10-10 00:28:42 +02:00
John Inge
a59e041d22
reformat ( #2742 )
...
* reformat
* add sortby as command in the regex filter
Co-authored-by: john <john@erlandsen.tech >
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com >
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt >
2022-10-09 13:11:11 +02:00
montezdesousa
cb5e610bcb
Set multiple API keys at once on OpenBB SDK ( #2716 )
...
* set fred keys through api
* linting
* doc change
* expose api keys dict
* allow optional persistency of api key change
* black
* place decorators
* add keys paths
* av and fmp keys
* some fixes
* rewrite av, fmp, fred cassettes
* quandl key
* polygon key
* rewrite polygon cassette
* news and tradier
* cmc key
* change some docstring
* change some docstring
* filtered keys dict on mykeys
* simplify mykeys collection
* revert arg to persist
* finnhub
* iex key
* reddit key
* reddit docstring
* check for prefix before removing
* glassnode key
* glassnode virtual path
* bitquery keys
* twitter key
* robinhood key
* degiro keys
* oanda key
* binance keys
* si key
* coinbase key
* refactor btcrb dates and logic
* walert key
* coinglass key
* regenerate cassettes
* cpanic keys
* ethplorer keys
* replace ouput status failed msg
* smartstake keys
* gitub keys
* messari keys
* eodhd keys
* santiment keys
* remove unused imports
* typo formatting test
* remove forbidden arg
* fix btcrb test
* fix test import
* revert cassette changes
* fix more tests
* fix last failing
* black
* try to change status to int code
* change status to int
* first try at keys controller refactoring
* fix some tests accordingly
* display msg on set
* change some vars
* remove elifs
* add progress bar and remove duplicate key check
* add mykeys and refresh to menu
* remove unused import
* change mykeys output to df
* remove check keys from keys ctrl tests
* update test split to new structure
* reduce duplicate code
* upper case
* change var name
* rename mykeys df cols
* add keys integrations tests
* add mykeys test to keys controller
* fix mykeys
* fix wrong eodhd var name
* pylint
* test_set_key
* black
* patch dotenv kinda
* fix mypy
* remove refresh
* filter mykeys df
* filter mykeys df
* update integration tests
* first unit test for set api key
* add 2 more test cases to fred
* add persist test to fred unittest
* add av unittest
* add polygon unittest
* generate av cassettes
* add unittests av, fmp, quandl, polygon, fred
* change si token to key
* forgot controller func
* unittest: news, tradier, cmc, finnhub, iex, bitquery
* add si unittest
* update eodhd key name
* add unittest: walert, glassnode, coinglass, cpanic, ethplorer, github, messari, eodhd, santiment
* black
* add reddit unittest
* refactor unittests to handle multi args
* regenerate cassettes
* add more unittests
* add degiro, oanda and rh unittest
* generate oanda records
* fix rh and degiro unittest
* fix oanda unittest
* black
* flake8
* fix si controller test
* move tmp
* pylint
* fix av test
* fix fmp key check
* rewrite fmp
* rewrite oanda output
* fix quandl check
* rewrite expected
* supress logger exception
* fix iex cloud key
* remove iex warning
* fix coinglass check key
* cpanic fix
* regenerate cpanic cassettes
* flake8
* fix smartstake keys check
* regenerate expected output
* fix eodhd
* try at binance
* black
* fix controller tests
* pylint
* disable warning
* flake
* add option to show keys
* add Enum to model
* regenerate test output
* update contributing
* flake
* fix type hint
* remove status msg dict
* pylint
* regenerate and remove unecessary cassettes
* remove duplicate return
* supress traceback
* remove unused imports
* update some docstrings
* add todo
* add export option to mykeys
* minor change
* refactor color scheme
* update contributing
* update contributing
* regenerate cassettes
* add set_keys
* add api list helper
* prevent wrong api names
* add some help if wrong kwargs
* change some name
* update some doctrings
* remove api block
* remove api block
* change endpoint name
* pylint
* fix check output
* small msg change
* small details
* rewrite some tests
* Removed bad test
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt >
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
Co-authored-by: colin99d <colin99delahunty@gmail.com >
2022-10-09 09:04:25 +02:00
Theodore Aptekarev
9a246dd76b
Refactor alphavantage commands in economy menu ( #2739 )
...
* Refactor economy alphavantage commands
* update tests and test data
2022-10-08 20:39:29 +02:00
martinb-bb
7fd72d9ee1
Forecasting Menu [Work in Progress] ( #1933 )
...
* Gave forecasting memory
* Fixed scripts, refactored
* FIxed poetry lock
* edge case check for forecast target
* Improved combine and load functionality
* Cleaned up translations
* Fixed issue with covariates
* Fixed issue checking covariates
* Another covariates check fix
* Ignored regr and linregr warnings
* Fixed covariate issues
* switched from forecasting to forecast
* Finished transition to forecast
* Can add entire dataset with one command
* Improved combine description
* Removed naming covariates
* Created new installation
* typo
* Make plot show dates if available
* Added better handling or users without the menu
* Removed unused file
* Fix
* Better handling for nontraditional datasets
* Fixed black and pylint
* Fixed tests
* Added darts install to main tests
* Working on darts with CI
* Added back test file
* Made large tables print better
* naive baseline
* typo
* Finished naive
* no dollar on prediction
* fixed positive MAPE bug
* quick refactoring
* Fixed two different args for same thing
* added extra patience
* linreg mape fix
* info fix
* Refactored API, bumped to Darts 0.21.0
* Added fixes
* Increased verbosity for wrong column
* Updated dependencies
* Hid warnings
* Fixed importing
* Fixed tests
* Fixed ugly seasonal plotting
* Fixed forecast line color
* Switched chart output to blue
* Simplified lambda_price_prediction_color
* fixed residuals
* Chnage
* Removed darts from CI per Chavi
* Added fixes to tests
* Added knnfix
* Fixed issue where n!= o
* Added changes
* Added changes
* Imrpoved forecast dash
* Added Theo notebook
* Added enhancements to dash
* Added notebook
* Added fix for jupyter lab
* Added debug stuff
* Change
* Updated docs
* Fixed formatting
* Fixed formatting
* Removed prints
* Filtered some info
* Added button to run model
* Improved api
* Added secret feautr (no peeking Martin)
* Cleaned code
* Fixed tests
* Added test fixes
* Added fixes
* Fixes
* FIxes for pres
* Remove bad tests
* Removed knn
* Fixed issues with removing mc
* doc for conda
* Added forecast improvements
* Added streamlit support
* Fixed issues
* fix expo with streamlit due to quantile()
* fixed performance issues with streamlit for now..
* clean up historical forecast with new trainer
* quick fix for regression trainer params
* Added fixes
* quick fix for other fix for regression trainer params
* table formatting for timestamp
* potential fix for inf in feature engineered datasets
* Basic working in new format
* dw
* Trying
* Fixed issues
* Improved graphing
* fixing trainer for LR and formatting
* doge and linting
* page break
* automatic cleaning of datasets
* automatic cleaning of datasets- fix
* Fixed forecast dates
* Made dashboard prettier
* Added fixes
* Added fixes
* Added options
* Fixed error
* remove caching
* adding in spinner
* Added vairable n_predict in streamlit
* Added mypy fix
* renaming and range change
* new index for n predict
* check positive float for window size
* Update _index.md
* Update _index.md
* Update _index.md
* Update _index.md
* Update _index.md
* Update _index.md
* Update _index.md
* Update _index.md
* Update _index.md
* renaming
* reorg files
* Update _index.md
* hidden which command for versions
* Update _index.md
* Update _index.md
* which: ns parser
* hugo for: which
* hugo for: forecasting fix
* formatting black
* update stock controller test
* Lay groundwork for better residual plotting
* improved delete to allow for periods in title
* improved automatic cleaning of inf
* Added new API
* Added new API
* Added new API
* formatting for black
* Updated our testing CI
* Reverted changes
* Added forecast docs
* Fixed mypy issues
* Fixes tests
* Did some refactoring, added a report
* new api in streamlit
* Added integrated tests
* Update _index.md
* improved loading in custom dataset
* menu spacing
* installer fixes
* Added docs fixes
* Adding comments to test if commit working
* Fixed report
* naming conventions
* formatting
* removing unused var
* Made last report imporvements
* Update README.md
* Added fix
* Switched to warning
* Added fixes
* Added fixes
* Added fixes
* Added fixes
* Update economy av view test
* Remove forgotten print statement
* Update depencencies
* Added verbosity to pytest
* Added fixes
* Fixed pylint
* Fixed actions checkout
* Added fixes
Co-authored-by: colin99d <colin99delahunty@gmail.com >
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
Co-authored-by: James Simmons <simmonsj330@gmail.com >
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com >
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com >
2022-10-08 14:54:43 +02:00
montezdesousa
732a614937
Allow users to change api keys through OpenBB SDK ( #2642 )
...
* set fred keys through api
* linting
* doc change
* expose api keys dict
* allow optional persistency of api key change
* black
* place decorators
* add keys paths
* av and fmp keys
* some fixes
* rewrite av, fmp, fred cassettes
* quandl key
* polygon key
* rewrite polygon cassette
* news and tradier
* cmc key
* change some docstring
* change some docstring
* filtered keys dict on mykeys
* simplify mykeys collection
* revert arg to persist
* finnhub
* iex key
* reddit key
* reddit docstring
* check for prefix before removing
* glassnode key
* glassnode virtual path
* bitquery keys
* twitter key
* robinhood key
* degiro keys
* oanda key
* binance keys
* si key
* coinbase key
* refactor btcrb dates and logic
* walert key
* coinglass key
* regenerate cassettes
* cpanic keys
* ethplorer keys
* replace ouput status failed msg
* smartstake keys
* gitub keys
* messari keys
* eodhd keys
* santiment keys
* remove unused imports
* typo formatting test
* remove forbidden arg
* fix btcrb test
* fix test import
* revert cassette changes
* fix more tests
* fix last failing
* black
* try to change status to int code
* change status to int
* first try at keys controller refactoring
* fix some tests accordingly
* display msg on set
* change some vars
* remove elifs
* add progress bar and remove duplicate key check
* add mykeys and refresh to menu
* remove unused import
* change mykeys output to df
* remove check keys from keys ctrl tests
* update test split to new structure
* reduce duplicate code
* upper case
* change var name
* rename mykeys df cols
* add keys integrations tests
* add mykeys test to keys controller
* fix mykeys
* fix wrong eodhd var name
* pylint
* test_set_key
* black
* patch dotenv kinda
* fix mypy
* remove refresh
* filter mykeys df
* filter mykeys df
* update integration tests
* first unit test for set api key
* add 2 more test cases to fred
* add persist test to fred unittest
* add av unittest
* add polygon unittest
* generate av cassettes
* add unittests av, fmp, quandl, polygon, fred
* change si token to key
* forgot controller func
* unittest: news, tradier, cmc, finnhub, iex, bitquery
* add si unittest
* update eodhd key name
* add unittest: walert, glassnode, coinglass, cpanic, ethplorer, github, messari, eodhd, santiment
* black
* add reddit unittest
* refactor unittests to handle multi args
* regenerate cassettes
* add more unittests
* add degiro, oanda and rh unittest
* generate oanda records
* fix rh and degiro unittest
* fix oanda unittest
* black
* flake8
* fix si controller test
* move tmp
* pylint
* fix av test
* fix fmp key check
* rewrite fmp
* rewrite oanda output
* fix quandl check
* rewrite expected
* supress logger exception
* fix iex cloud key
* remove iex warning
* fix coinglass check key
* cpanic fix
* regenerate cpanic cassettes
* flake8
* fix smartstake keys check
* regenerate expected output
* fix eodhd
* try at binance
* black
* fix controller tests
* pylint
* disable warning
* flake
* add option to show keys
* add Enum to model
* regenerate test output
* update contributing
* flake
* fix type hint
* remove status msg dict
* pylint
* regenerate and remove unecessary cassettes
* remove duplicate return
* supress traceback
* remove unused imports
* update some docstrings
* add todo
* add export option to mykeys
* minor change
* refactor color scheme
* update contributing
* update contributing
* regenerate cassettes
* fix check output
* small msg change
* small details
* rewrite some tests
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt >
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
2022-10-08 12:30:23 +02:00