mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 05:03:54 +00:00
b391ceb3cecd86dc162263584eea2bde2fc72feb
8 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
707ae7e317 |
Release 2.5.0 (#4355)
* Rename SDK folder * Fixing all the tests I hope * Depreciate the sia menu * Fix routine script * Update SDK generation scripts * This needed fixing anyways * Regenerate SDK files * Update paths in sdk helpers * Regenerate the remains of the SDK * Fix candle not working with symbol via the sdk * Fix pydocstyle errors * deps * Add in Docstrings * Push to website since I need to upload images * typos * Add in Fixed Income Guide * Tests : fix cassette * changes to layout and adding more content * trailmap * poetry * updates to requirements files * add `_try_to_login` to sdk generation, fix `_chart` in `about()` url * sentiment analysis * refactor * changing to base model default * rounding * renewing poetry * fixed poetry * spacing * black * adds selectable models for realized volatility calculations * fixes line too long * Add intro guides to Fixed Income * Fix some missing docstrings * Fix website not working * missed a few * fix /economy/test_yfinance_view tests * fix etf/test_stockanalysis_model.py * fix etf/test_stockanalysis_view.py * fix test_stocks_controller * deprecating non used function * update financedatabase to 2.0.4 * Delete SIA from OpenBB Docs and SDK * Searching was not done properly for short name and index * changes the default data source for crypto.load * Fix tests I broke * Little fixy fix to remove duplicates * Fix tests * typo * adds check for empty dataframe * Patch Equity Report * Update so that image links to website * linting v2 * silly imports * adding tempfile * add imap unordered * reordering imports * Adding databento as a source (#4293) * First commit * Baby steps * Keys and sdk * Fix import for api key * Add SDK endpoints * Test + api checks * tests * roque print of api key * Changes * minor * custom timeout * improve timeouts --------- Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt> * Tests * Integration test * frozendict remove * update spec * rename sdk faq to troubleshooting * add hidden import * add hidden imports * imports again * valid url check * new lines and prompt * split imports * more spec * adds cones to the crypto-ta menu * Fix tests * Update code to reflect new changes to FinanceDatabase * Small bugfix for DCF if you have no ticker loaded * remove yfinance from news * add reverse fx choices * black * ruff * Add options greeks to the SDK * Linting * Delete rogue file and update test and add fixedincome to en.yml * fix for options screener * ruff * updates tests for options screener * reqs * updates more test files * rewrite for test_github_model * rewrite test for test_syncretism_view * removes test_view_available_presets[] * black * coverage * adds option screener preset * Update directories.py * len & set * set all list * adds unit testing for cones * ruff * pylint * adds options screener endpoint to SDK * test markers * Testing draft PR mode * Update package to v2.0.7 * Remove etf/screener and tests * Updated * Merge reqs * Updated readme * hook test for pyinstaller * Little fixy fix * Remove etf/scr from SDK * Update tests * Update hook-whisper.py * oops lol * Update sdk * update * Etf * removed old trailmap csv's * Update fixedincome text * add greeks to trail * rouge file * merge killed it * fix test * fix build failure * catch for error message * fix for frozendict * caching search and prompting on hub * whisper model prompts * Fix long/short issue and fix transform issue * separates volatility models from cones function * Introduce CPI functionality * improves error handling for volatility models when window length is too small * ur welcome <3 * additional sanity check for volatility_view * updates volatility_model test * black * Fix linting * Make cpi a little bit more robust * Add in missing value * sdk updates * update dep files * Update trail_map_forecasting.csv * import ordering pylint? * fix trailing comma * sorted trailmaps * remove one test artifact * rewrite test * Adds the missing pieces. * adds clickable URL in keys + Databento * adds databento images * adds images for Databento * update deps * req files * swap order in databento * ruff * mypy * lint * sdk * makes requested changes * ruff v2.. * replaces screenshot. * Removed because it shouldn't have been in this PR. * ruff v3 * Minor edit, move installation to position 2 instead of last * util linting changes * linting for controller * fix test * test * Revert some tests * Guess not * see if this sticks * fixes * Fix linters. Add --video if not provided * Checkout develop tests for keys * Release time * Revert papermill and update gh pages action * Fix shortname (#4356) * uninstall brotli on conda test * Fix issue 4316 (#4357) * Fix issue 4316 * Updating polygon_model + options_controller * Tests : FRED * ruff --------- Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com> Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com> Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com> Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt> Co-authored-by: Chavithra PARANA <chavithra@gmail.com> Co-authored-by: teh_coderer <me@tehcoderer.com> Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com> Co-authored-by: Diogo Sousa <montezdesousa@gmail.com> Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com> Co-authored-by: luqazino@gmail.com <luqazino@gmail.com> Co-authored-by: colin99d <colin99delahunty@gmail.com> Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com> Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com> |
||
|
|
dd4734bd90 |
Added Tests for Bots (#1523)
* Added common/helper tests * expanded bot testing * few changes * import fix * missed removing test config * column order fix * import fix * removed df2img add new deps * req * update readme * add dep for image export, fix * get rid of yahoo-fin, add image export lib * import issues in some machines fix * images dir fix * init fix * fix? * test * test * Fixed text handling * missed a tbl * Fixed tests * Fixed poetry * Fixed kaliedo * Fixed codecov * Fixed dependencies * Added fix * FIxed tests * Added image cleanup * Added tests * Fixed tests * Added test fix * Added conda * Updated bot path * refactor * poetry * update dict/ fix slack image upload * Update config_discordbot.py * Updated * Fixed tests * Skipped energy * fixes * black * fix * import * fix nan on smile * added env settings * add cmds_text dict, some chgs * merge bot test fixes * fix duplicate Co-authored-by: teh_coderer <me@tehcoderer.com> Co-authored-by: Colin Delahunty <colindelahunty@MacBook-Pro.local> Co-authored-by: Chavithra <chavithra@gmail.com> |
||
|
|
56bc8417d1 |
This one WEIRD trick will reduce new bot code by 90% (#1480)
* Began menu abstraction * refactor slack to new structure * Refactored Groupme * Slight refactor * Added check for using bot * Removed auto-lower * Fixed black * Fixing mypy * Added fixes * Improved input handling * Removed image Co-authored-by: jose-donato <zmcdonato@gmail.com> Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com> |
||
|
|
0f61f0b08e |
Log exceptions (#1393)
* log user settings, errors and exceptions |
||
|
|
f1ecd1fe90 |
Add logging w decorators (#1173)
* Example of adding logging * make log possible with decorators * remove lineno since we'll have logging at start and end * rename log_decorator to log_execution * add lineno and let it be 0 for log_start_end * Decrease logging level (#1150) * reset different coin from dd controller on crypto (#1118) * Fix to dcf command (#1115) * Fix to dcf command * Forgot to take out a comment * Dider change * user data patch for now * revert DD report with pickle dataframe being stored (#1120) * Discordbot/expiry reactions (#1114) * added load extension for options menu * options menu: oi, iv, unusual options * Update opt_menu.py * Update unu.py if no num requested set default to 10 * Update opt_menu.py + !oi ticker expiry request added without inputting date format. accepts 0-9 up to 10 weeks + added option volume plot (works same as oi) * Create vol.py * Create reaction_helper.py * Cleaned up, added historical options Cleaned up + added historical options data + added expiry reaction helper function * Create hist.py * cleanup * added min/max strike price * cleanup * cleanup, added min/max strike price * Update opt_menu.py * added yfinance if no tradier token * Update vol.py * Update opt_menu.py * Create oi_tradier.py * Update oi.py * Update opt_menu.py * Update oi.py * Update opt_menu.py * Update oi.py * Update iv.py * Update unu.py * Update oi_tradier.py * Update hist.py * Update opt_menu.py * Update reaction_helper.py * Create options_menu.py * Update run_discordbot.py * Update vol.py * Rename discordbot/options_menu.py to discordbot/stocks/options/options_menu.py * Delete opt_menu.py * Update oi.py + min strike/max strike * Delete oi_tradier.py * Update options_menu.py * Update hist.py * Update vol.py * Update oi.py * Update options_menu.py * Update options_menu.py * Update options_menu.py * Linting/Pre-Commit Fixes * linting * Linting * linting * pylint fixes * Update iv.py * Update options_menu.py * Update reaction_helper.py * Improved Code - removed 148 lines same function * Update run_discordbot.py * Update reaction_helper.py * Updated Options Menu + reaction expiry lookup + added unu, iv, oi, vol ,hist * mypy fix * msg delete delay * Update options_menu.py * fix seems bot doesn't like when last emoji is empty. added an X when strike c/p empty * Update opt_cmd.py * Update options_menu.py * better handling * Update options_menu.py * Update opt_cmd.py * fix stocks.opt indention * hist.py token/error handling * Update hist.py * Update options_menu.py * Update hist.py * Add whatif scenario feature (#1122) * Add whatif scenario feature * fix tests * Mutual funds (#1106) * Add mutual fund menu based primarily on investpy (investment.com) * Add start/end date for loading + some bug fixes * hugo * poetry add investpy rich dnspython then poetry update * fix reset (need to load country) and dim yfinance commands when country not US * Fix search and add better error handling * Catch yfinance commands when country not US. Improve loading to change country if symbol found but not in matching country. Changed main menu printing. * Fix poetry / reqs merge conflict * review comments * Once again update poetry * Clean up poetry to match conda (numpy was culprit) * cvxpy down * Think i goofed on generating reqs full * update poetry metadata * cleanup after review 2 * move space * another deps try * bump pygmnets in yaml * try something different * rename console -> t_console (terminal_console) for mypy * Handle KeyboardInterrupt on user input read (#1124) Co-authored-by: David Khouya <david.khouya@leddartech.com> * Improve hugo docs (#1113) * added gitignore to website, fix portfolio toggle and website path * updating styles and homepage * added index page, removed dark mode, updated styling * fixed colors * updated urls (removed /GamestonkTerminal after url) * added new hr feature (#1128) * fix assets on hugo server and revert url (#1129) * fix darkmode issues (#1130) * Tests : Stocks > Options (#1125) * Update tests : conftest * Updating tests : stocks/options * Updating tests : fix typing * Updating tests : black * Updating tests : pyupgrade * Updating tests : black * Updating tests : mock dates in cassettes * Updating tests : conftest * Updating tests : black * Updating tests : force single threading * Updating tests : skip * Updating tests : black * Updating tests : conftest * Update tests : skip stocks/options/controller * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : fixing issue * Updating tests : add init * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : conftest * Updating tests : skip * Updating tests : skip * Updating tests : skip * Updating tests : skip * Tests : Stocks > Research + Screener (#1131) * Updating tests : stocks/research * Updating tests : stocks/screener * Updating tests : stocks/screener * improve usage of timezone in terminal (#1126) * improve usage of timezone in terminal * lint * update dependencies * address James review comments * remove seconds from time on cmd line * skip test * Add insider presets (#1127) * Add prediction to economy/fred (#1133) * Fixing tradier (#1135) * improve additional info of stocks (#1137) * improve additional info of stocks * unnecessary code * Qa update (#1139) * Add line option to common - qa * rich to controller + lower case for pick * Change qa_view to rich + hugo * Update _index.md * fix test * fix test pt 2 * change menu print * Refactored Reports (#1123) * First working program * added Voila support * Attempt to fix requirements * Revert depen * Another dependency test * Fixed errors * Small changes * Fixed help * Added port warning * Fixed continued terminal use * Last change, we good fam * Added placeholder so we can have stored * Didier changes * Fixed exit * Fixed issue * Update stocks : ta > tradingview (#1144) * Tests : Stocks > Option + Technical Analysis + Screener (#1145) * Updating tests : stocks/ta * Updating tests : conftest * Updating tests : stocks/screener/finviz * Updating tests : stocks/options * interactive line chart and annotation (#1140) * interactive line chart and annotation * add drawing flag * New alternative data context + first sub context (Covid) (#1142) * Crypto menu refactor (#1119) * enabled some crypto commands in dd to be called independent of source loaded * support for coin_map_df in all dd functions + load ta and plot chart refactor * updated tests and removed coingecko scrapping where possible * removed ref of command from hugo * updated pycoingecko version * refactoring load * refactored load to fetch prices; pred can run independent of source now * load by default usd on cp/cg and usdt on cb/bin * updated to rich for formatting and updated dependencies * fixed changes requested * update docs * revert discord requirements * removed absolute from calculate change for price * fixing pr issues * fix loading issue when similar coins exist, move coins to home, fill n/a * update docs for coins * adds load to ta and pred menu * Fix library loggers always setting DEBUG verbosity * Set default log level to INFO Co-authored-by: Didier Rodrigues Lopes <dro.lopes@campus.fct.unl.pt> Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com> Co-authored-by: teh_coderer <me@tehcoderer.com> Co-authored-by: jmaslek <jmaslek11@gmail.com> Co-authored-by: David Khouya <dakhouya@gmail.com> Co-authored-by: David Khouya <david.khouya@leddartech.com> Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com> Co-authored-by: Chavithra <chavithra@gmail.com> * Fix linting errors * Move log decorator to the decorators.py file * Revert test assertion so that windows tests don't hang up * Fix pylint exception * Bump pylint version in CI * Skip test that hangs on windows Co-authored-by: Artem Veremey <artem@veremey.net> Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com> Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com> Co-authored-by: teh_coderer <me@tehcoderer.com> Co-authored-by: jmaslek <jmaslek11@gmail.com> Co-authored-by: David Khouya <dakhouya@gmail.com> Co-authored-by: David Khouya <david.khouya@leddartech.com> Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com> Co-authored-by: Chavithra <chavithra@gmail.com> |
||
|
|
efab61a281 |
Crypto Tool: Calculate potential returns (#1146)
* enabled some crypto commands in dd to be called independent of source loaded * support for coin_map_df in all dd functions + load ta and plot chart refactor * updated tests and removed coingecko scrapping where possible * removed ref of command from hugo * updated pycoingecko version * refactoring load * refactored load to fetch prices; pred can run independent of source now * load by default usd on cp/cg and usdt on cb/bin * updated to rich for formatting and updated dependencies * fixed changes requested * created prt controller * creating model * removed unused print * restaged * adds current market cap * added reports to gitignore |
||
|
|
ea964109d6 |
Crypto menu refactor (#1119)
* enabled some crypto commands in dd to be called independent of source loaded * support for coin_map_df in all dd functions + load ta and plot chart refactor * updated tests and removed coingecko scrapping where possible * removed ref of command from hugo * updated pycoingecko version * refactoring load * refactored load to fetch prices; pred can run independent of source now * load by default usd on cp/cg and usdt on cb/bin * updated to rich for formatting and updated dependencies * fixed changes requested * update docs * revert discord requirements * removed absolute from calculate change for price * fixing pr issues * fix loading issue when similar coins exist, move coins to home, fill n/a * update docs for coins * adds load to ta and pred menu |
||
|
|
67e1ecf986 |
Tests : Stocks + Crypto + Helpers (#1046)
* Updating tests : stocsk > helper * Updating tests : doc * Updating tests : stop new cassettes generation * Updating tests : group helpers * Updating tests : black * Updating tests : path for parameterize_from_file |