* 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>
* 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
* 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