Commit Graph

63 Commits

Author SHA1 Message Date
Artem Veremey
7bfb066a23 Downgrading packaging per pip conflict with poetry (#578) 2021-07-29 21:33:45 -07:00
Artem Veremey
6ad25442ee Update poetry to 1.1.7 (#577)
* Updating poetry to 1.1.7 and updating dependencies

* Downgrading pywin32

* Updating snok/install-poetry version
2021-07-29 16:07:27 -07:00
Timothy Langer
06957c27f3 Add Sentiment Investor API integration (#562)
* Add SentimentInvestor core and social metrics

* Added `metrics` and `social` commands to behaviour analysis menu
* `metrics` fetches the core metrics for a given ticker from
  SentimentInvestor: AHI, RHI, SGP and sentiment score.
* `social` fetches the aggregated data from several social media
  networks, i.e. the number of mentions and the sentiment score
  associated with a specific ticker on each network

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Format code to conform to PEP8 style guide

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Use `argparse` to handle command-line arguments

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Use `multiprocessing` to reduce wait time

* Reduce `metrics` from 7.2s to 2.9s
* Reduce `social` from 13.5s to 5.6s
* NB: These times could be reduced further but that would require
  changes to `sentipy` itself

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Add `historical` command to plot past week of data

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Add three new commands to discovery mode

* `popular` for stocks with the highest AHI
* `emerging` for stocks with the highest RHI
* `positive` for stocks with the highest sentiment scores

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Aggregate data for past week when showing table

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Fix `-t` flag not working for `social` command

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Handle lacking or incomplete historical data

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Improve error handling for unsupported stocks

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Remove `positive` command

* Sorting SentimentInvestor data by sentiment does not provide much
  value, seeing as it simply returns stocks that have very few comments,
  giving it a sentiment score of 1.0, which is inaccurate and misleading

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Reformat code per project guidelines

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Remove `positive` from list of valid commands

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* `poetry add sentiment-investor`

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Add SentimentInvestor to "About us" section

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Use `typing.List` annotation instead of `builtins.list`

* This is to support Python versions older than 3.9

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Add `sentiment-investor` to `requirements-full.txt`

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Add SentimentInvestor API key check

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Show correct program name in help message

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Add README documentation for newly added commands

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Make changes as requested by code review

* Coloring applied to the whole row in `metrics` and `social` commands
* Convert `--ticker` flag into an optional positional argument for
  single-argument commands such as `metrics` and `social`
* Make help menus and command descriptions far more detailed
* Explain what AHI, RHI, SGP and sentiment score are and how they are
  calculated by Sentiment.
* `historical` command is now sorted with the most recent date first
* `historical` command output table can be sorted using new `--sort` and
  `--direction` arguments
* Non-fatal warning and error messages have been suppressed

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Wrap command methods in try-except

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Add SentimentInvestor API key help

* Add to the top-level README
* Adjust environment variable name to conform with standard set by
  others, start it with GT_

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>

* Comment `coinpaprika` erroring line

* https://github.com/GamestonkTerminal/GamestonkTerminal/pull/562#issuecomment-887842888

Signed-off-by: Timothy Langer <zeevox.dev@gmail.com>
2021-07-28 23:00:20 +01:00
Artem Veremey
64c8fd10fc Adding charset-normalizer explicit version setting and adding Sphinx to dev dependencies (#551) 2021-07-16 19:07:14 +01:00
Artem Veremey
5f97f3d122 Updating requirements-full.txt (#546) 2021-07-14 10:18:13 -07:00
jmaslek
a57be3b9cc Update view plot (#541) 2021-07-12 21:19:25 -04:00
DidierRLopes
07fc037441 Allow to load data from IEX (#536)
* Allow to load data from IEX

* update poetry lock

* add intraday iex data

* Allow to print raw dataframe loaded data

* Move export flag to view command

* fix -h for load function

* more refactoring

* Update README.md

* fix view help

* FTD command improved

* Update README.md

* forgot this one

* fix issue
2021-07-12 20:46:34 +01:00
DidierRLopes
d7bb5a9456 Add Fear And Greed Index command to Economy menu (#509)
* Add CNN feargreed to economy menu

* Update README.md

* Update README.md

* Update ROADMAP.md

* Update README.md
2021-06-23 20:56:10 +01:00
Artem Veremey
b49c4f09be Removing last mentions of fbprophet and updating dependencies (#508)
* Removing last mentions of fbprophet and updating dependencies

* Adding pytest.ini

* Updating requirements.txt
2021-06-19 13:41:33 -07:00
DidierRLopes
3c438fd84b Improve-UX (#506)
* Add about us to main commands

* Add git hash to terminal welcome message to pin gst version down

* missed pylint

* Update poetry with gitpython

* Update ROADMAP.md

* Add partnerships to about us
2021-06-18 19:35:47 +01:00
jmaslek
6a1be6bcb7 Changing NLP from Flair to VADER (#491) 2021-06-10 19:14:25 -04:00
Chavithra
7477699514 Feature/degiro integration (#489)
* degiro integration : set degiro-connector = 1.0.0

* apply migration script

* degiro integration : enable degiro menu

* degiro integration : enable degiro menu

* degiro integration : update requirements
2021-06-07 03:17:45 +02:00
Artem Veremey
030bec00e5 Dependency on black is fixed in pyproject.toml. Mirroring the setting in conda configs (#483) 2021-06-01 17:00:23 -07:00
Artem Veremey
fe443f1426 Pin jupyter_client==6.1.12 (#482) 2021-06-01 16:00:20 -07:00
Artem Veremey
c8ccc5cb46 Adding a check to skip duplicate builds on pull_request/push, updating dependencies and fixing file permissions 2021-05-31 21:22:09 -07:00
Artem Veremey
dd050ade9a Merge pull request #475 from Chavithra/feature/Degiro
Degiro Integration : fixing issue with dependency
2021-05-31 20:46:36 -07:00
Artem Veremey
962be07a2d Move tensorflow into optional 2021-05-30 12:01:36 -07:00
Chavithra PARANA
d99f9ed6b5 update lib 2021-05-30 15:10:36 +02:00
Artem Veremey
5008ab339b Attempting to fix requirements as both full Mac and Windows builds are getting stuck 2021-05-29 15:25:29 -07:00
DidierRLopes
190036ce28 Merge branch 'main' into fix-cvxpy 2021-05-27 19:10:29 +01:00
Jamie
a5815b26ec pin cvxpy to 1.1.12 everywhere 2021-05-26 21:02:23 -04:00
didier
b957e4e678 revert requirements-full commit 2021-05-27 00:33:00 +01:00
didier
d2cfbdb27d Fix FRED API KEY name #465 2021-05-26 23:54:29 +01:00
DidierRLopes
91dc0f1cc9 Update requirements-full.txt 2021-05-25 12:37:22 +01:00
didier
31f5cc9f8b update to latest black version 2021-05-25 01:32:33 +01:00
didier
ab9a1dca96 fix a mess created by making timeseries-cv pip installable 2021-05-25 00:33:40 +01:00
Jamie
848b44c23a Updated black version and pyupgrade version 2021-05-24 12:42:57 -04:00
Jamie
ba6e0b9c61 Update tensorflow/h5py/grpcio to address tf 2.4 vulnerablity 2021-05-24 11:55:42 -04:00
Chavithra PARANA
300a8c3ef7 degiro integration : update requirements-full 2021-05-23 10:40:30 +02:00
Artem Veremey
efba0548b0 Pull updated dependencies 2021-05-18 13:07:40 -07:00
Chavithra PARANA
a7882b40ed degiro integration : update porfolio commands 2021-05-14 22:56:31 +02:00
Jamie
552602311c reqs + poetry 2021-05-01 20:13:26 -04:00
jmaslek
4f581f7243 Merge pull request #415 from jmaslek/update_bt_commit
Backtesting menu
2021-04-30 16:26:51 -04:00
Theodore Aptekarev
3a14620f99 Add sphinx configuration 2021-04-30 01:24:08 +03:00
jmaslek
9634eb4680 Merge branch 'main' into add_bt 2021-04-25 20:28:21 -04:00
Jamie
1e69cb183f poetry + requirements 2021-04-24 14:27:46 -04:00
Deel18
66bf42b674 Merge branch 'main' into feature/degiro-broker 2021-04-23 21:06:42 +01:00
Deel18
a754628b84 Removed product type, added option for merge portfolio. Added api to requirements 2021-04-23 20:56:51 +01:00
didier
ca2ae2c240 Fix clean build 2021-04-23 17:29:26 +01:00
DJ
04330f2e3c run poetry 2021-04-21 15:23:06 -06:00
DJ
329998dc12 Resolve requirements conflict 2021-04-21 15:03:35 -06:00
Jamie
fa63412ac3 Add coinmarketcap top 100 ability + small refactor 2021-04-21 12:20:37 -04:00
Jamie
6a45ce11af update requirements after merge 2021-04-20 15:59:35 -04:00
Artem Veremey
725771e02b Install cvxpy through conda 2021-04-19 19:42:09 -07:00
Artem Veremey
6d09f68cbf Downgrading cvxpy and pyportfolioopt to fix Windows dependencies 2021-04-19 17:05:23 -07:00
Artem Veremey
4fae397a90 Updating poetry dependencies and requirements.txt 2021-04-19 16:08:31 -07:00
DJ Nieto
269eadbfaf requirements updated with poetry 2021-04-17 11:50:18 -06:00
DJ Nieto
4365bb2042 Added oandapyV20 to requirements 2021-04-16 19:00:38 -06:00
DJ Nieto
d58f8f4caf resolve conflict from personal changes 2021-04-15 21:43:14 -06:00
Jamie
f8e4d06de9 poetry add + requirement adds 2021-04-11 20:27:54 -04:00