Commit Graph

839 Commits

Author SHA1 Message Date
montezdesousa
4d3f5aecfb Bump yfinance to 0.2.4 and fix tests (#3977)
* upgrade yfinance to 0.2.4

* fix some tests failing bc yfinance new date format

* fix remaining tests

* fix tests

* rewrite failing test

* black

* rerecord test

* fix get_1y_sp500 test

* missing import here

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-16 19:24:58 +00:00
Sergio A. S
9fd4527dc1 Update overlap_model.py - wrong typehint (#3970)
* Fix plot look when using eval and add query to choices (#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* Update overlap_model.py

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-16 13:54:00 -05:00
Sergio A. S
d78aa5bd65 Update overlap_model.py (#3955)
* Fix plot look when using eval and add query to choices (#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* Update overlap_model.py

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-16 13:10:29 -05:00
Mert Nuhuz
a00e90a8d2 Feature/macro convert (#3924)
* Fix plot look when using eval and add query to choices (#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Issue #3882 Fixed

* 2 files reformatted by black

* tests added

* Lock ruff version so that new lints dont break our CI (#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* fixed mypy errors

* Fixed parser options for currency conversion

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-16 11:32:46 -05:00
montezdesousa
86fd7ae426 Add multiple countries option to events (#3938)
* allow multiple countries in events cmd

* fix test

* fix last test

* black

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-13 19:10:20 -05:00
Bongani Bendile
19919189ec Last Price Bug into Previous Close #3865 (#3949)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-13 18:32:57 -05:00
James Maslek
6ae8d88d2d Put yf.info behind an exchange flag on load (#3951)
* Put yf.info behind an exchange flag

* Guides

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-01-13 17:45:27 -05:00
montezdesousa
e9b832f779 Fix portfolio returns (#3931)
* fix inception bug and clean some useless attributes

* reorder attributes

* add returns and cumulative returns

* fix cumulative returns

* fix cumulative returns

* remove cumulative ret

* add some doc and encapsule methods

* order detail

* add more details on docstrings

* wrong docstring

* add commnet

* Update portfolio_engine.py

* fix bug with unsupported type

* Fix plot look when using eval and add query to choices (#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* fix table header

* fix portfolio integration test

* ruff

* fix tests

* rewrite yfinance call

* fix test_draw

* test_stocks_helper

* bt model

* fix comp analysis

* fix ftd

* fix dd

* fix screener

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-01-13 17:25:53 -05:00
Mert Nuhuz
4303bdc682 Issue #3882 Fixed (#3885)
* Fix plot look when using eval and add query to choices (#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Issue #3882 Fixed

* 2 files reformatted by black

* tests added

* Lock ruff version so that new lints dont break our CI (#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* fixed mypy errors

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-12 10:14:58 -05:00
James Maslek
ac5e1b083c Rebase develop? (#3935)
* Fix plot look when using eval and add query to choices (#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2023-01-12 09:57:23 -05:00
montezdesousa
c6b2ec5857 Integration tests refactor (#3781)
* generate integration tests report

* new console report

* simple run_scripts

* move tests script to folder

* add skipping

* always display skips

* func name

* allow running from relative path

* rename some vars and time

* typo

* change portfolio supress and warning

* uncomment economy test

* rename test controller

* multiprocessing

* display test progress and available

* rename func

* mypy

* should not be here

* small changes

* type hinting and docstrings

* new subprocesses default

* forget context and chunksize

* clean len skipt

* small comment

* fix subproc default with v

* minor change

* fix path

* better this way

* make output visible

* allow only sequential run with verbose mode

* change message

* detail

* include andrew idea

* limit multiprocessing to clone version

* fix for package application

* must be up here

* allow verbose with multiprocessing but warn

* update readme

* move tests to core

* Update README.md

* Update README.md

* move readme outside

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* parse subproc arg

* Update README.md

* Fix plot look when using eval and add query to choices (#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Lock ruff version so that new lints dont break our CI (#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* Delete glossary base command

* move scripts

* ruff

* update pyproject.toml

* update yfinance

* fix futures and economy test, rewrite

* rewrite stocks test yfinance dependent

* refactor sia to yfinance 0.2...

* fix last failing sia tests

* black

* update reqs

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2023-01-11 14:23:43 +00:00
James Maslek
1aebf488ac Add crypto dd functions to sdk (#3888)
* Fix plot look when using eval and add query to choices (#3881)

* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

* Add crypto dd functions to sdk

* Lock ruff version so that new lints dont break our CI (#3905)

* Lock ruff version so that new lints dont break our CI

* Bumped pre-commit ruff version

* Fixes currency and trailmap

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2023-01-10 17:36:26 -05:00
Luqman
694d22c83f Fix plot look when using eval and add query to choices (#3881) (#3898)
* convert index to datetime and update choices

* uncomment economy integration test

* fix treasury concat bug

* fix datasets concat on duplciates

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-01-09 08:02:40 +01:00
montezdesousa
7a5b82f817 Fix Stocks/QA/beta (#3876)
* load with correct dates

* black
2023-01-06 09:58:15 -05:00
montezdesousa
c69d562006 fix candle with av data (#3877) 2023-01-06 09:57:19 -05:00
James Maslek
93f440a31c Adds historical end date on the ca menu (#3867)
* #3835 add end date for historical

* Add to terminal function

* Add to other ca functions and update tests

* missed the controller test

* Add helper function for start and end date

* test for helper function

* default end = today

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-01-05 11:24:39 -05:00
montezdesousa
4b9119adbf Fix emacross with Polygon as source (#3874)
* fix emacross with Polygon as source

* remove import
2023-01-05 11:24:22 -05:00
AlisonB319
988f0aeed8 Adding override to get_user_timezone (#3871)
overrideing the get_user_timezone() so that the updated timezone variable is used
2023-01-05 11:03:23 +00:00
Colin Delahunty
be2c2a33d7 Convert flake8 to ruff (#3855)
* Final ruff fixes

* Added fixes

* Removed fixes

* Updated dependencies

* More updates

* revert test change

* Added fixes

* Final change

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-04 10:21:31 -05:00
Nate
052c16f87e Added single block data from Blockchain.com (#3406)
* Added single block data

* Added single block data tests to test_blockchain_model.py and test_blockchain_view.py

* Made changes requested by reviewer.

* Updating with some of the new changes.  Still have some to fix.

* Changed everything requested except a couple I need help on.

* Finished the last two changes.

* Resolving

* Added function for sdk and fixed a linter issue.

* Formatting

* Fixed tests

* tests

* Fix tests

Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-04 10:20:44 -05:00
Sameer Khan
1af3ff768c stocks/fa/analysis returns empty dataframe instead of error when no data (#3858)
* stocks/fa/analysis returns empty dataframe instead of error when no data

* lint

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-04 08:36:32 -05:00
martinb-bb
cf1603ade2 Dependancy updates: Darts --> 0.23.0 & thepassiveinvestor --> 1.0.11 (#3866)
* Poetry updates + reqs

* check import
2023-01-04 07:26:54 -05:00
Mert Nuhuz
450e78d2c5 update_loaded made more readable (#3859)
I made these changes is to make the code more readable and understandable.

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-03 17:28:57 -05:00
jose-donato
d9267da380 Adds command to check top hackernews stories (#3841)
* fix(docs): added margin between sections

* feat: added hn command

* fix: added log decorator

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-03 16:56:24 -05:00
Sameer Khan
ed47f56741 fix eclect screen typo (#3844)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-03 15:10:01 -05:00
Lars Karbach
ec41ab89b0 Display daily returns as bar chart with color=red for negative return… (#3850)
* Display daily returns as bar chart with color=red for negative returns and color=green for positive return

* Display daily returns as bar chart with color=theme.down_color for negative returns and color=theme.up_color for positive return

* Black formatting

Co-authored-by: Lars Karbach <lars@karbach.org>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-03 15:09:42 -05:00
Henrique Joaquim
306d0ec9bd Fix issue on loading stock (#3860)
* fix the issue for inexistant ytd dataframe

* fixing tests
2023-01-03 09:15:12 -05:00
joshuabuildsthings
21247ac302 Fixes ValueError in Cell 21. (#3804)
* Fixes ValueError in Cell 21.

* Fixes ValueError in Cell 21.

* Merge branch 'fix/economy-report-error-09717374' of github.com:joshuabuildsthings/GamestonkTerminal into fix/economy-report-error-09717374

* Clearing cells
2022-12-24 09:27:48 +00:00
Florian Drinkler
2873bbbadd Update blcp display name (#3808)
* Update blcp display name

* fix test_print_help

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2022-12-22 20:46:35 +00:00
northern-64bit
caa10a8a20 Fix the greeks calculations of the chain command (#3812)
* Fix greeks

* Improve readability

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-12-22 14:43:31 +01:00
James Maslek
7e90d20d46 Release 2.1.0 (#3811)
* bump version

* Update OPENBB_LOGGING_COMMIT_HASH

* Update docker version

* Update requirements

* Revert "Update requirements"

This reverts commit fae0e8ddb1.

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-12-21 14:01:27 -05:00
James Maslek
0e8a8013aa Fix polygon cash statement + fmp stuff (#3809)
* Fix polygon cash statement

* FMP bugfix and regenerate some tests

* fix vomma

* Fix unreported futures bug with capitalization
2022-12-21 12:04:45 +00:00
James Maslek
a3419d0844 deps update (#3800) (#3801)
* deps update (#3800)

* statsmodels

* delete very old files

* Lots o tests

* etf tests

* OPtions tests

* Pin psutil for m1 build

* stocks rewrite expected

* pyproject comments + portfolio test

* disc/ark view test

* dcf coe

* dcf view

* stocks screener

* dcf model

* etf controller

* insider views

* dps view

* ca menu

* stocks/qa

* skip bt tests

* get rid of pymongo from .spec

* One last skip

* Allow finviz to be 1.4.4

* oops forgot to get rid of my debugging

* remove bson from spec because no more pymongo

* make requirments txt and requirements be finviz 1 4 4

* try hidden import

* Gray sweatpants

* Add files to spec

* Revert "Allow finviz to be 1.4.4"

This reverts commit 9581993b4f.

* Revert "Pin psutil for m1 build"

This reverts commit 07fa2d1be0.

* Revert "statsmodels"

This reverts commit 2e431b5d34.

* Revert "deps update (#3800)"

This reverts commit d9fb8a288c.

* Re-solve dependencies

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-12-20 23:45:29 +01:00
Henrique Joaquim
097173742a Out of the box economy report (#3802)
* out of the box economy report

* some fixes for when user has keys

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-12-19 17:12:21 +00:00
Henrique Joaquim
4021a5511f Out of the box forex report (#3799)
* dashboards working on installer

* passing args as list

* fixed for ubuntu

* adding args just if necessary

* removing the shell arg

* out of the box forex report

* removing changes

* adjusting condition
2022-12-19 10:25:45 -05:00
Henrique Joaquim
af7334a6ef Out of the box crypto report (#3794)
* working crypto report

* fixing news

* fixing the condtion's logic

* changed the load source

* added example

* trying to get rid of binance
2022-12-16 13:55:06 -05:00
James Simmons
6112658d46 Pyinstaller Hook Fix For Forecast Report (#3746)
* trying to replace hook

* reports controller commenting out forecast disable

* removing astropy, tensorflow, and riskfolio

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-12-16 13:31:37 -05:00
martinb-bb
4c3c87d11b hot fix: True Range Feature (#3793)
* fix atr feature eng

* fix

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-12-16 12:00:29 -05:00
James Maslek
d99c5491d1 Small options fix + docstring (#3792)
* fix dte for options

* sorry henrique
2022-12-16 10:33:45 +00:00
James Simmons
0aae71cba8 Fixes Portfolio & Forecasting working on Intel Installer (#3745)
* removing astropy and riskfolio

* trying to find forecast error

* adding back in signing and notarizing

* adding import checker command

* adding darts to spec file

* removing darts and adding all entitlements

* removing debug entitlement

* adding back in debug

* reverting changes

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-12-15 20:34:57 -05:00
Jeroen Bouma
872b920d01 Add fix for Stocks menu not loading (#3782)
* Add fix for API issue

* Some black formatting

Co-authored-by: Jeroen Bouma <jeroenbouma@Jeroens-MacBook-Pro.local>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-12-15 15:49:44 -05:00
James Maslek
4266c69239 Editing the SDK functions (#3723)
* etf compare into sdk

* docstring + #3510

* #3712

* Add stats to sdk + isort folder

* Add filter function

* add 10 insider functions

* add new fa models

* update equity.ipynb
2022-12-15 14:00:29 -05:00
kulbinderdio
7e4a657333 Addition of exchange holiday functionality under stocks/th (#3486)
* Addition of exchange holiday calendars using PandasMarketCalendar

* website update for holidays functionality

* Disable pylint too many attributes

* Changes to not show index for dataframe and include metavar

* Setting of default value for holidays

* Merge + black linter

* test fix

Co-authored-by: james <jmaslek11@gmail.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-12-12 21:09:09 -05:00
montezdesousa
6d88b51961 Fix empty equity report (#3739)
* handle empty dfs

* handle empty dfs

* black

* fix equity report

* msft

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-12-12 19:26:17 -05:00
DidierRLopes
8b1ac6c858 Add parameter to automatically color a table based on positive and negative numbers (#3603)
* automatically color table based on values - parameter added to print_help_text

* fix act cmd

* disable warning

* improve code for coloring + allow row/col select coloring

* update timestamp date

* cleanup

* start implementing tests

* ignore branches

* pylint disable

* pylint

* remove tests

* remove unused imports

* remove .txt files

* type ignore

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2022-12-12 19:23:06 -05:00
martinb-bb
e38fec5a5c Tensorboard Integration + model export location (#3734)
* adding tensorboard support for possible models

* updates

* brnn

* rest of the models

* black

* update website URL

* reword

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-12-12 19:17:15 -05:00
kajdo
fedeeaad18 FEAT: EPS and Revenue Estimations from Seeking Alpha (#3402)
* FEAT: EPS and Revenue Estimations from Seeking Alpha

* initial pytest for seekingalpha model and view

* added fa_controller tests for seekingalpha views

* integration tests for epsfc and revfc

* FIX: handling of "no data found"

* merge

* number format fix

* format change according to black linter

* fixed unit tests because prev. recordings didn't match anymore

* change to match linter rules

* fixes

* delete website files"

* update codespell

* Flake

Co-authored-by: kajdo <juergen.kajdocsy@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-12-12 17:55:20 -05:00
Henrique Joaquim
0e79f3fbc8 Changing packaging version (#3764)
* changing packaging version

* removing LegacyVersion

* removing unused import

* Update test cache

* Revert cache

* pin packaging

* update version

* Fix tests

Co-authored-by: james <jmaslek11@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-12-12 16:32:13 -05:00
Sameer Khan
4bbfafab11 replaced deprecated df.append method with pd.concat (#3753)
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2022-12-12 12:37:08 +00:00
James Simmons
fb667ce867 Options Menu Symbol Label Fixes (#3735)
* Options Menu Symbol Label Fixes

* adding back in tests txt files

* merge and fix test

Co-authored-by: james <jmaslek11@gmail.com>
2022-12-09 15:38:47 -05:00