Commit Graph

2087 Commits

Author SHA1 Message Date
DidierRLopes
7a8a4f868c Add JohnnyDankseed finviz presets, and fix some bugs there (#633) 2021-08-01 22:40:17 +01:00
DidierRLopes
ce4995c84c Allow multiple plotting for economy/fred (#632)
* Allow multiple plotting for economy/fred

* linting

* Update README.md

* Update README.md

* Update README.md

* Refactor usbonds and glbonds command to remove underscore
2021-08-01 17:26:11 +01:00
DidierRLopes
8cd51d607e Rename gr_hist command to grhist (#585)
* rename grhist command

* Update README.md
2021-08-01 10:56:46 +01:00
DidierRLopes
a0acdfb13f Fix MarketBeat disc/ratings scraping. (#584)
* Add line to mention saved generated report on terminal

* Fix MarketBeat scrap ratings
2021-08-01 01:58:05 +01:00
DidierRLopes
4e264977f3 Add commands to open website of company, and another to open their HQ location (#583)
* fa/info improvement

* Open company's website from fundamental analysis

* Open company's HQ location

* check that hq location fields exist
2021-08-01 00:23:46 +01:00
jmaslek
a6c0614d89 Specify the path to .env file for reading keys (#582) 2021-07-31 18:50:45 +01:00
colin99d
50fa5310cb Feature/fraud indicators (#581)
* Fixed glitch reading AlphaVantage API key

* Bug fix

* Added mscore metric

* Refactored code, added error handling

* Updated reademe.md

* Figuring out pre-commit

* Figuring out pre-commit

* Improved formating and code

* Added Zscore

* Formatted code

Co-authored-by: Colin Delahunty <colindelahunty@Colins-Air.attlocal.net>
2021-07-31 13:52:15 +01:00
DidierRLopes
fcbb2c6ef5 Add screener checks to confirm that preset is correct (#580)
* refactor screener finviz_view to view and model

* Add checks for defined screener preset
2021-07-31 13:51:10 +01:00
colin99d
1851c64dd6 Feature/fraud indicators (#576)
* Fixed glitch reading AlphaVantage API key

* Bug fix

* Added mscore metric

* Refactored code, added error handling

* Updated reademe.md

* Figuring out pre-commit

* Figuring out pre-commit

* Improved formating and code

Co-authored-by: Colin Delahunty <colindelahunty@Colins-Air.attlocal.net>
2021-07-30 22:08:21 +01:00
Artem Veremey
7bfb066a23 Downgrading packaging per pip conflict with poetry (#578) 2021-07-29 21:33:45 -07:00
DidierRLopes
b7e9495d3a Add crypto report (#575)
* Add crypto report

* refactor papermill to output html directly

* fix duplicate function

* fix finviz_view

* Update README.md

* forgot to push crypto market template

* add bitcoin plot to crypto report

Co-authored-by: Jamie <jmaslek11@gmail.com>
2021-07-30 00:09:50 +01: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
DidierRLopes
a9986d3b90 Small improvement to papermill notebooks (#574)
* dont have notebook collapsed cells

* improve report generation to html
2021-07-28 21:47:49 +01:00
colin99d
8408c5ed3d Fixed glitch reading AlphaVantage API key (#573)
* Fixed glitch reading AlphaVantage API key

* Bug fix

Co-authored-by: Colin Delahunty <colindelahunty@Colins-Air.attlocal.net>
2021-07-28 09:40:40 -04:00
jmaslek
ceb506597e Add fibonacci level indicator. Improve TA menu in general. (#572)
* Customize `fib` to allow user entry of min/max dates

* Add docs to overlap.  Update VWAP plot to be just last day of intraday data

* Volatility update.  Default load to 2020-01-01

* Momentum update

* Volume update (ad was incorrect)

* Update READme

* main readme

* Edit ad plot

* Update README.md

* Update fib plot + menu spacings

* Fix mypy error with start_date
2021-07-27 19:08:27 -04:00
DidierRLopes
a8417d66ea Improve papermill menu (#570)
* allow examples of notebooks

* improve examples folder

* change dp notebook to use yfinance in options

* remove internet connection test

* allow help on papermill report

* improve papermill readme

* fix plotting on dark pool notebook
2021-07-26 04:05:24 +01:00
DidierRLopes
8f6e27d02d Improve automatic reports and add dark pool report (#568)
* Due Diligence and Economy papermill templates improved

* save html report next to jupyter notebook

* new dark pool report

* add dark pool jupyter notebook template

* improve .gitignore
2021-07-26 02:54:15 +01:00
jmaslek
36a599f4a8 Update FA Menu (#566)
* Refactor the alpha_vantage menu to replace the market_view commands in fa

* Update papermill `dd` to run the av financials

* Clean up newlines and readmes
2021-07-25 21:32:50 -04:00
DidierRLopes
585803ca02 change test for internet connection (#569) 2021-07-25 21:29:53 -04:00
DidierRLopes
22181c65ff test user internet connection (#567) 2021-07-25 23:59:32 +01:00
DidierRLopes
3b76bde4ac Run papermill kernel from python. (#563)
* initialize notebook automatically

* Update papermill readme

* kill process after papermill use

* allow to run notebook on selected port

* Update README.md

* deprecate marketwatch
2021-07-25 17:53:36 -04:00
jmaslek
419c3691db Options menu updates (#560)
* Add `calculator` function to show pnl for calls and puts

* calculator improvement

* breaking up op into different submenus

* Yfinance functions/plots added

* Refactored Tradier menu into new controller

* Added tradier historical options and fix crypto candles

* Clean up files and get rid of selenium dependecne

* ReadME 1

* calculator plot

* Redefine main menu structure to get rid of sub menus.

* Merge main + update gst readme

* Add coloring to chain command and update readme images

* Add historical greeks

* added ion

* Fix up basic calculator

* Clean up error messages and yf defaults when tradier key not present.  Extend `exp` to allow date entry

* add new line
2021-07-25 11:30:38 -04:00
DidierRLopes
f89fcc72a3 final codespell fix 2021-07-24 00:03:50 +01:00
DidierRLopes
2a4257684f lowercase codespell trial 2021-07-24 00:01:14 +01:00
DidierRLopes
f517e44cb4 codespell without ignores words wrapped 2021-07-23 23:55:14 +01:00
DidierRLopes
fbbdedaf32 codespell trial 2021-07-23 23:50:27 +01:00
DidierRLopes
f29733e121 codespell skip .ini 2021-07-23 23:46:53 +01:00
DidierRLopes
65b6e4dae4 codespell again 2021-07-23 23:43:00 +01:00
DidierRLopes
42bd3b579e Open-insider Screener (#561)
* openinsider_helper check

* Add presets to open insider

* improvements to open insider

* add industry stuff

* improve docu

* colorful insider stuff

* update test to add some words to ignore

* Add possibility to filter by ticker

* fix pre-commit-config codespell yaml

* Update README.md

* Update README.md
2021-07-23 23:39:18 +01:00
DidierRLopes
877b96519a ignore dictionary suggestions codespell 2021-07-23 16:44:05 +01:00
DidierRLopes
9aa08a3890 codespell fix 2021-07-23 16:38:08 +01:00
DidierRLopes
e10374e614 another try at ignore-words-list codespell 2021-07-23 16:31:04 +01:00
DidierRLopes
2cb1a4f15e Update ignore words test
This should allow #561 to run
2021-07-23 15:53:39 +01:00
lupus
f9375b5ba6 Use requests with pd.read_html for gainers/losers discovery (#558)
* use requests for yahoo view gainers losers

* wrong-import-order (#558)

Co-authored-by: Tep <tepicurus111@gmail.com>
2021-07-20 21:22:42 -07:00
DidierRLopes
7b8873c5af add check for reddit key (#559) 2021-07-20 21:22:36 +01:00
jmaslek
a29aa06d85 Backlog updates: candle and api keys (#556)
* Edit `candle` to have argparse and add a terminal option to view defined api keys

* Change the terminal `keys` functions print location and some documentation

* Docstring formatting

* Docstring formatting 2

* Add testing for non broker keys
2021-07-20 15:15:12 -04:00
DidierRLopes
10d231ec2f Add initial changelogs. This will be used on landing page (#557) 2021-07-20 10:06:09 +01:00
DidierRLopes
4261f5d113 Tidy code (#555)
* clean main helper funcs

* clean main helper funcs

* Refactor bt_view code

* refactor finbrain docs

* refactor googleview.py

* refactor brokers

* refactor finviz_view

* refactor reddit_view

* refactor stocktwits_view

* refactor twitter_view

* refactor ca_controller

* refactor finbrain_view

* refactor finviz_compare_view

* refactor market watch view

* refactor yf view

* refactor crypto view

* refactor binance model

* finra_view refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* fixe ba func

* fix view docstring
2021-07-18 21:52:14 +01:00
jmaslek
1092cefa82 Add market overview - type data form WSJ (#548)
* Add wsj scraping functions.  Add top movers from wsj to etf menu

* Add wsj functions to econ menu (seems like a rational place)

* update readme files

* etf readme

* Refactor for bossman :)

* OS path cleanup

* revert changes

* poetry lock still had charset 2.0.3
2021-07-16 14:40:39 -04:00
jp
743620473c Coinpaprika (#544)
* Add separate view for finbrain for crypto curreny sentiment analysis

* Move json with symbols to separate directory, little refactoring, update readme

* Add screenshot of finbrain for PolkaDot

* Add separate view for finbrain for crypto curreny sentiment analysis

* Move json with symbols to separate directory, little refactoring, update readme

* Add coinpaprika module to GST

* Update README.md

* Refactoring coinpaprika views

* Update README.md

* Update coinpaprika_view.py

seems that `too-many-lines` doesn't work. Need to be specify with C0302 code

* refactor code, change dates to more human readable format

* df empty add print with no data, remove regex pattern

* add not before other_args[0][0]
2021-07-16 19:27:08 +01:00
DidierRLopes
9287f495ec Touch notebook to trigger linguistic 2021-07-16 19:23:33 +01:00
DidierRLopes
e1322fd607 This should fix considering the project as html and classifying it as solely python (#554) 2021-07-16 19:20:23 +01:00
DidierRLopes
880e637c33 Improve main readme (#553) 2021-07-16 19:20:06 +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
7f195fa3ea Pin a specific version of Sphinx in the conda env (#549) 2021-07-15 16:32:20 -07:00
Nicholas Liu
dc9ef7b0c9 fix for typos on the template.ini screener (#547)
* fix for typos on the template.ini screener

* Update poetry.lock

* replaced my poetry.lock with the original poetry.lock
2021-07-15 13:29:48 -07:00
Artem Veremey
5f97f3d122 Updating requirements-full.txt (#546) 2021-07-14 10:18:13 -07:00
Artem Veremey
206aa282b1 Updating dependencies to pull Sphinx 4.1.0 (#545) 2021-07-14 09:38:20 -07:00
DidierRLopes
5862a70048 Open insider menu (#542)
* open insider menu

* Update README.md
2021-07-13 23:30:23 +01:00