* upload routine to hub on stop
* write cassette
* write cassette
* remove .openb from name
---------
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* Allow to set variables and do loops
* Fix mypy errors
* improve code
* mypy
* pylint
* accepts Openbb date keywords like 1MONTHAGO,LASTFRIDAY,3YEARSFROMNOW,NEXTTUESDAY
* warn fix
* add documentation for script foreach and vars creation
* refactor controller as per James request
* black linting
* add another warning
* Editing some routine enhancements (#5063)
* move routine to new file
* Move to relativedelta and add some tests
* Fix mocking
* Get match_and_return_openbb_keyword_date to 100% cov
* start testing parse script
* remove rogue prints
---------
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
* big improvement in routines tests
* mypy lint
* ruff lint
* lint
* typo
* test relative time
* cover edge case of home at end of script
* fix edge case for going to home at start
* explain better slicing
* foreach tests added
* lint
* allow foreach loops to have different var names that is iterating
* foreach more powerful
* warning when var in foreach is not used
* fail script when varname that iterates foreach loop is never defined
* black
* lint again
* ruff
* improve another edge case
* fix test and fix a description
* fix nft test and routine test
* why mutual fund test failing
---------
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* WIP - command name refactor + eliminate need for an API key to make < 25 requests per day
* check for no Ultima API Key properly
* test_print_help fixes
* reflect changes from #4697
* re-run test_ultima_newsmonitor_view with --rewrite-expected
* re-run tests without breaking news
* avoid keys to alwyas check status
* ruff
* improve text on show flag
* removing force flag
* use bool
* improve help functionality
* fix tests
* trying to fool pylit
* using exception handling
* printing the result for a single key
* Don't check status if --help
* black
---------
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
* fix typing issue that prevents running
* news monitor integration for news
* UX improvements with news monitor integration
* italicize riskExtDesc
* minor cosmetic changes
* minor cosmetic changes
* minor cosmetic changes
* Update ultima_newsmonitor_view.py
* minor fixes to launch properly
* setting Ultima API key
* Ultima NewsMonitor integration into terminal done
* integration of the commands is done
* add Ultima to SDK trailmap, but SDK generation failed on M1 Mac
* add tests
* add unit tests
* Linting and sdk
* display message if not supported by Ultima News Monitor
* Update api-keys.md
* fix stock controller problem + remove source filtering from Ultima
* remove source filtering from Ultima
* add report issue message
* add some error handling in the view to ensure unsupported companies don't get fetched
* remove powered by Ultima Insights from console output
* ran black formatter to fix linting issues
* fix ruff issues
* fix pylint issues
* lint fix
* fixed linting issue and changed keys in the Feedparser model
* get all tests to pass
* proper testing with --record-mode=rewrite
* re-run tests for updated VCRs
* redid black formatting
* re-run test_print_help in stocks controller
* make breaking news output consistent and re-run tests
* remove unused import time
* reran tests with --rewrite-expected
---------
Co-authored-by: ovidysus0 <111447781+ovidysus0@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
* import order
* pylint
* no login, go to prompt
* add logout and whoami
* clear before prompt
* black
* these are unecessary
* error
* improve login prompt message
* login does not follow the controller pattern, so will name it differently
* nop
* move logout and change to results
* change return obj
* ruff
* pyupgrade
* remove user from statics
* message
* fetch configs at start
* remove unecessary func
* unecessary dataclass
* change user vars
* change login flow
* remote logout should not be used
* simplify
* fix double exit logout bug
* wrong exception
* apply keys
* change controller
* mypy
* save if no internet
* pylint
* logout everywhere
* breaking changes: move to local/hub models
* unused import
* fix logout bug
* whoami in guest mode
* add todo
* small bug guest allowed
* limit flair length
* fix bug on user pull
* logout working
* handle no connection
* logout user when logout
* remove keys push
* split logger funcs
* commant apply configs for now
* account to session
* rename user
* clear sounds better
* breaking changes: splitting guest from logged users
* pull imports up
* delete session model
* move logout func
* add ability to save and apply keys from remote
* no sensitive keys
* add support for feature flags
* unecessary print
* allow settings from differnt modules
* change setff to static
* change way to set ff
* fix bug in applying configs
* simplify obbff application
* bug on setting configs
* allow text ff
* obbff in settings
* add upload to cfg_plot 1
* data sources + backend
* this solves circular import?
* move create_session to model
* rever logs changes, not needed for now
* sync optionally
* outline account controller interface
* don't sync when guest
* block guest on installer
* or not and
* start routines
* fix bug on ff, settings
* is installer
* implementing chavi suggestions
* fix colors on installer prompt
* Logging login (#4046)
* basic logging for the login
* removing unused import
* hacking the logs custom filter to not filter the email
* black
* cooping with the new changes
* removing redundant method
* ruff
* ruff
* mypy
* SDK login (#4051)
* sdk login
* adding to the trail map
* minor fix
* improve sdk expirience
* adapting to new changes
* add docstrings
* block guest from account
* change guest msg
* change guest messages
* add sync on/off
* display onoff
* missing paragraph
* fix glitch on logout
* add sys clear
* filtering password
* filtering the email from user
* avoid writing to multiple log files if a user logs out
* fix bug, guest allowed in installer without connection
* log user on the sdk
* split login from lauch
* add clear and change messages on account
* docstrings
* start pull cmd
* change account menu description
* Fix login bug and decouple some logic (#4056)
* fix bug, guest allowed in installer without connection
* split login from lauch
* improvements on the sdk login
---------
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
* sync fix
* change account controller description
* ruff
* add help on account cmds
* update clear prompt
* fix email not in jwt
* remove jwt from requiremnts
* pull command output
* remove character
* pull cmd when no data
* add space below whoami
* fix log filenotfound exception
* changed arg name
* delete .hist on logout
* add asteriscs to password
* pylint
* uncomment rich config
* show only diffs on pull
* black#
* warn when no changes#
* pull msg was switched
* apply diff only
* breaking?: strbool change
* reduce some code
* add timeout to hub requests
* black
* add remote logout
* success msg only if success
* remove colors in prompt
* update docstrings
* keep timeout outside funcs
* update clear
* clear and patch
* delete session
* routine upload
* move .his file to .openbb folder
* change apply configs
* refactor logout
* remove mixed portfolio changes
* fix bug in lock file
* fix bug pwidth, pheight are floats
* fix sources command & add choices
* refactor timezone setting
* userdata
* fix flair
* need to cast paths
* cast on diff
* fix flair default
* save session test
* get session
* data
* test remove
* test remove with assert
* add bad test cases
* add exception cases to unittests
* test remove cli hist file
* black
* test apply configs
* test apply with sync flag
* test create session, session model
* login tests, session model
* some tests for the hub_model
* test logout user
* black
* test clear vars, reload
* test create session
* update user-json to user
* update user class
* add user tests
* tests sdk session
* tests for hub_model
* start account controller tsts
* unused import
* tests account controller: clear, pull
* tests for session_controller
* logout success bugfix
* add integration test for account
* black
* move routine related commands to other PR
* test for the user input
* completed tests for session controller
* convert to hist to str)
* fix import errors
* ruff
* ruff tests
* fix qa
* add help to settings cmds
* ruff
* fix pull keys bug
* point to dev
* account model tests
* black
* ruff
* fix for empty feature settings
* ruff
* don't display config msg if wrong token
* general msgs
* remove print
* ruff
* fix sources not updated real time
* missing return doc
* add guest if no email
* Routine remote storage (#4143)
* add upload routine command
* remove prints
* point to local again
* add commands
* add delete
* add download command and upload 409
* list comprehension
* add download & save plus upload fixe
* add user uuid folder
* add list command
* ruff
* en.yml detail
* provide choices to delete & download
* add choices to upload
* change menu text
* starting adding unit tests
* bad english
* Update test_print_help.txt
* genearl msgs
* remove print
* add docstrings
* add unit tests to account controller
* change parser
* fix routine upload test
* add to be implemented tests hub
* add to be implemented tests local
* add total pages to title
* split list into model and view
* add docstring
* print msg if character
* add local model tests
* hub tests routines
* fix test
* point to dev and glob
* fix small bug on upload
* missing return
* log decorators missing
* black
* ruff
* change prompt display
* rewrite test
* rewrite expected
* rewrite call
* try passing git action
* change .yml everywhere
---------
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* 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>
* bump
* Update ALL the exports with sheet name option
* Update contributing too
* Add in sheet name to each docstring
* Update tests
* Fix the small things for tests
* Converting CONTRIBUTING.md back since I put minimal changes in and it complains
* Fix terminal exit after `--sort p/e` (#4013)
* fix scr sort exit
* rewrite unit test output
* rewind slash replace
* rewind slash replace
* fix regex
* rewrite expected scr tests
* black
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* fix: small typo (#4036)
* fix income comparison error (#4029)
* Update tests due to yfinance error
* I broke tests and fixed them
* Fix tests?
* Missed a few sheet name additions
* missed one more
* Fix some missing sheet_name parameters
* Fix a test I broke
* Update tests due to changes with sheet_name
* Update stocks and common
* Mutual funds just because
* Portfolio update
* Update Forecast
* Update Futures
* Update ETF
* Update Economy
* Update Crypto
* Update others
* Update documentation to explain --sheet-name
* It should be None test
* Add None for sheet_name since empty string can result in errors
* Formatting
* Fix tests
* Update documentation
* Also update the image
* Add back to options commands
Co-authored-by: james <jmaslek11@gmail.com>
Co-authored-by: Jeroen Bouma <jeroenbouma@Jeroens-MacBook-Pro.local>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
* potential solution number 1
* Making sure certifi is referenced for news and fred
* Fix default sources not being applied
* Add unit and integration tests
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
* Add helper command to filter unix paths and other edge cases
* Remove sort argument filtering from parsing
* Make --file arg mandatory for loading files
* Refactor queue parsing logic
* Enable adding controller level input parsing filters
* Remove the github repo path hack because it's not needed anymore
* Fix typos and line length linting
* Update unix path parser to match known extensions
* Update oss custom filters to not require space after slash arg
* Fix tests and failing linters
* Add pre-commit hook to check for reserved arguments validity
* Fix tests
* Fix finviz compare screener tests
* Fix screener test
* Fix screener test
* Fix float representation in pd dataframe on finviz screener tests
* Update test records
* Update test records
* Remove explicit float formatting in tests
* Update tests
* Remove prepending file argument
* Update long arguments that have lost their short default to file
* Update arguments in docs
* Update portfolio test data
* Fix econometrics/desc throwing error on empty df and fix tests
* Update tests
* Fix econometrics load autocompletion
* Fix portfolio tests giving different results every time
* Allow loading openbb scripts from arbitrary path
* Fix passing path as a terminal argument
* Fix guess game being case sensitive
* Silence bandit warning about using pseudo-random generators
* Update gov tests
* Fix screener sort fields that have forward slash
* Make controllers apply custom argument filters on entry
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
* fix darkpool api
* fix typo
* add default params on RSI ta
* fix ta models for stocks api
* fix ta models for stocks api
* improve API
* improve API
* test_finbrain updated
* fix finbrain model api
* ba controller
* improve API
* minor improvs to API
* a newly fantastic equity report
* fixed image issue
* add help to tier in finra command
* make export to default to False for API use
* remove ipynb_checkpoints
* remove extra file
Co-authored-by: jose-donato <zmcdonato@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
* 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
* Add statsmodels and linearmodels datasets to bundle
* Update openbb test scripts to exit after they're done
* Fix default export path for packaged apps
* Update packaging settings after rename
* Exclude jupyter and report from packaged apps and testing
* Fix typo
* Remove divcal from test because it freezes the terminal
* Add openbb mac icon
* Add windows icon and splashscreen
* Fix markdown linting
* Fix gov & economy failed test (#1585)
* fix more GST to OpenBB Terminal
* Fix gov & economy fail tests
* Small changes
* Patching valuation & performance command
* Change GTFF to OBBFF
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
* Resolve no-else and inconsistent return
* Set default predict to true
* Fix multiple bugs: Add ylabels to bt menu & Fix reports bug (#1581)
* Add y labels to all bt commands
* Fix reports bug
* Update crypto market
* Update crypto market
* Remove gst folders and remaining files
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
* Break CI
* Break CI again
* Fix small rsi bug (#1588)
* Add y labels to all bt commands
* Fix reports bug
* Update crypto market
* Update crypto market
* Remove gst folders and remaining files
* Add back crypto market
* Update report controller
* Remove bt view from gst
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
* Clean up remainder of Gamestonk
* Fix CI back
* Force CI to install pytest
* Tests : fix test_menu
* Fix loggers linting
* Rename default OPENBB feature flags
* Rename defaults feature flag file
* Loggers : fix mypy
* OBBFF to OPENBB in terminal.spec
* Change flair to butterfly
* Force CI to create a new cache
* Force CI to create a new cache in conda tests
* Skip test
* Clear other caches
* Fix linting
Co-authored-by: james <jmaslek11@gmail.com>
Co-authored-by: Andrew <andrew.kenreich@gmail.com>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
* 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>