Commit Graph

217 Commits

Author SHA1 Message Date
Colin Delahunty
2ad43f8a27 Added Greeks (#1254)
* Added Greeks

* Added hugo

* Added test

* Added pylint fix

* Began rework

* Finishing touches

* James' final changes

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-01-25 20:32:16 -05:00
Colin Delahunty
92d6276c21 Remove Tabulate 2 (#1259)
* Removed tabulate

* Removed way more tab

* Fixed tests

* Reverted test

* Fixed pylint

* Fixed tests

* Fixed Mypy Issue

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-01-25 19:03:46 -05:00
jose-donato
4501dfd442 Crypto features: Replace coingecko scrapping (#1156)
* replaced cgcategories with api

* added coingecko categories

* refactoring commands to use api, added coins to cryptocontroller and merged find and coins

* autocompletion for coins

* removed unused vars

* added dappradar features

* refactoring commands position

* refactoring commands position

* adding visual commands and fixed report

* skipped tests for now

* lint notebook

* correct report

* black formatter keeps crying because notebook

* removed unused imports

* Fixed black

* Keep kernel metadata 'cause it's required by papermill

* Change jupyter cleanup hook to one based on nbconvert

* Try fix the hook I just broke

* Fix trailing commas in the crypto notebook

* Change the jupyter hook to a one that's featured on pre-commit's page

* Format report notebook and test new notebook hook

* Black the notebook

* Remove deleted functions from the crypto discovery API

* Remove deleted functions from the crypto overview API

* replaced print for console print and removed print from table

* replaced print for console print and removed print from table

* auto completion + sort for all discovery commands

* replacing help messages

* fix linting

* added docs and removed unused commands

* added todos and fixed help messages

* lint

* pr issues fixed

* updated tests

* tests merge

* replaced with new rich table function

Co-authored-by: Colin Delahunty <colin99delahunty@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-01-25 14:05:00 +00:00
Chavithra
683a8bdd83 Tests : Economy + Conftest (#1260)
* Updating tests : economy

* Updating tests : removing breaklines

* Updating tests : economy

* Updating tests : conftest

* Updating tests : economy
2022-01-24 22:11:40 +01:00
Chavithra
abbc44be50 Updating tests : stocks/options (#1253)
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-01-24 03:15:27 +01:00
Colin Delahunty
bdfb61a411 Remove Tabulate (#1248)
* removed tabulates

* Fixed tests

* Adjustment

* Pylint issue

* replaced

* Replaced the rest

* Replaced the rest

* Changed back

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-01-24 00:10:31 +00:00
Colin Delahunty
183e10b524 Allow Custom Flairs (#1249)
* Added ability for custom flair

* Refactored for easier use

* Renamed

* Renamed 2
2022-01-23 17:48:21 -05:00
Chavithra
57c0f840ac Tests : fixing skipped tests (#1252)
* Updating tests : stocks

* Updating tests : crypto

* Updating tests : etf

* Updating tests : stock/options

* Updating tests : black
2022-01-23 21:43:01 +01:00
jmaslek
a7d25dced5 portfolio: Small feature + controller tests (#1246)
* Small feature + controller tests

* update test after merge

* Website + bump down pandas

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-01-23 17:15:08 +00:00
Artem Veremey
3b8d1bdf4e Updating docker containers and dependencies (#1245)
* Updating docker containers and dependencies

* Skipping failed tests

* More test skips

* More test skips

* More skips

* More skips for Failures and Errors
2022-01-23 10:51:53 +00:00
Chavithra
379cf31cfe Tests : Stocks (#1240)
* Updating tests : stocks/sector_industry_analysis

* Updating tests : stocks/prediction_techniques

* Updating tests : doc

* Updating tests : black

* Updating tests : stocks/sector_industry_analysis

* Updating tests : stocks/technical_analysis

* Updating tests : etf/technical_analysis

* Updating tests : black

* Updating tests : stocks/quantitative_analysis

* Updating tests : stocks/quantitative_analysis

* Updating tests : stocks/options

* Updating tests : stocks/options

* Updating tests : stocks

* Updating tests : black

* Updating tests : stocks/prediction_techniques

* Updating tests : black

* Updating tests : stocks

* Updating tests : etf

* Updating tests : stocks

* Updating tests : black

* Updating tests : fundamental_analysis

* Updating tests : dark_pool_shorts/finra_model

* Updating tests : black

* Updating tests : stocks/dark_pook_shorts

* Updating tests : stocks/discovery

* Updating tests : stocks/insider

* Updating tests : stocks

* Updating tests : black

* Updating tests : stocks/options/yfinance_model

* Updating tests : stocks

* Updating tests : stocks/insider
2022-01-22 13:38:47 +01:00
Colin Delahunty
fca711ac0c Remove More Tabulate (#1235)
* Converted some tabulate

* Converted tabulates

* Removed some more tabulate

* Fixed tests

* Fix pylint issue
2022-01-21 22:18:31 -05:00
jmaslek
9ff9d1520d Add a FINRA shortdata dashboard (#1238) 2022-01-21 20:56:04 -05:00
jose-donato
ff2ddb7a91 Adds features to check crypto-related hacks (#1230)
* added ich and ch features

* added slug required and removed list of slugs

* added slug required and removed list of slugs

* updated to only have one command

* lint

* lint

* added default parameter
2022-01-21 19:58:28 +00:00
didierlopes.eth
d8ca7556ed ETF tests (#1208)
* etf tests for stockanalysis

* add financedatabase etf tests

* fix financedatabase etf documentation

* yfinance etf tests

* add etf/discovery tests

* add tests to etf/screener

* add etf controller tests

* add etf/ta tests

* remove tabulate and use rich table

* etf/pred

* add more etf tests, thanks Chavi

* update about us website

* Updating tests : etf

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-01-20 22:51:19 +00:00
jose-donato
c70e78da3a Adds Blockchain source and two BTC commands (#1227)
* adds blockchain source and two commands

* adds tests

* missing hugo yml

* added missing parameters
2022-01-20 21:17:00 +00:00
Colin Delahunty
97c755b8e7 Remove Colorama (#1203)
* Began removing colorama

* Removed colorama

* Made progress on tests

* Small change

* Removed colorama

* Update finbrain_view.py

* Updating tests : mocking `rich_table_from_df`

* Updated table functionality

* Fixed tests

* Fixed black issue

* Pylint fixes

* Added pylint fixes

* Fixed tests

* Updated tests

* Updated csv

* Fixed pylint error

* Add run_scripts

Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-01-19 11:56:28 -05:00
minhhoang1023
d48a6e09af Adding the historical endpoint from sentiment investor (#1175)
* Adding the historical endpoint from sentiment investor

* Add option to export raw data

* Remove all Sentiment Investor command from auto completion

* Fix linting

* Fix mispellings

* Fixed flake8

* Fixed flake8

* Fix linting

* Fix linting

* Add typing dict for payload

* Forgot to add black formatting

* Change import orders

* Add tests for call_hist

* Add black formatting

* Disable pylint

* Fix type error bugs & implement required for start and end arguments

* fix black linting

* fix black linting

* Remove unused import

Co-authored-by: Minh Hoang <minh@Minhs-MBP.Home>
2022-01-19 09:12:36 -05:00
jmaslek
6a66f3f3ed Custom data context (#1193)
* Add first iteration of custom context

* Add sample data + improve plot

* Change `head` to `show` with sorting and limit.  Add "-x" to plot and dynamic update of completer

* generate random time series for test csv

* Make columns lower case.  Check if date is in columns and convert to timestamp.  Improve plotting for dates

* Add qa to custom

* Add pred to custom

* Hugooooo

* Testing

* dang whitespace

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-01-19 10:45:56 +00:00
Colin Delahunty
a3d551105f DCF Refactoring and Improvements (#1198)
* Refactored excel letter generation

* Updated error handling

* Refactored df creation

* Refactored sisters

* Refactored ratios

* Refactored worksheets

* Finished refactoring attributes

* Massively refactored add _ratios

* Slight changes

* refactored add_ratios

* Made DCF much more customizable

* Added market cap filtering

* Removed print

* Updated documentation

* Updated pylint issues

* Added pylint fixes

* Small bug fixes

* Test fixes

* Fixed tests

* Updated audit warning
2022-01-18 13:11:27 -05:00
didierlopes.eth
c568747ab4 Several fixes (#1143) 2022-01-18 01:29:49 +00:00
didierlopes.eth
0f2e0d60ff Add resources to main contexts (#1194)
* remove all unnecessary READMEs

* add resources to mains contexts

* add resources to main cmds

* fix bare-url

* mini fix

* test for surface
2022-01-17 01:14:26 +00:00
didierlopes.eth
f958f8275d Fix silly issue with sia controller (#1196) 2022-01-16 19:03:06 +00:00
jmaslek
5499dad5c7 Add dividend calendar from nasdaq (#1189)
* Add dividend calendar from nasdaq

* tests + hugo

* missed controller test

* gst file

* Add timeout idea and better print message

* fix divcal

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-01-15 16:58:00 -05:00
Colin Delahunty
7412d2b61a Brotli.py check (#1188)
* Added brotli check

* Updated poetry and linting

* Modified to uninstall brotli

* Updated requirements

* Fixed YAML

* Added TOTO

* Added -y to pip uninstall

* Added user flag

* Using python -m

* Switched to conda

* Changed where we remove
2022-01-15 09:07:18 -05:00
Colin Delahunty
82747072c5 Terminal Wide Rich (#1161)
* My idea for how we handle Rich moving forward

* remove independent consoles

* FIxed pylint issues

* add a few vars

* Switched print to console

* More transitions

* Changed more prints

* Replaced all prints

* Fixing tabulate

* Finished replace tabulate

* Finished removing rich from Tabulate

* add Panel around menu

* add GST watermark under feature flag

* Fixed 46 tests

* Delete test_screener[False].yaml

* Delete test_screener[True].yaml

* Fixed the rest of the tests

* add help and source color vars and use rgb

* rich on stocks/options

* update rich on disc, dps, sia

* rich in gov, ins and scr menus

* ba and ca menus with rich

* Fixed import issue

* Fixed some tests

* removed termcolor

* Removed prettytable

* add rich to remaining stocks menus

* FIxed linting issue

* Added James' changes

* Updated dependencies

* Add rich to cryptocurrency menu

* refactor economy and forex

* refactor etf with rich

* refactor mfunds

* refactor rich rest

* not specify style so default color works well on any background

* Fixing mypy issues

* Updated tests

* More test fixes

* James' test fixes

* Updating tests : stocks/screener - fix cassettes using BR

* Updating tests : crypto

* Updating tests : disable DEBUG_MODE

* Updating tests : stocks/fa/yfinance

* minor fixes that escape

* Improve the rich table function (that replaces tabulate :D )

* Fixed bad code

* delete rogue file + dcf fix + NoConsole

* sia mypy

* fuck you linter

* fuck you linter pt 2

* skip hehe

* i hate the black linter

* ubuntu mypy attempt

* Update : rich_config + gtff

* Updating tests : conftest

* Updating tests : stocks

* Update : rich_config

* Updating : rich_config

* make panel configurable for Theodore :b

* colors update

* Merged

* Updating : rich_config + feature_flags

* Updating : rich_config

* Updating tests : stocks

* Updating : feature_flags

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: james <jmaslek11@gmail.com>
Co-authored-by: jose-donato <zmcdonato@gmail.com>
2022-01-15 02:06:00 +00:00
jose-donato
d334d5e087 Features(crypto): added new commands to defi menu (#1169)
* adding new defi features and refactoring existing ones

* added tests and docs

* added zlot to ignored words

* markdown lint

* fixed pr issues

* fix hugo main.yml

* fix hugo main.yml

* added tests

* fixed prt issue

* added iv_surface failing tests

* added mocking to llama tests

* new tests

* skipped rich test for now
2022-01-14 11:14:15 +00:00
jose-donato
4d26b3f7db Features (crypto): adds two features to Defi menu (#1180)
* added new terra features

* removed wrong multiplication

* allow aterra without --address arg

* Updating tests : crypto/defi

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-01-14 09:30:25 +00:00
didierlopes.eth
955b84f540 Fix tests (#1184)
* fix tests

* fix dcf tests

* fixme for once

* could it be?
2022-01-13 20:01:45 -05:00
Theodore Aptekarev
3ec981285e Fix test failing on main (#1181)
* Fix test failing on main

* Exclude secrets search in cassettes in pre-commit hook
2022-01-13 18:03:33 +03:00
Chavithra
d7685796e6 Updating tests : conftest (#1179) 2022-01-12 16:20:18 -05:00
Colin Delahunty
516e3c7a08 Correlation Dashboard (#1171)
* Added interval

* cleaned code

* Updated labels

* Finish correlation

* Ran black

* Theo changes

* Updated pre-commit

* Uncommented line

* Uncommented line

* Fixed pylint

* James' fix
2022-01-12 12:23:12 -05:00
jmaslek
5a5c7193db Volatility surface (#1176)
* Add a 3D volatility surface from yfinance data

* Update _index.md

* other tests
2022-01-11 11:59:02 -05:00
didierlopes.eth
f1ecd1fe90 Add logging w decorators (#1173)
* Example of adding logging

* make log possible with decorators

* remove lineno since we'll have logging at start and end

* rename log_decorator to log_execution

* add lineno and let it be 0 for log_start_end

* Decrease logging level (#1150)

* reset different coin from dd controller on crypto (#1118)

* Fix to dcf command (#1115)

* Fix to dcf command

* Forgot to take out a comment

* Dider change

* user data patch for now

* revert DD report with pickle dataframe being stored (#1120)

* Discordbot/expiry reactions (#1114)

* added load extension for options menu

* options menu: oi, iv, unusual options

* Update opt_menu.py

* Update unu.py

if no num requested set default to 10

* Update opt_menu.py

+ !oi ticker expiry request added without inputting date format. accepts 0-9 up to 10 weeks
+ added option volume plot (works same as oi)

* Create vol.py

* Create reaction_helper.py

* Cleaned up, added historical options

Cleaned up
+ added historical options data
+ added expiry reaction helper function

* Create hist.py

* cleanup

* added min/max strike price

* cleanup

* cleanup, added min/max strike price

* Update opt_menu.py

* added yfinance if no tradier token

* Update vol.py

* Update opt_menu.py

* Create oi_tradier.py

* Update oi.py

* Update opt_menu.py

* Update oi.py

* Update opt_menu.py

* Update oi.py

* Update iv.py

* Update unu.py

* Update oi_tradier.py

* Update hist.py

* Update opt_menu.py

* Update reaction_helper.py

* Create options_menu.py

* Update run_discordbot.py

* Update vol.py

* Rename discordbot/options_menu.py to discordbot/stocks/options/options_menu.py

* Delete opt_menu.py

* Update oi.py

+ min strike/max strike

* Delete oi_tradier.py

* Update options_menu.py

* Update hist.py

* Update vol.py

* Update oi.py

* Update options_menu.py

* Update options_menu.py

* Update options_menu.py

* Linting/Pre-Commit Fixes

* linting

* Linting

* linting

* pylint fixes

* Update iv.py

* Update options_menu.py

* Update reaction_helper.py

* Improved Code

- removed 148 lines same function

* Update run_discordbot.py

* Update reaction_helper.py

* Updated Options Menu

+ reaction expiry lookup
+ added unu, iv, oi, vol ,hist

* mypy fix

* msg delete delay

* Update options_menu.py

* fix

seems bot doesn't like when last emoji is empty.
added an X when strike c/p empty

* Update opt_cmd.py

* Update options_menu.py

* better handling

* Update options_menu.py

* Update opt_cmd.py

* fix stocks.opt indention

* hist.py token/error handling

* Update hist.py

* Update options_menu.py

* Update hist.py

* Add whatif scenario feature (#1122)

* Add whatif scenario feature

* fix tests

* 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

* Handle KeyboardInterrupt on user input read (#1124)

Co-authored-by: David Khouya <david.khouya@leddartech.com>

* Improve hugo docs (#1113)

* added gitignore to website, fix portfolio toggle and website path

* updating styles and homepage

* added index page, removed dark mode, updated styling

* fixed colors

* updated urls (removed /GamestonkTerminal after url)

* added new hr feature (#1128)

* fix assets on hugo server and revert url (#1129)

* fix darkmode issues (#1130)

* Tests : Stocks > Options (#1125)

* Update tests : conftest

* Updating tests : stocks/options

* Updating tests : fix typing

* Updating tests : black

* Updating tests : pyupgrade

* Updating tests : black

* Updating tests : mock dates in cassettes

* Updating tests : conftest

* Updating tests : black

* Updating tests : force single threading

* Updating tests : skip

* Updating tests : black

* Updating tests : conftest

* Update tests : skip stocks/options/controller

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : fixing issue

* Updating tests : add init

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : conftest

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Tests : Stocks > Research + Screener (#1131)

* Updating tests : stocks/research

* Updating tests : stocks/screener

* Updating tests : stocks/screener

* 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

* Add insider presets (#1127)

* Add prediction to economy/fred (#1133)

* Fixing tradier (#1135)

* improve additional info of stocks (#1137)

* improve additional info of stocks

* unnecessary code

* Qa update (#1139)

* Add line option to common - qa

* rich to controller + lower case for pick

* Change qa_view to rich + hugo

* Update _index.md

* fix test

* fix test pt 2

* change menu print

* 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

* Update stocks : ta > tradingview (#1144)

* Tests : Stocks > Option + Technical Analysis + Screener (#1145)

* Updating tests : stocks/ta

* Updating tests : conftest

* Updating tests : stocks/screener/finviz

* Updating tests : stocks/options

* interactive line chart and annotation (#1140)

* interactive line chart and annotation

* add drawing flag

* New alternative data context + first sub context (Covid) (#1142)

* Crypto menu refactor (#1119)

* enabled some crypto commands in dd to be called independent of source loaded

* support for coin_map_df in all dd functions + load ta and plot chart refactor

* updated tests and removed coingecko scrapping where possible

* removed ref of command from hugo

* updated pycoingecko version

* refactoring load

* refactored load to fetch prices; pred can run independent of source now

* load by default usd on cp/cg and usdt on cb/bin

* updated to rich for formatting and updated dependencies

* fixed changes requested

* update docs

* revert discord requirements

* removed absolute from calculate change for price

* fixing pr issues

* fix loading issue when similar coins exist, move coins to home, fill n/a

* update docs for coins

* adds load to ta and pred menu

* Fix library loggers always setting DEBUG verbosity

* Set default log level to INFO

Co-authored-by: Didier Rodrigues Lopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: David Khouya <dakhouya@gmail.com>
Co-authored-by: David Khouya <david.khouya@leddartech.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: Chavithra <chavithra@gmail.com>

* Fix linting errors

* Move log decorator to the decorators.py file

* Revert test assertion so that windows tests don't hang up

* Fix pylint exception

* Bump pylint version in CI

* Skip test that hangs on windows

Co-authored-by: Artem Veremey <artem@veremey.net>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: David Khouya <dakhouya@gmail.com>
Co-authored-by: David Khouya <david.khouya@leddartech.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
2022-01-11 19:01:46 +03:00
jose-donato
a8e7a896d7 Feature (crypto): BTC rainbow chart (#1158)
* added tests

* update colors

* replaces tests

* mock api key

* trying to fix tests

* added theo funcformatter to y ticks

* black lint
2022-01-10 19:15:55 -05:00
jmaslek
4017253340 Refactor common/ta for easier report usage (#1148)
* Refactor common/ta for easier report usage

* overlap

* fix etf ta overlap

* momentum fns

* trend indicators

* volatility

* volume

* cci

* macd and rsi

* fisher and stoch

* All momentum done with discord fixes

* All of the moving averages

* uncommit oops

* All discord functions work now

* fix le tests

* fix le  (other) tests
2022-01-10 17:30:11 -05:00
jose-donato
b8d6a51fdd Added installation docs section (WSL) (#1166)
* added wsl docs

* fixed linting

* fixed linting
2022-01-09 16:36:55 +00:00
Colin Delahunty
006b3570b7 Baseclass (#1141)
* A working decorator

* Basic intro

* Added more

* Refactor

* Refactor

* Cleaned code

* Simplified function (thanks Chavi)

* Small change

* Updating tests : fix issue with mock

* Updating tests : fix remaining mocks after merging

* Updating tests : black

* Cleaned up

* Finished base cases

* Notes

* Slight changes

* Added dynamic options handling, error persists

* Fixed pylint issues

* Fixed mock

* fix decorator with dynamic dictionary of args

* move choices from dynamic to const in crypto/ov

* Updated var names

* Check

* Moved decorators

* Fixed import issues

* Fixed tests, update payoff controller

* Fixed tests

* Fixed pylint

* Updated files

* Added base class

* Added reset

* Improved base class

* For James

* More menues converted

* Added contexts

* 24 controllers left

* 18 Controllers left

* Changes choices

* 9 controllers left

* Added all controllers

* Fixed glitch

* Replaced all improper callings of class

* Removed menu decorator

* refactored try_except

* Last commit

* Black fix

* Bug fix

* Added James' new menus

* Fixed tests

* Fixed 8 tests

* Fixing mypy issue

* Updating tests : stocks/options

* Fixed options

* Fixed tests

* Updating tests : stocks/options

* Fixed tests

* More test fixes

* Updating tests : stocks/ba

* Fixed options test

* More bug fixes

* Fixed tests

* fixed pylint

* Skipped test_call_load

* Add typings to base class

* Fix issue with appending auto completer options + bugfixes

* Add typings to base class

* Terminal throws error for bad path

* sexy solution to auto completer in runtime

* more sexy reset with reset_level stored

* no so sexy jump between indirect menus

* Removing choices argument

* refactor custom_reset

* Fixed tests

* Theo fixes

* Added back function

* Fixed tests

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-01-08 19:30:03 +00:00
jose-donato
18c3a4e5f6 Feature (crypto): Altcoin season index (#1155)
* adding blockchaincenter model

* added altindex feature

* fix tests name

* added autocompletion and fixed chart

* fixed help strings and chart issue

* refactor for subplot

* changed dates to more readable format
2022-01-08 11:17:40 -05:00
Didier Rodrigues Lopes
c388d9afba Fixes issue with loading from qa + improve line log plot (#1151)
* fix issue with loading on qa

* improve log plot

* fix date to YYYY-mm-dd

* fix dd tests w new date format

* fix tests

* grid for major lines
2022-01-07 15:59:54 +00:00
jose-donato
efab61a281 Crypto Tool: Calculate potential returns (#1146)
* enabled some crypto commands in dd to be called independent of source loaded

* support for coin_map_df in all dd functions + load ta and plot chart refactor

* updated tests and removed coingecko scrapping where possible

* removed ref of command from hugo

* updated pycoingecko version

* refactoring load

* refactored load to fetch prices; pred can run independent of source now

* load by default usd on cp/cg and usdt on cb/bin

* updated to rich for formatting and updated dependencies

* fixed changes requested

* created prt controller

* creating model

* removed unused print

* restaged

* adds current market cap

* added reports to gitignore
2022-01-07 09:53:54 -05:00
jose-donato
ea964109d6 Crypto menu refactor (#1119)
* enabled some crypto commands in dd to be called independent of source loaded

* support for coin_map_df in all dd functions + load ta and plot chart refactor

* updated tests and removed coingecko scrapping where possible

* removed ref of command from hugo

* updated pycoingecko version

* refactoring load

* refactored load to fetch prices; pred can run independent of source now

* load by default usd on cp/cg and usdt on cb/bin

* updated to rich for formatting and updated dependencies

* fixed changes requested

* update docs

* revert discord requirements

* removed absolute from calculate change for price

* fixing pr issues

* fix loading issue when similar coins exist, move coins to home, fill n/a

* update docs for coins

* adds load to ta and pred menu
2022-01-07 10:06:13 +00:00
Chavithra
61dd672e6d Tests : Stocks > Option + Technical Analysis + Screener (#1145)
* Updating tests : stocks/ta

* Updating tests : conftest

* Updating tests : stocks/screener/finviz

* Updating tests : stocks/options
2022-01-06 15:31:30 +01:00
jmaslek
891b51b26b Qa update (#1139)
* Add line option to common - qa

* rich to controller + lower case for pick

* Change qa_view to rich + hugo

* Update _index.md

* fix test

* fix test pt 2

* change menu print
2022-01-04 20:11:50 -05:00
Didier Rodrigues Lopes
b33f830c64 Fixing tradier (#1135) 2022-01-04 14:10:56 -05:00
jmaslek
f5b0dc8e7b Add prediction to economy/fred (#1133) 2022-01-04 14:10:40 -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
Chavithra
8f8147c3af Tests : Stocks > Research + Screener (#1131)
* Updating tests : stocks/research

* Updating tests : stocks/screener

* Updating tests : stocks/screener
2022-01-04 10:12:06 +00:00
Chavithra
000d1e93d7 Tests : Stocks > Options (#1125)
* Update tests : conftest

* Updating tests : stocks/options

* Updating tests : fix typing

* Updating tests : black

* Updating tests : pyupgrade

* Updating tests : black

* Updating tests : mock dates in cassettes

* Updating tests : conftest

* Updating tests : black

* Updating tests : force single threading

* Updating tests : skip

* Updating tests : black

* Updating tests : conftest

* Update tests : skip stocks/options/controller

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : fixing issue

* Updating tests : add init

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : conftest

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip

* Updating tests : skip
2022-01-04 01:25:31 +01:00
Didier Rodrigues Lopes
c961fcb278 Add whatif scenario feature (#1122)
* Add whatif scenario feature

* fix tests
2022-01-01 17:57:52 +00:00