Commit Graph

197 Commits

Author SHA1 Message Date
jmaslek
9ead0f4e8c stocks/fa Tables were not showing the indices... (#1338)
* Indexed in print table

* tests

* fix tests ?

* delete a bunch of shit then rerun with record mode

* change test_info from gme to aapl

* delete files + change from gme to aapl + record-mode=once

* rewrite expcted

* Updating tests : stocks/fundamental_analysis/test_yahoo_finance_model

* Updating tests : stocks/fundamental_analysis/test_yahoo_finance_model

* format black

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-02-10 10:24:19 -05:00
Jeroen Bouma
8625ad3679 Add StockAnalysis (multi-year) to the Sector & Industry Analysis menu (#1341)
* Add StockAnalysis menu with visualise and help functions

* Add StockAnalysis view and model

* Update documentation for the SIA section

* Add Nano, Micro and Mega Market Cap options

* Make the StockAnalysis modules more robust for errors

* Update Docstring

* Ensure the DataFrames aren't modified by limiting the period

* Add tests for StockAnalysis view and model

* Refresh tests

* Make the model and view more robust

* Update the script

* Details

* Move sa_keys to _model

* Clean up functions

* Rename sa_keys to sa_dict

* Improve satma function

* Fix tests

* Optimise satma functionality
2022-02-10 11:51:01 +00:00
Colin Delahunty
e22c48ac9f Refactored terminal.py (#1312)
* Seperated run_scripts function from main

* Added scripts ability

* Converted to endswith

* Count success and failure

* Fixed commands without -h

* Handled edge case

* Replaced prints with console.print

* Fixed main function issue

* Tried more things for output

* Showed reason for error

* Scripts runs successfully

* Formatting updates

* Made integrated printout look better

* Added capturing of stderr

* Fixed reset issue

* Updated flags

* off fix

* Added Didier fix

* Squashed bugs

* Added tests

* Allowed for script file to be sent to tests
2022-02-10 10:20:51 +00:00
Colin Delahunty
f8fc7d00ff Updated uninstall brotli wording (#1333) 2022-02-08 18:08:33 +03:00
jmaslek
499e068345 Remove unkept rtearn (#1330)
* Remove rtearn

* hugo
2022-02-07 21:19:22 -05:00
didierlopes.eth
7dc6e66411 Add logo to about us command (#1319)
* add logo to about us command

* fix terminal helper tests

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-02-07 00:05:52 +00:00
didierlopes.eth
b425f14cdf Add tradingview command to ta controller (#1320)
* add tradingview command to ta controller

* typo

* fix tests

* hugo docs

* Update _index.md
2022-02-06 17:51:42 +00:00
didierlopes.eth
b939fbd9b8 Fix small issues (#1317)
* fix issue with empty dataframe and formatting

* improve prom command

* fix remove all in economy/fred

* monitor to have int type instead of float

* fix test_sec_view due to change of load
2022-02-05 22:09:38 +00:00
Colin Delahunty
1e26ec7d46 Crypto Base (#1278)
* Refactored load, refactored coin name

* Fixed issue

* Fixed some tests

* Removed load tests

* Fixed black

* Fixed black

Co-authored-by: Chavithra <chavithra@gmail.com>
2022-02-04 13:51:52 -05:00
didierlopes.eth
a4df590972 Implement keys menu (#1313)
* implement keys menu

* small fix

* fix keys

* add .env file to repo

* add .env file to repo

* add .env to gitignore

* update AV api key to reflect that anything would work

* do not create .env by default

* small fix
2022-02-04 12:38:15 -05:00
jmaslek
2a998a5a41 Portfolio class (#1280)
* remerge into main ?

* tests again

* change the example csv

* squash all the bugs

* Improve `add` interface

* Add warning on loading portfolio with no cash

* left a rogue print

* oopsie.  hugo

* oopsie.  hugo

* Add back a new `al` function + port name

* test

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-02-02 15:20:05 -05:00
Colin Delahunty
7bb378015c Added fix and test (#1302) 2022-02-02 09:56:40 -05:00
Colin Delahunty
571e5281e3 Improved crypto handling (#1279)
* Improved crypto handling

* Fixed some tests

* Fixed some tests

* Fixed flake8

* Updated to fix tests

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-02-01 11:56:51 -05:00
northern-64bit
2e7b48fe85 Adding VaR and Adjusted VaR (#1269)
* Adding avar command to qa context

* Adding documentation and VaR command

* Linting

* More linting

* Somehow discordbot tests didn't like my linting

* Fixing tests

* Fixing requested suggestions.

Fixing jmasleks comments, but I sadly couldn't sort the table by the VaR (if the manually entered percentage is 75 it's currently still displayed below the 99% VaR)

* linting

* Linting fix

* Adding every qa command to hugo

Also lint fixing

* Fixing previous error

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-02-01 12:43:30 +01:00
Chavithra
90b05d6641 Tests : Cryptocurrency + Common (#1294)
* Updating tests : cryptocurrency/discovery

* Updating tests : cryptocurrency/discovery

* Updating tests : cryptocurrency/onchain

* Updating code : fix linting

* Updating tests : cryptocurrency/onchain

* Updating tests : cryptocurrency/onchain

* Updating tests : black

* Updating tests : cryptocurrency/onchain

* Updating tests : cryptocurrency/onchain

* Updating tests : cryptocurrency/onchain

* Updating tests : cryptocurrency/onchain

* Updating tests : common/behavioural_analysis

* Updating tests : common/behavioural_analysis

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-02-01 10:31:23 +03:00
Theodore Aptekarev
0ca2583a6e Upgrade jupyterlab extension deps to mitigate vulns (#1258) 2022-02-01 08:34:28 +03:00
LBolte29
6426b76771 decorated functions (#1282)
* decorated functions and removed assertion tests that are now caught by decorator logs
* modified functions with @property
* fixed bc of coingecko
* fixed outedated tests
2022-01-31 20:37:16 +01:00
Chavithra
87dae99745 Tests : Cryptocurrency > Due Diligence (#1291)
* Updating code : cryptocurrency/due_diligence

* Updating tests : cryptocurrency/due_diligence

* Updating tests : cryptocurrency/due_diligence/coinbase

* Updating code : cryptocurrency/due_diligence

* Updating tests : cryptocurrency/due_diligence

* Updating tests : black

* Updating tests : cryptocurrency/due_diligence/coinbase
2022-01-30 21:57:54 +01:00
Chavithra
51f43879d3 Tests : controllers (#1290)
* Updating tests : cryptocurrency/due_diligence

* Updating tests : etf

* Updating tests : crypto

* Updating tests : cryptocurrency/due_diligence

* Updating tests : cryptocurrency/due_diligence/controller

* Updating tests : alternative/controller

* Updating tests : cryptocurrency/controller

* Updating tests : cryptocurrency/nft/controller

* Updating tests : cryptocurrency/due_diligence/controller

* Updating tests : cryptocurrency/onchain/controller

* Updating tests : alternative/controller

* Updating tests : cryptocurrency/due_diligence/controller

* Updating tests : cryptocurrency/controller

* Updating tests : alternative/covid/controller

* Updating tests : alternative/controller

* Updating tests : cryptocurrency/nft/controller

* Updating tests : cryptocurrency/onchain/controller

* Updating tests : cryptocurrency/overview/controller

* Updating tests : portfolio/portfolio_optimization

* Updating tests : portfolio/portfolio_analysis/controller

* Updating tests : portfolio/portfolio_optimization/controller

* Updating tests : portfolio/controller

* Updating tests : cryptocurrency/controller

* Updating tests : controllers

* Updating code : black

* Revert "Updating code : black"

This reverts commit b555c332a1.
2022-01-30 20:24:50 +03:00
Chavithra
c2ba724b66 Tests : Cryptocurrency > Discovery (#1288)
* Updating code : crypto/disc/pycoingecko

* Updating tests :

* Updating code : cryptocurrency/discovery/coinpaprika

* Updating code : cryptocurrency/discovery/coinmarketcap

* Updating tests : cryptocurrency/discovery

* Updating tests : fix linting

* Updating tests : cryptocurrency/discovery

* Updating tests : cryptocurrency/discovery
2022-01-30 12:17:05 +00:00
LBolte29
fabd814175 Added logger to baseclass controller (#1270)
* Added loger to baseclass controller
refined sequential logic of switch
fixed prefix / for multiple commands at terminal startup
2022-01-30 10:59:19 +01:00
didierlopes.eth
ee35be07d4 some fixes (#1285)
* some fixes

* update test

* fix stocks tests controller

* update black
2022-01-29 22:29:01 +00:00
Chavithra
ccfe98e19d Tests + Fix : Cryptocurrency > Defi (#1284)
* Updating tests : crypto/defi

* Updating tests : stocks/prediction_techniques

* Updating tests : economy

* Updating tests : conftest

* Updating tests : economy/wsj

* Updating crypto : fixing defi/coindix_view

* Updating crypto : fix crypto/defi/defipulse_model

* Updating tests : crypto/defi

* Updating tests : crypto/defi

* Updating crypto : crypto/defi/graph_model

* Updating tests : crypto/defi

* Updating tests : crypto/defi

* Updating tests : crypto/defi

* Updating tests : black

* Updating tests : economy/fred/prediction

* Updating tests : crypto/defi/graph

* Updating tests : linting
2022-01-29 16:07:41 +01:00
minhhoang1023
d8b4fc0026 Add check_supported and trending endpoint from Sentiment Investor (#1262)
* Add supported and trending endpoint

* Allow valid hour to be 0

* Update Hugo server

* Update Hugo optional arguemnts

* Update documents for start data type

* Adding terminal images

* Update _index.md

* Fix header error

* Update tests for api token sentiment investor

* Add test for Sentiment Investor View & Model

* Mock the token

* Changed color for trend command

* Mock test view and add document for Test README

Co-authored-by: Minh Hoang <minh@Minhs-MBP.Home>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-01-28 17:05:44 -05:00
Juan Toca Mateo
ad85411542 [Bug] Fix degiro controller (#1160)
* fixed null calls

* Added exception handling

* Pep8-ed degiro-controller.py

* Added docstring to command_call

* Removed one letter variable

* removed try_except

* fixed null calls

* Added exception handling

* Added docstring to command_call

* Adapted exception handling to new project's structure

* Updating brokers : fixing cli issues

* Updating tests : portfolio/brokers/degiro

* Updating broker : degiro

* Updating tests : portfolio/brokers/degiro

* Updating brokers : degiro

* Updating tests : portfolio/brokers/degiro

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-01-28 06:10:08 +01:00
Chavithra
72de21f051 Tests : Stocks > Sector Industry Analysis (#1276)
* Updating tests : stocks/sector_industry_analysis

* Updating tests : black
2022-01-28 05:23:11 +01:00
Colin Delahunty
e5fbc4de70 Improve Jupyter and API (#1274)
* Added no-input option

* Added test for gst

* Removed export

* Added options URL
2022-01-27 21:43:01 -05:00
Colin Delahunty
29dbc0da9a Base Stock Controller (#1267)
* Added stock controller

* Fixed tests
2022-01-27 21:02:54 -05:00
Colin Delahunty
c5393e0875 Bankruptcy Scores (#1271)
* Refacotred and expanded analytics

* Updated tests

* Updated hugo

* Updated tests
2022-01-27 11:56:53 -05:00
Colin Delahunty
3f766c956f Final Tabulate (#1265)
* 146 Tabulate references

* Finished removing tabulate

* Fixed tests

* Fixed test

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-01-26 11:06:59 -05:00
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