Commit Graph

186 Commits

Author SHA1 Message Date
jmaslek
966cd3c6d5 New alternative data context + first sub context (Covid) (#1142) 2022-01-06 13:12:38 -05:00
Colin Delahunty
eb0dde4603 Refactored Reports (#1123)
* First working program

* added Voila support

* Attempt to fix requirements

* Revert depen

* Another dependency test

* Fixed errors

* Small changes

* Fixed help

* Added port warning

* Fixed continued terminal use

* Last change, we good fam

* Added placeholder so we can have stored

* Didier changes

* Fixed exit

* Fixed issue
2022-01-04 20:51:11 -05:00
Didier Rodrigues Lopes
d5d581b59b improve usage of timezone in terminal (#1126)
* improve usage of timezone in terminal

* lint

* update dependencies

* address James review comments

* remove seconds from time on cmd line

* skip test
2022-01-04 10:35:34 +00:00
David Khouya
abf79a5249 Handle KeyboardInterrupt on user input read (#1124)
Co-authored-by: David Khouya <david.khouya@leddartech.com>
2022-01-02 22:03:36 +00:00
jmaslek
e437f29ae4 Mutual funds (#1106)
* Add mutual fund menu based primarily on investpy (investment.com)

* Add start/end date for loading + some bug fixes

* hugo

* poetry add investpy rich dnspython  then poetry update

* fix reset (need to load country) and dim yfinance commands when country not US

* Fix search and add better error handling

* Catch yfinance commands when country not US.  Improve loading to change country if symbol found but not in matching country.  Changed main menu printing.

* Fix poetry / reqs merge conflict

* review comments

* Once again update poetry

* Clean up poetry to match conda (numpy was culprit)

* cvxpy down

* Think i goofed on generating reqs full

* update poetry metadata

* cleanup after review 2

* move space

* another deps try

* bump pygmnets in yaml

* try something different

* rename console -> t_console (terminal_console) for mypy
2022-01-01 14:16:32 -05:00
Didier Rodrigues Lopes
63b2c72f6a Remove unnecessary return self.queue (#1083)
* remove unnecessary return self.queue

* fix some bugs found by running script files

* add ticker to crypto/dd reset
2021-12-22 22:39:32 +00:00
Didier Rodrigues Lopes
425a3500af improve usage command (#1078)
* improve usage command

* improvement

* remove usage command
2021-12-21 23:04:00 +00:00
Didier Rodrigues Lopes
a85758c9ec Big UX improvement (#1041)
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Didier Rodrigues Lopes <dro.lopes@campus.fct.unl.pt>

* improve user experience phase 1

* add difflib replacement

* implement auto-complete on discovery menu

* auoto-complete, difflib,jump through menus with cd

* Updating tests : terminal

* improve navigation on gst

* add q command to terminal.py

* usage instructions

* Updating tests : terminal

* fix cd command

* vars updated

* show menu when user is going through menus

* allow user to forget the intiail / on scripting

* terminal to accept text file with configuration

* refactor -n to -l and clean code

* add all commands to the tests_stocks_disc

* remove fds from disc since we have search on stocks/ and stocks/sia

* hopefully fix tests

* skip test

* fix completer type and calling menu after command for stocks/disc

* show help menu when moving forward/backwards in menus

* skip test

* skip test - bug fix

* add reset, help and quit to choices

* improve stocks/disc controller

* refactor sia menu

* UX improvements for sia menu

* improve ux design

* refactor ca controller

* fix infinite loop

* improve ux on dps controller

* Add capability of going back from a menu going into a menu

* Ux economy (#1056)

* First round of UX improvements on economy menu

* Do fred menu + sample tests file

* revert to > on menu

* rename jobs file to .gst

* remove cd option

* improve return

* final refactoring of disc_controller

* fix ca,dps,sia,disc,stocks and terminal controllers

* work on ba_controller menu

* fix reset and try_except

* UX on screener controller

* fix for full reset name

* Ux etfs (#1059)

* Refactor ETF menu for new UX

* Add couple more examples to test

* r->reset

* Clean up switch

* gov menu refactored

* fix reset issue

* 80% of refactoring options and pricing/payoff menu is done

* improve payoff controller

* minor fix

* fix: refactor pred and ta stocks controller

* fix: refactor fa(and fmp) controllers

* fix: refactored dd controller (still missing .gst tests)

* fix infinite loop bug

* refactor options controller

* add tests for payoff and pricing

* fix reset for options

* UX Upgrade for Crypto controller(s) (#1049)

* refactor crypto controller

* refactor crypto/defi controller

* added simple test and fixes not returning queue in commands

* Clean up unused functions / iex load (#1047)

* Clean up unused functions and adjust iex load function to not depend on dates

* Had an incorrect tab on s_start definition

* wrong default arg

* regenerate pytest yml

* Comment out parametrization

* Tests : Stocks > Discovery (#1050)

* Updating tests : stocks/discovery/ark

* Updating tests : stocks/discovery/fidelity

* Updating tests : stocks/discovery/fidelity

* Updating tests : stocks/discovery/fidelity

* Updating tests : stocks/discovery/seeking_alpha

* Updating tests : stocks/discovery/seeking_alpha

* Updating tests : stocks/discovery/shortinterest

* Updating tests : stocks/discovery/shortinterest

* Updating tests : stocks/discovery/seeking_alpha

* Updating tests : stocks/discovery/shortinterest

* Updating tests : stocks/discovery/disc_controller

* Updating tests : stocks/dd

* Updating tests : stocks/fa

* Updating tests : stocks/discovery/financedatabase

* Updating tests : stocks/discovery/finnhub

* Updating tests : stocks/discovery/geekofwallstreet

* Updating tests : stocks/discovery/marketbeat

* Updating tests : stocks/discovery/nasdaq

* Updating tests : stocks / discovery / yahoofinance

* Updating tests : black

* Updating tests : unused import

* Updating tests : stocks/discovery/ark

* Tests : Stocks > Doc + Helpers + Government (#1051)

* Updating tests : stocks/government/controller

* Updating tests : stocks/government

* Updating tests : conftest

* Updating tests : stocks > government

* Updating tests : stocks/government

* Updating tests : docs

* Tests : Stocks > Insider (#1054)

* Updating tests : stocks > helper

* Updating tests : doc

* Updating tests : clean stocks > fa > av

* Updating tests : stocks/insider/controller

* Updating tests : stocks/insider/business insider

* Updating tests : stocks/insider/finviz

* Updating tests :  stocks/insider/openinsider

* Updating tests :  stocks/insider/controller

* Updating tests : black

* Updating tests : stocks/insider/controller

* Tests : Stocks > Backtesting + Behavioural Analysis  (#1057)

* Updating tests : add __init__ files

* Updating tests : stocsk/behavioural_analysis

* Updating tests : black

* Updating tests : stocks/backtesting

* Updating tests : stocks/backtesting

* fix: converted top to limit arguments

* fix: refactor disc controller, updated docs

* fix: refactor dd_controller and docs

* fix: refactor nft controller and docs

* fix: pass test temporarily, onchain controller refactor, docs

* fix: overview controller refactor, fix quit command

* fix: linting issues

* fix: refacot ta controller

* fix: refactor pred controller

* fix: linting

* fix: crypto controller

* fix: added tests, updated all controlers

* fix: menu print renamed from stocks to crypto controller, added tests

* fix: fix faster function execution

* Fix annoying pylint C0201 error

* fix: renamed commands to long format

* DISC Cleanup (#1058)

* Get rid/cleanup of marketbeat functions

* Get rid of last unused disc function + fix related tests

* fix test

* Dividend History Chart (#1053)

* Dividend History Chart

* changed to default number 10

* changed divs flag default to false

* updating the expected result for test_fa_controller.

* else statement

* fix: added load on dd

* fix: added autocompletion in all commands with argument choices

* fix: linting

* Workflows + Stocks > Insider (#1061)

* Updating code : stocks/insider remove unused file

* Updating workflows : tests - set mypy==0.910

* fix: linting

* Fixing Linting (#1062)

* Updating code : fixing linting

mypy message = Too many arguments for <lambda>

* Updating workflows : allow newest mypy version

* Updating code : apply black

* Updating code : black

* fix: updated predict controller help to match stocks

* Ux: portfolio (#1063)

* First step of portfolio UX

* Add all broker controllers to UX stuff

* UX Improvement for PO

Co-authored-by: Didier Rodrigues Lopes <dro.lopes@campus.fct.unl.pt>

* UX Improvement for resources (#1064)

Co-authored-by: Didier Rodrigues Lopes <dro.lopes@campus.fct.unl.pt>

* UX: stock/bt (#1065)

* UX: stocks>qa (#1068)

* fix mypy lambda

* skip tests for now

* remove unused paths.py

* rename tests/simulator to tests/e2e

* refactor options/screener menu

* UX : move `gst` files location

* fix stocks_controller

* UX upgrade of the Forex menu (#1048)

* Add basic forex menu test

* Add forex routes to terminal paths

* Remove commands from paths because they're not menus

* WIP Refactor forex controller

* refactor crypto controller

* Remove commented code

* Improve user output with printed text

* Add "help" back to the list of choices

* Enable the command queue for the forex controller

* refactor crypto/defi controller

* Fix candle chart blocking the terminal

* Black

* Return help and reset to the list of known args

* added simple test and fixes not returning queue in commands

* Add currency codes loading to the av_model

* Return the queue in edge cases (when commands don't process)

* Split select into to and from to enable autocompletion

* Style text output

* Stop printing help after the execution of every command

* Update test scenarios

* Black

* fix: converted top to limit arguments

* fix: refactor disc controller, updated docs

* Delete oanda the old view file that was moved into the oanda menu

* fix: refactor dd_controller and docs

* fix: refactor nft controller and docs

* fix: pass test temporarily, onchain controller refactor, docs

* fix: overview controller refactor, fix quit command

* fix: linting issues

* fix: refacot ta controller

* fix: refactor pred controller

* fix: linting

* fix: crypto controller

* fix: added tests, updated all controlers

* fix: menu print renamed from stocks to crypto controller, added tests

* fix: fix faster function execution

* Implement basic UX improvement of the oanda controller

* Update the forex controller

* Fix annoying pylint C0201 error

* Add latest convention changes to the forex controller

* fix: renamed commands to long format

* fix: added load on dd

* Merge the latest updates of the controller design

* fix: added autocompletion in all commands with argument choices

* fix: linting

* fix: linting

* fix: updated predict controller help to match stocks

* Update the forex menu e2e test scripts

* Add check_non_negative_float helper

* Update the controller with the latest changes to the convention

* Update the currency pair loading mechanism

* Move data models logic to the models file

* Update update oanda views to be interact with the models

* Upgrade oanda controller

* Remove raw stocks ba and eda code from the forex menu

* Update "help wanted" banner for ba and eda in forex menu

* Remove remainders of stocks ba and eda from forex context

* Improve typing, docstrings and error messages

* Remove stocks ba and eda code that was merged from other ux branches

* Add fixes that prevented incorrect argument handling

* Remove -argument from the candles call
If there is an expected agr `-g` and you put an incorrect argument
`-argument` the difflib will interpret `argument` as `g`

Co-authored-by: jose-donato <zmcdonato@gmail.com>
Co-authored-by: Didier Rodrigues Lopes <dro.lopes@campus.fct.unl.pt>

* fix reset for menus that require ticker

* UX improvement on research menu

* skip insider controller test

* initial refactoring of insider_controller

* improve insider controller ux part 2

* finish refactoring ins controller ux menu

* fix bug of when commands in queue have args

* skip test

* comment test stuff

* UX: stocks>qa (#1071)

* refactor return self.queue

* fix return None

* minor fix

* minor tabulate fix

* Get rid of leading '/' in terminal and add some newlines on quits. (#1074)

* Get rid of leading '/' in terminal and add some newlines on quits.

* print crypto help on menu entry

* looks like a format issue here...

* newlines on quit

* remove unnecessary line break

* fix pylint issue

* refactor

* refactor

* allow portfolio optimization to quit context

* add exit at end of scripts

* improve dd_controller

* test ux in stocks/dd menu

* Ux upgrade for reports context (#1075)

* Refactor reports and upgrade them with the latest controller convention

* Add test scenarios for the reports context

* test ux stocks/ta

* ux branch scripts/ta

* improvement on main param

* Upgrades for the UX upgrade for the fa and fa/fmp menus (#1076)

* Change --num to --limit

* Remove inconsistent/unreliable functions from the choices list

* Improve docstring compliance with numpy doc format

* Fix hardcoded class id in dcf scrapper

* Fix annoying pylint error in discordbot that was blocking the hook

* Add test scenarios for the fa and fa/fmp menus

* Fix forgotten replacement of --num to --limit

* Fix tests

* Return some excluded commands to the choices list

* Fix dd report to reflect the updates

* Fix set function not returning the queue

* Update gst test files

* fix exit on ca from another submenu

* fix changes of options/screener

* fix dps controller

* fix fa when running out of AV calls

* Fix TVL plot locking interpreter during defi test

* Add exception handling for broken coingecko scrapper

* skip fa/av test that fails

* fix dps tests

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: jose-donato <zmcdonato@gmail.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2021-12-21 15:19:23 +03:00
Artem Veremey
7b3852a25a Initial implementation of logging (#1069)
* Initial implementation of logging

* Fixing pyupgrade

* Fixing pylint

* Updating per suggestions
2021-12-19 10:32:27 +03:00
Chavithra
73624dcc18 Fixing Linting (#1062)
* Updating code : fixing linting

mypy message = Too many arguments for <lambda>

* Updating workflows : allow newest mypy version

* Updating code : apply black

* Updating code : black
2021-12-16 14:03:40 +01:00
DidierRLopes
6b4740e762 fix #987 (#988) 2021-11-26 12:20:16 +00:00
jmaslek
0d49294f1a Add difflib to controllers (#982)
* First few

* Rest of stock controllers

* Other context controllers

Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-11-25 20:47:10 +03:00
DidierRLopes
8fba9bf19f move NFT to inside crypto (#932) 2021-11-08 18:02:46 +00:00
DidierRLopes
432ccf386b Refactor options menu into stocks and others (#931)
* Improve candle and make interactive default

* change path of dcf file

* Remove RS lines when intraday plot

* refactor options menu

* remove candle start and end params
2021-11-08 17:22:08 +00:00
DidierRLopes
9ec2982b72 Yup, incoming NFT context (#930)
* NFT context

* Update hugo with nft features

* add that nft context to terminal.py

* improve nft controller
2021-11-08 15:04:16 +03:00
Artem Veremey
f608cdb88d Update bandit settings and add a wrapper for os clear (#905)
* Add bandit to dev requirements

* Adding bandit exceptions

* Wrap system clear os call

* Apply black
2021-11-03 11:05:14 -07:00
DidierRLopes
9321e8398a Fixes 2 minor issues (#892)
* finviz.analyst export param to be optional

* Fix quit after more than 1 reset occuring
2021-11-01 16:39:07 +00:00
DidierRLopes
6eedaf4a90 Minor fixes (#864)
* do not quit after about/keys commands

* one of the criteria to be partner is to provide data that is usually paid
2021-10-26 22:24:47 +01:00
DidierRLopes
61ccd504af Improve customisable report generation (#854)
* A more customizable jupyter notebook report implementation

* refine dark pool and due diligence reports

* remove stocks reports

* Add crypto_market notebook report

* remove crypto reports folder

* remove crypto reports folder

* economy data report template

* remove economy reports menu

* Update test.yml

* remove notebooks folder, no longer needed

* Update README.md

* update due_diligence notebook to reflect refactoring of fa

* update gitignore based on Theo suggestion
2021-10-25 22:35:28 +01:00
DidierRLopes
874736832c Allow reset everywhere and to execute terminal in context directly (#841)
* Allow reset everywhere and to execute terminal in context directly

* minor comment fix
2021-10-22 03:25:19 +01:00
jmaslek
20eaaab5ac Allow for shorthand menu input (#751)
* Allow for shorthand menu input

* change to relay
2021-09-16 11:16:45 -04:00
jmaslek
0263f41cbe Sort imports using isort (#674) 2021-08-16 07:59:52 -04:00
DidierRLopes
e15f5a955f allow to switch between stocks and options contexts (#666) 2021-08-14 10:08:34 +01:00
jmaslek
dddc912c2d Fix ETF Menu + Refactor to new standard (#648) 2021-08-09 19:32:31 -04:00
DidierRLopes
ec07686aed Refactor Economy menu (#652)
* Allow to quit when DEFAULT_CONTEXT selected

* terminal imports inside context selection

* rework economy/events command

* Refactor fear greed CNN command

* refactor WSJ in economy

* import fred

* refactor fred commands in economy

* refactor disc commands into economy

* refactor disc commands into economy 2

* fix fred test

* fix fred test

* av pylint

* update quit from direct context

* fix av lint

* Add industry simply wallst to economy

* improve events display

* improv after review

* add mypy types

* tabulate raw series

* remove simply wallst
2021-08-08 21:36:24 +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
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
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
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
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
5862a70048 Open insider menu (#542)
* open insider menu

* Update README.md
2021-07-13 23:30:23 +01: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
b3d9ef479c Improve menu UX (#532)
* Improve bt menu

* minor typo

* improve ba menu

* improve brokers menu

* improve CA menu

* improve crypto menu

* improve disc menu

* improve dd menu

* improve econ menu

* improve etf menu

* improve EDA menu

* improve fx menu

* improve FA menu

* improve gov menu

* improve op menu

* improve mill menu

* improve pa menu

* improve pred menu

* improve res menu

* improve ra menu

* improve rc menu

* improve scr menu

* improve po menu

* improve ta menu

* improve main terminal menu
2021-07-05 09:17:24 +01:00
DidierRLopes
baf36aa7c9 Add Options screener (#520)
* Add screener options

* Update README.md

* Update README.md

* Update README.md

* Update op_controller.py

* Add description of C i k to AV overview

* add export functionality to dark pool commands

* Update README.md

* Update README.md
2021-06-27 10:52:54 +01:00
DidierRLopes
1395dfe039 Bug fixes and code improvements (#519)
* Add README link to each menu

* Retrieve good error when #517 happens

* Fix column names with numbers in dataframes

* Update README.md

* ignore false positive
2021-06-27 10:26:11 +01:00
DidierRLopes
fb3409345f Fix issue that for quotes with suffix .CN was failing (#514) 2021-06-24 20:09:13 +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
DidierRLopes
d1505359e5 Fix bugs and more refactoring (#510) 2021-06-22 13:22:34 +01:00
DidierRLopes
a6a2c070cb Refactor main terminal code (#507)
* Refactoring of terminal.py

* More refactoring

* more refactoring

* move dataframe_helper to fa folder since only used there

* move functions of reddit_helpper to helper_funcs

* update econ folder name to economy

* missed to add this file

* arghh missed this as well

* Add ascending flag to darkshort

* Update README.md

* improve shortview command plot

* Update README.md

* Add darkpos command to dd

* Update README.md

* Update README.md

* Update ROADMAP.md
2021-06-19 18:21:52 +01: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
DidierRLopes
1fc8390c87 Split Brokers from Portfolio Analysis Menu and More (#505)
* Refactor porfolio to portfolio_analysis

* Add notebooks/ to gitignore

* Add Brokers folder

* Add disclaimer note to brokers menu

* Add new degiro folder in brokers menu

* Add degiro README

* Update brokers readme

* DEGIRO standalone menu link

* minor improv

* Update README.md

* refactor more degiro stuff

* Refactor stockgrid.io commands on discovery

* refactor stockgrid usage

* minor improv in doc

* Update README.md

* Update README.md

* Update README.md

* Add user request feature to remove ticker from list of tickers to be optimized

* Refactor portfolio analysis

* Update README.md

* Update README.md

* Update ROADMAP.md

* Change path to be OS-agnostic
2021-06-18 19:08:41 +01:00
didier
f707c8a7c9 Only comment degiro and not entire portfolio menu 2021-05-31 09:50:25 +01:00
Artem Veremey
cff6013798 Disabling Portfolio Controller menu 2021-05-29 16:09:52 -07:00
Jamie Perkins
c794150020 add menu option for stock quote 2021-05-27 22:09:46 -04:00
Jamie
67b7fc9d60 Added if s_ticker to menus that require tickers be loaded 2021-05-24 12:38:20 -04:00
Jamie
ba6e0b9c61 Update tensorflow/h5py/grpcio to address tf 2.4 vulnerablity 2021-05-24 11:55:42 -04:00