montezdesousa
12a41ca63a
Fix stocks/news command ( #4653 )
...
* fix news dataframe
* fix feedparser
* rewrite expected
2023-04-02 23:26:46 +00: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
Colin Delahunty
cebf454cdf
Added flake8-simplify ( #4227 )
...
* Added flake8-simplify
* Update linting.yml
* update. left 1 for you colin
* Fix that one
* Missed
* Fix
* mypy
---------
Co-authored-by: james <jmaslek11@gmail.com >
2023-02-20 19:27:34 -05:00
Colin Delahunty
ee34a1f278
Feature/add isort linter ( #4114 )
...
* Fixed isort
* Fixed issues
* FIxed linters
---------
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2023-02-04 21:24:47 -05:00
James Maslek
eb2c11060d
Refactor requests throughout ( #4033 )
...
* bump
* Initial function write
* Delete this line from yaml
* Changed all the main things - Need help on tests
* pylint errors
* Tests v0
* Tests v1
* Tests v2
---------
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com >
2023-01-27 14:01:07 -05:00
montezdesousa
bfc4c021e7
Fix incorrect date typing in signatures ( #3524 )
...
* Report fixes
* replace wrong typing
* mypy
* mypy again
Co-authored-by: james <jmaslek11@gmail.com >
2022-11-22 17:15:40 -05: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
f1de004567
Remove signatures with volatile date defaults ( #3385 )
...
* 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
* fix dates active command
* fix crypto.change formats
* fix eb formats
* nonzero fix
* format dates crypto.load
* format supply transac
* format hr altindex
* format load crypto
* regenerate docs
* format ba trend dates
* regenerate docs
* format ba trend
* candle defaults
* fix sentiment test
* remove unused import
* shopt
* shopt again
* revert crypto helpers
* test shopt
* fix some tests
* skip trending test
* fix alcoin test
* helpers
* write docs
* rewrite helper
* fix crypto dd defaults
* fix some date defaults
* regenerate website
* fix santiment model
* fix get trending
* fix more defaults
* generate website
* fix ftd view data default
* black
* regenerate website docs
* regenerate docs
* refactor remaining funcs
* pcr doc
* Checkout from main
* flake8
* regenerate docs
* regenerate docs
* fix build
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com >
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
2022-11-15 11:19:14 +00:00
DidierRLopes
58fb4cd190
fix news sources ( #3118 )
...
* fix news sources
* lint
* ordering
* fix tests
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2022-10-27 14:51:59 +01:00
montezdesousa
cf9670303c
Populate model functions with check_api_key decorator ( #2755 )
...
* fred decorator
* fmp decorator
* quandl decorator
* reddit decorator
* polygon decorator
* twitter decorator
* news decorator
* tradier decorator
* cmc decorator
* binance decorator
* finnhub decorator
* iex decorator
* sentiment investor
* walert decorator
* glassnode decorator
* coinglass decorator
* cryptopanic decorator
* bitquery decorator
* smartstake decorator
* messari decorator
* github decorator
* santiment decorator
* eodhd decorator
* import check_api_decorator
* fix some decorators
* fix some decorators
* remove some decorator
* decorator fixes
* black
* mypy
* mypy again
* mypy again
* pylint
* decorator
* too many line
* fix fred ycrv
* mypy
* rewrite events test
* another try
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com >
2022-10-12 17:36:49 +01:00
Chavithra
72b0a9f1ee
Next release : reports on steroids ( #2349 )
...
* fix gov tests
* refactor insider
* new virtual path extraction
* removed some symbol default params as they're considered critical
* little adjustments
* portfolio refactor
* merge API factory
* add helpers, stocks, crypto, forex
* minor forex changes
* include forex api paths
* add 2 missing forex funcs
* portfolio brokers refactor
* display help on api func call
* add econometrics virtual paths to api
* add api unit test
* fixed report for the new api
* minor portfolio refactorings
* added gdapps
* anchor_yield path
* some more crypto path fixes
* small change
* fixed wrong param
* minor fixes
* wip - inital commit for forex report
* add bw as a model, we'll get better solution afterwards
* added ema with dummy model as it adds great functionality to the report
* minor fixes
* wip - added functions to forex report
* add feedparser news path
* add new virtual paths to api
* adding commands to equity report
* revert to old paths, new ones were breaking
* Add in very basic ETF report
* Add candle chart to ETF report
* add etf load
* allow use of candle without data
* add raw to candle
* added forex report
* ongoing equity report
* equity report change
* fix some portfolio bugs and add docstrings
* include portfolio paths and coin class
* add crypto paths
* change event dates to str
* starting economy report
* window for limit
* equity report and refactor newsapi
* add helper to api
* update on economy report
* equity report
* update economy report
* refactor some docstrings
* change maturities helper
* refactor newsapi
* refactor futures command
* add some sauce to ycrv plot
* black
* update report
* refactor alphavantage
* refactor wsj
* update economy report
* ycrv tenor
* map avaiable_indices
* map economy helpers
* fix econdb docstring
* add plots on economy report
* minor fixes
* wip - crypto report
* update economy report
* added same default args as view
* added view to explicity use chart=True when suing the api
* adjustments - removed rich tables to use only df
* final version economy report
* change report name
* equity report for review
* linting
* add etf symbols endpoint
* incorporate feedback economy report
* fix reports launch by adding tag to economy report
* fix equity bug
* remove analyst name
* fix
* fix news
* make links hyperlinks for equity
* click links
* fixed arg name
* improved news
* small improves
* Fix light terminal stylesheet that would prevent using it in notebooks (#2473 )
* improved report
* run reports in installer
* fix #2209
* minor ycrv refactoring
* refactor portfolio/holdv virtual path
* refactor benchmark trades
* fix events args
* adapt economy report to changes
* fix portfolio controller bug
* holdv refactor
* refactor perf command
* start portfolio report
* remove perf view
* refactor holp
* add textwrap3 to poetry (doesn't solve the error)
* fix equity after merge
* add some rolling commands
* fix equity after save button
* improved crypto report, plus minor fixes
* minor fixes on the reports
* add maxdd and distr
* refactor qa
* var command
* refactor qa expected shortfall
* add es command
* add es command
* fix qa percentile bug
* fix economy rendering
* refactor qa omega
* add om command
* add summary command
* add dret command
* add mret command
* add yret command
* add metrics
* add allocs to report
* remove bro and po commands, add later
* fixed some tests
* adjustments to crypto report
* Fix docstring for VSCode
Added a note about installing Jupyter PowerToys extension for optimal API usage in Jupyter VSCode, in the API_README.md.
* minor adjustment
* remove nft calendar model virtual paths
* Add in Portfolio report
* fix external axes portfolio view
* Update portfolio report with rolling plots
* Details for ETF and Portfolio
* fix economy report
* change analyst to openbb
* floppy
* fixed unmatched axis in reports
* Speed up tests
* fix file and load on po
* get_news output
* add some po paths
* Add integration tests for Reports menu
* refactor maxsharpe
* open maxsharpe
* open minrisk
* open maxutil
* open maxret
* Added fixes
* black
* remove useless views
* Fixed small issue
* refactor ef
* open ef api
* portfolio optimization report
* Added fixes
* unblock api loading
* add more endpoints
* update po report
* unblock api loading
* update po report
* expose herc
* expose property endpoint
* Added fixes
* More api fixes
* flake8
* Fixed some mypy
* news api model
* flake8
* mypy fix
* mypy
* black
* pylint
* fix tests
* markdown
* markdown
* Added fixes
* fix economy report
* merge
* fix economy report
* remove empty notebook
* expose nco
* remove jupyter notebook
* expose plot endpoint
* remove po report, just used for tests
* api v paths plot
* remove api_old
* change loading msg
Co-authored-by: montezdesousa <montezdesousa@gmail.com >
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt >
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
Co-authored-by: Om Gupta <guptagom@gmail.com >
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com >
Co-authored-by: JerBouma <jer.bouma@gmail.com >
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com >
Co-authored-by: Om Gupta <85685255+soggyomelette@users.noreply.github.com >
Co-authored-by: Diogo Sousa <diogosousa@Diogos-MBP.lan >
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com >
Co-authored-by: colin99d <colin99delahunty@gmail.com >
Co-authored-by: Minh Hoang <nminh.hoang1023@gmail.com >
2022-09-20 15:07:58 +01:00
Chavithra
9e1a58e2db
Here we merge all API Refactor related branches ( #2236 )
...
* Update api.py
* Updated forex menu
* refactor ycrv command
* refactor ycrv command black
* refactor ecocal command
* Minh changes
* Adding space to test pushing
* title fix ecocal df
* get economic calendar annotation
* fix investingcom tests
* refactor index command
* refactor overview command
* give defaults to wsj view function args
* rename date args investincom
* refacto bigmac command
* fix ecocal typo
* refactor rtps command
* alphavantage gdp
* alphavantage gdp per capita
* alphavantage cpi
* alphavantage tyld
* alphavantage inf
* refactor macro command
* refactor macro command w helpers
* refactor treasury command
* fix macro on terminal
* treasury labels
* refactor maturities
* update treasury maturities doc strings
* refactor get economic calendar finhub
* refactor map command api
* display map filter choices
* route economy api to performance map
* route economy api to performance map
* display group choices on valuation command
* refactor performance and valuation commands
* refactor spectrum model and view
* add choices to spectrum controller
* delete image after view
* fix model tests finviz
* fix finciz view tests
* refactor futures
* fix some tests
* fix more tests
* fix controller test
* refactor fred series notes
* update fred notes docstring
* refacto fred series ids
* fix pred and qa when empty datasets
* refactor fred
* uncomment stuff
* refacto get series data
* fix some tests
* set defaults on args
* refactor fred yield curve
* black
* fix spell and remove ecocal names
* fix linting
* linting
* pylint fix
* change dangerous defaults
* Working through crypto fixes (#2256 )
* Working through crypto fixes
* Continued adding crypto stuff
* Added crypto overview
* Added test fixes
* Added fixtures
* Fixed tests
* Fixed charting issue
* Removed broken APIs
* Final adjustments
* Added test fixes
* map get groups and get ycrv countries into old api
* exposed econdb helper funcs
* remove helpers
* refactor search indices
* linting
* refactor arg currency
* pylint from currency
* Started switching crpyto ascending to ascend
* Merging
* Portfolio model arguements, params, and docstring
* Refactored for etf commands (#2292 )
* Refactored for etf commands
* Fixed tests
* Added load command
* Fixed menu
* Portfolio logic fixes
* Added econometrics (#2260 )
* Added econometrics
* Fixed tests
* Simplified API
* Added test fixes
* Added test csv
* Allowed examples to be loaded
* Fund refactor (#2291 )
* Fund refactor
* Changed fund_name and fund to name
* Changed ascending to ascend
* Stock menu refactoring for easier API usage (#2194 )
* Stocks refactoring for easier API usage
* Linting
* Refactor newly added features
* Linting
* Fixing tests
* Refactor common files used by stocks menu
* Fixing flake8
* Fix linting and tests
* Linting
* Fix flake8
* refactor insider_data
* refactor mentions
* refactor watchlist
* refactor sentiment
* refactor sentiment
* fix yahoofinance tests
* refactor load and candle
* refactor get_news and display_news
* refactor stocks.ins.act
* candle default matplotlib
* fix yahoofinance_view tests
* fix ark model tests
* fix ark view tests
* fix business insider model
* fix business insider view
* refactor csimarket model
* fix tests csi market model
* update dd controller
* fix get suppliers tests
* fix dd controller tests
* fix finhub tests
* fix finviz tests
* fix fmp tests
* fix marketwatch tests
* corrected argument keywords in test_bt_model
* corrected argument keywords in test_bt_view
* refactor fa controller
* refactor marketwatch view
* refactor gov controller
* fix tests fa av
* fix tests elect
* fix dcf tests
* fix polygon tests
* fix fmp tests
* fix quiverquant tests
* fix yahoofinance fa tests
* fix more fa tests
* fix insider tests
* fix more tests
* fix more tests
* fix options tests
* fix stock gov tests
* fix tests test_ba_controller
* fix tests for test_finviz_compare_model.py
* fixed 2 tests
* fixed tests
* fixed tests
* fixed tests
* fixed tests
* fixed tests
* fixed tests
* fixed tests
* fixed tests
* fixed tests
* fixed tests
* fix final tests
* fixed tests
* fixed tests
* Fix tests
* black
* forgot to black tests
* fixed tests
* fixed tests
* fixed tests
* fixed tests
* flakefix
* Tests + code : Stocks / Discovery
* fix tests
* added recorder
* fixed tests
* fixed tests
* black
* black
* remove unused imports
* refactor display raw
* sia dicts fix
* pylint
* linting
* remove dangerous default
* fix tests
* fix beta model test
* black
* skip screener qa test
* change sector path to sectors
* update tests readme
* fix metric defaults
* black
* substitute lost ticker
* defaults cpic
* another round on sia
* refactor cramer
* reduce default tweets on sentiment
* refactor yf hist, corr, volume
* arkorders default
* refactor income, balance, cashflow
* refacto scorr, screener, getfinnhub
* refactor stockgrid
* ibkr refactor
* another round on stockgrid
* add dividens end point
* refactor discovery endpoints
* update docstrings with similar input
* refactor messages
* refactor ba
* refactor regioons
* refactor twitter sentiment
* refactor hist
* refactor regions
* give default to timeframe
* refactor bunch of defaults and arg names
* remove leftover imports
* refactor vwap
* let tests run
* fix tests
* fix stock tests
* fix stockanalysis tests
* flake
* MYPY
* Made important changes
* added fixes
* Fixed big issue
* Added fixes to tests
* fix qa tests
* fix tests
* fix 1 more test
* last stocks failing
* fix crypto test
Co-authored-by: Chavithra PARANA <chavithra@gmail.com >
Co-authored-by: montezdesousa <montezdesousa@gmail.com >
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt >
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
Co-authored-by: colin99d <colin99delahunty@gmail.com >
* fix portfolio tests
* change period to window
* update ca docstrings
* refactor get_similar_companies func
* Fixed
* Update CI
* Update CI 2
* Update CI 3
* Update dependencies
Co-authored-by: colin99d <colin99delahunty@gmail.com >
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
Co-authored-by: montezdesousa <montezdesousa@gmail.com >
Co-authored-by: James Simmons <simmonsj330@gmail.com >
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com >
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com >
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com >
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com >
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt >
2022-08-17 15:28:54 +01:00
Minha, Jeong
8a9d8fea87
Requests using style fix ( #1691 )
...
* remove multiple json call
* limit error fix and code refactoring
Co-authored-by: 정민하 <mhjeong@sharekim.com >
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com >
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt >
2022-04-17 23:57:27 +01:00
jmaslek
b71abcfbf4
Updating some names ( #1575 )
...
* quick econ fix
* black
* keys and feature flags
* terminal name 👀
* some more replacements
* some more replacements
* edit pyproject
* gst -> openbb
* add example portfolios back to git
* Update api from gst
* sorry. skipping some tests
* another round of names
* another round of test edits
* Missed some .gst refs and update timezone
* water mark stuff
* Fixing Names in terminal.spec and name of GTFF_DEFAULTS to OBBFF_DEFAULTS
* fix more GST to OpenBB Terminal
* Logging : merge conflicts with main
* Revert wrong files
Co-authored-by: Andrew <andrew.kenreich@gmail.com >
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt >
Co-authored-by: Chavithra PARANA <chavithra@gmail.com >
2022-03-29 09:46:26 -04:00