Commit Graph

2104 Commits

Author SHA1 Message Date
colin99d
7f05e2e7ae Added __init__ files and updated files for pylint (#649)
* Added init files fixed pylint

* Updated coverage settings

* Fixing pylint issues

* Refactored residual_api imports

* Fixing pylint

* Fixing pylint

* Update fx_view.py

* Fixed black

* Removing ignore

Co-authored-by: Colin Delahunty <colindelahunty@Colins-Air.attlocal.net>
2021-08-08 19:03:55 +01:00
Meg1211
00e4e7ca22 Update changelogs (#655)
* Update W10_2021.md

* Update W10_2021.md

* Update W11_2021.md

* Update W12_2021.md

* Update W11_2021.md

* Update W12_2021.md

* Update W13_2021.md

* Update W14_2021.md

* Update W15_2021.md

* Update W16_2021.md

* Update W16_2021.md

* Update W15_2021.md

* Update W16_2021.md

* Update W17_2021.md

* Update W18_2021.md

* Update W19_2021.md

* Update W20_2021.md

* Update W21_2021.md

* Update W22_2021.md

* Update W23_2021.md

* Update W24_2021.md

* Update W25_2021.md

* Update W26_2021.md

* Update W27_2021.md

* Update W28_2021.md

* Update W29_2021.md

* Create W30_2021

* Update and rename W30_2021 to W30_2021.md

* Create W31_2021.md

* Update test.yml

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2021-08-08 18:51:06 +01:00
DidierRLopes
ce1821dd1c Update test_coingecko_crypto.py 2021-08-08 17:55:47 +01:00
DidierRLopes
2813f43aba Update test_coingecko_crypto.py 2021-08-08 17:50:04 +01:00
lupus
b096d6f77c make po work again for stock screener menu (#651)
* make po work again for stock screener menu

* followup (#651)
2021-08-08 17:26:38 +01:00
DidierRLopes
f952823584 Some refactoring + fix stocks/dd/rating command + retire stocks/clear+view commands (#647)
* Add stocks README

* Update readme

* improve readme

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* fix stocks readme link

* retire view and clear commands

* Add TODOs based on discussion with James

* Update README.md

* new line missing + fix dd/rating command
2021-08-06 21:11:08 -04:00
colin99d
4d2239d386 Refactored Tests (#640)
* Added basic openpyxl

* Add screener checks to confirm that preset is correct (#580)

* refactor screener finviz_view to view and model

* Add checks for defined screener preset

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

* Reformated tests and started writing FA

* Removed excel analytics

* Figured out testing with input and print

* Figured out testing with input and print

* Added av_view tests

* Added av_view tests

* Added main_helper tests

* Fixed Poetry

* Added main helper tests

* Expanded pycoingecko_view

* Fixed ETF model

* Added coinpaprika view tests

* Added optimizer view tests

* Updated tests

Co-authored-by: Colin Delahunty <colindelahunty@Colins-Air.attlocal.net>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Colin Delahunty <colindelahunty@Colins-MacBook-Air.local>
2021-08-07 00:34:25 +01:00
jmaslek
34ac2319ff Temporarily disable ETF menu due to change in website. (#646) 2021-08-06 12:57:18 -04:00
DidierRLopes
c2197a7375 Big Code Refactoring with contexts vs category division (#644)
* big-refactoring

* add terminal_helper

* fix tests

* remove init modules

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2021-08-06 12:50:29 -04:00
jmaslek
86deb339d1 Temporarily disable ETF menu due to change in website. (#645) 2021-08-06 12:08:02 -04:00
jmaslek
a0d9c6f906 Fix bug in ca->hcorr (#643) 2021-08-05 13:12:59 -04:00
jmaslek
e01f767754 Change events sorting and make ratings legacy (#642)
* Change `events` to be sorted in the correct order.

* Delete `ratings` command due to paywall
2021-08-04 09:25:11 -04:00
jmaslek
25aae6d23f Hotfix for jsondecode error in coinpaprika (#641) 2021-08-03 21:20:33 -04:00
jmaslek
ade6c13812 Add unusual options activity + option screener checks (#639)
* Add an unusual options activity command.

* Add checks to all option screener types.  Update readme

* Clean up PR

* Additional cleaning of PR and a sample template

* Add additional check for tickers
2021-08-03 20:45:47 -04:00
Artem Veremey
0e5a392427 Adding a new Docker configuration (#634)
* Adding a new docker configuration

* Updating file permissions

* Renaming to gst

* Updating the note to customize environment variables

* Updating dockerignore and docker-compose

* Typo in gst-poetry-deps
2021-08-02 13:41:24 -07:00
jmaslek
5337f615b9 Edit ark_model to get rid of added columns from the json repsonse (#586)
* Edit ark_model to get rid of added columns from the json repsonse

* Figure out the mock response.  Add ./tests to codespell lineting to avoid all the issues iwth company names...
2021-08-02 09:37:38 -04:00
DidierRLopes
19b1d27424 Fix ba/trending command from stocktwits 2021-08-02 12:36:32 +01:00
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