Commit Graph

1008 Commits

Author SHA1 Message Date
jmaslek
aacbc911be DISC Cleanup (#1058)
* Get rid/cleanup of marketbeat functions

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

* fix test
2021-12-15 14:59:41 +00:00
Chavithra
680e0cd278 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
2021-12-13 03:25:28 +01:00
Chavithra
5305603c37 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
2021-12-12 22:36:05 +01:00
Chavithra
0f541f67b1 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
2021-12-12 22:07:57 +01:00
Chavithra
42ac865b07 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
2021-12-12 22:06:59 +01:00
jmaslek
e362569c63 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
2021-12-11 15:07:47 +00:00
Chavithra
67e1ecf986 Tests : Stocks + Crypto + Helpers (#1046)
* Updating tests : stocsk > helper

* Updating tests : doc

* Updating tests : stop new cassettes generation

* Updating tests : group helpers

* Updating tests : black

* Updating tests : path for parameterize_from_file
2021-12-09 20:48:58 +01:00
Chavithra
10022f1573 Tests : Stocks > DD + FA (#1040)
* Updating tests : stocks > due_diligence

* Updating tests : terminal

* Updating tests : stocks > fundamental analysis > financial_modeling_prep

* Updating tests : stocks > fundamental_analysis

* Updating tests : stocks/fundamental_analysis/controller

* Updating tests : stocks/fundamental_analysis/txt/controller

* Updating tests : stocks/fundamental_analysis/yahoo_finance

* Updating tests : stocks/fundamental_analysis/finviz_view

* Updating tests : stocks/fundamental_analysis/finviz_view

* Updating tests : stocks/due_diligence/finviz_view

* Updating tests : stocks\fundamental_analysis\yahoo_finance

* Updating tests : stocks\due_diligence\yahoo_finance

* Updating tests : black

* Updating tests : pylint

* Updating tests : pep8

* Updating tests : black
2021-12-09 16:13:10 +03:00
jmaslek
d21b070b88 Fred menu (#1038) 2021-12-09 08:08:24 -05:00
Chavithra
6c51a584e0 Chavithra/tests draft helpers (#1039)
* Updating tests : fixtures

* Updating tests : fixing pylint

* Updating tests : fixtures

* Updating tests : black

* Updating tests : fixtures

* Updating tests : doc

* Updating tests : fixing mypy
2021-12-09 06:48:13 +01:00
Didier Rodrigues Lopes
5a3bf70953 refactor load command (#1034)
* refactor load command

* fix reports based on code changes

* Fixing tests : stocks > dd > business insider

* Fixing tests : stocks > dd > controller

* add start to load

* fix minor bug

* fix bug for exchanges

* minor improvs

* add load to technical analysis

* fix bug for exchanges

* minor enhancement

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2021-12-08 00:18:58 +00:00
Chavithra
6b7a8efc59 Chavithra/tests draft move files (#1009)
* Updating tests : test_main

* Updating tests : test_main

* Updating tests : add init files

* Updating tests : test_dd

* Updating tests : tests_dd

* Updating tests : test_discovery_ark_model

* Updating tests : test_discovery_ark_api

* Updating tests : test_discovery_ark_view

* Updating tests : test_discovery_fidelity_api

* Updating tests : test_optimizer_view

* Updating tests : remove init file

* Updating tests : test_coinbase_view

* Updating tests : test_coingecko_crypto

* Updating tests : crypt/ov/test_coinbase_view

* Updating tests : test_coingecko_crypto

* Updating tests : unused cassettes

* Updating tests : test_coingecko_crypto

* Updating tests : crypto/dd/test_dd_controller

* Updating tests : test_coinpaprika_view

* Updating tests : unused cassettes

* Updating tests : test_fa_av_view

* Updating tests : test_fa_business_insider_view

* Updating tests : test_fa_controller

* Updating tests : test_fa_excel

* Updating tests : unused cassette

* Updating tests : test_fa_fmp_view

* Updating tests : test_fa_fmp_view

* Updating tests : test_fa_market_watch_model

* Updating tests : test_fa_market_watch_view

* Updating tests : test_fa_yahoo_finance_view

* Updating tests : test_da_yield_curve_model

* Updating tests : unused json

* Updating tests : unused test

* Updating tests : test_discovery_fidelity_model

* Updating tests : test_discovery_seeing_alpha_model

* Updating tests : test_discovery_short_interest_model

* Updating tests : unused init files

* Updating tests : test_coinpaprika_view

* Updating tests : test_pred_neural_networks

* Updating tests : test_fred_fred_view

* Updating tests : unused test

* Updating tests : test_thought_of_the_day

* Updating tests : black

* Updating tests : test_pycoingecko_view

* Updating tests : overview/test_pycoingecko_view

* Updating tests : test_seeing_alpha_model

* Updating tests : test_thought_of_the_day

* Updating tests : test_terminal_helper

* Updating tests : test_short_interest_model

* Updating tests : test_fidelity_model

* Updating tests : test_yield_curve_model

* Updating tests : test_market_watch_model

* Updating tests : unused yaml

* Updating tests : test_yahoo_finance_view
2021-12-03 08:44:41 +01:00
Chavithra
d135aac9c8 Updating tests : stocks/due_diligence (#1005)
* Updating tests : stocks/due_diligence + terminal

* Updating tests : doc

* Updating tests : conftest

* Update tests : pre-commit

* Updating tests : cassette + txt
2021-12-01 23:20:04 +00:00
Colin Delahunty
ec09805a84 Tests (#957)
* Addded test

* Expanded tests

* Improved tests

* Improved tests

* Reverting to old

* Modern problems require modern solutions
2021-12-01 12:31:27 +01:00
Colin Delahunty
6994273aad Fraud error (#944)
* Updated try except

* Added patch for fraud

* Updated tests

* Fix

* Attempting to resolve test issue

* Fixed again

Co-authored-by: Colin Delahunty <colindelahunty@Colins-Air.indiana.edu>
2021-11-15 15:12:15 -05:00
Artem Veremey
068f22d53b Fix spelling and add missing thepassiveinvestor (#925)
* Fix spelling and add missing thepassiveinvestor

* Updating strike and tickers
2021-11-06 09:17:32 -07:00
jose-donato
a04e833e7e Open crypto insterest by exchange [Source: bybt.com] (#868)
* fix: small issues

* fix: repeated code

* feat: added new oi feature; needed to refactor a bit

* fix: test coingecko fixed

* fix: pylint issue

* fix: added entry to main.yml

* fix: added image to hugo markdown
2021-10-27 11:11:49 +01:00
jmaslek
45d7a60ac6 Refactor FA menu (#845)
* Business insider

* cleanup BI + test

* Finviz fns

* Market watch fa

* yahoo fa stuff

* yahoo fa tests

* AV FA menu

* FMP Menu

* Fix fmp test

* Update dd notebook template

* Actually fix fmp test

* Add missing docstring

Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
Co-authored-by: James Maslek <james@Jamess-MacBook-Pro.local>
2021-10-24 23:53:29 +01:00
jmaslek
ba3baca54c Refactoring pred (#802)
* ETS prediction

* Update 'backtesting' and plots

* Knn model

* Keras/tf models refactored

* ARIMA models and poetry/req  updates

* edit test

* Regression condensed

* Hugo server

* Add tabulate to nn predictions and fix pylint

* Add tabulate to prediction statistics

* review comments

Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-10-19 11:48:04 -04:00
jmaslek
5a809d262d Refactor port-> po and pa menus (#748)
* Refactor property weightings

* Refactor pypfopt commands

* refactor pa menu

* Address review comments

* Typo
2021-09-16 12:20:53 -04:00
jp
0b554c6893 Coinbase pro api (#743)
* 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

* Coinbase menu added

* Add more methods for coinbase

* Add coinbase views, coinbase models. Add coinbase to load, chart, find commands. Add coinbase to controller

* Add auth client for coinbase pro endpoints that needs auth

* Add more views for coinbase to crypto menu

* Add some print tests for Coinbase view

* Add 2 more tests for coinbase view

* Update README with Coinbase API keys

* Cleaning empty lines, spaces etc.

* Use os.path.join in imports, change column names in one normalized df

* Move Coinbase to portfolio brokers. Adjust tests, and imports

* precommit config return to prev ver

* Fix coinbase accounts command, del column filter for deposits
2021-09-13 14:07:00 -04:00
DidierRLopes
d1a473d266 Fix failing test (#734)
* fix test

* fix failing test

* fix test

* Fix tests

* fix tests

* fix tests

* fix tests

* comment all coinpaprika tests
2021-09-05 23:57:36 +01:00
jp
28e3970912 Refactoring crypto menu 2nd part (#724)
* 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

* Remove not used methods, remove binance_view, binance_model from discovery menu (It's not needed, as we use all_coins view for finding coins from all sources

* Refactoring Due Diligence menu. Changing views, moving argparsers to controller

* Refactor cryptomenu. Overview, Discovery, DD menu - move argparsers to controllers, add typing hints, change names of views/models, adjust tests

* Adjust tests

* Move finbrain and find/coins method to controller

* Move report argparser into controller. Adjust tests

* Adjust docstrings

* Add helper method to take care about retry/wait for coingecko scraping

* Fix failing test

* Adjust newlines, docstrings, cmd descriptions

* Add use tabulate df flag for all crypto views

* Add status code for coingecko

* Add note, that some coingecko commands can fail

Co-authored-by: Jakub Pluta <jakub.pluta@cdq.com>
2021-09-05 17:15:35 +01:00
jmaslek
6d675a02ce Comment out fa_excel test for build (#732) 2021-09-02 17:08:30 -04:00
Artem Veremey
fbe640c27c Disabling tests depending on yf.download to fix the suite failures (#727)
* Disabling and mocking a few tests until we figure out how to work with yf.download better

* Removing unused import
2021-08-31 23:09:37 -07:00
DidierRLopes
8ae78286e2 fix build (#713) 2021-08-25 10:25:58 +01:00
jmaslek
9c199adfaf fix black on accidental push (#709) 2021-08-23 11:26:25 -04:00
Jamie
a7d0a9186f Ignore nft of the day test 2021-08-23 11:13:51 -04:00
colin99d
ce457314a0 Improved Discount Rate Calculation for DCF (#697)
* Added tests ReadMe

* Added warning

* Moved testing docs

* Fixed formatting

* Added a CF tie-out warning and handling for negative firm value

* Added treasury API

* Updated t-bill from API

* Finished better risk understanding

* Finished better risk understanding

* Requested changes

* Updated

* Updated filename

Co-authored-by: Colin Delahunty <colindelahunty@colins-air.attlocal.net>
Co-authored-by: Colin Delahunty <colindelahunty@Colins-MacBook-Air.local>
2021-08-22 01:23:44 +01:00
DidierRLopes
1660fe55e5 Refactor due-diligence menu to new refactoring style (#681)
* refactor finviz

* start refactor business insider

* fix business insider new refactoring

* refactor FMP view

* refactor market watch in due diligence

* refactor finnhub on dd

* CSI market in dd refactored

* fix test

* fix dd report

* fix test

* fix test

* fix test

* fix test

* fix rating yaml

* try to fix the test_rating

* try for the 1000time

* remove the test for now...

* fix again requirements.txt

* refactor code after review

* merge main to ref-dd branch
2021-08-21 19:17:12 +01:00
didier
33a7fc6311 fix test fr 2021-08-21 17:02:48 +01:00
DidierRLopes
f324253835 Fix test 2021-08-21 17:00:32 +01:00
Artem Veremey
f86289df93 Disabling tests that result in access violations (#690) 2021-08-21 16:57:07 +01:00
DidierRLopes
8939f129c8 Fix tests (#694)
* replace list() by []

* fix utf-8 encoding in tests
2021-08-21 16:17:54 +01:00
jp
f5c472fbe0 Feature/refactoring crypto (#656)
* 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

* refactorization of crypto menu

* Fix test, now ta returns already df with index set to date, so shape is rows X 1 column

* On demand load crypto

* Add new view with coins for Binance

* Discovery menu README

* Add readme for crypto

* Add readme for crypto main menu

* Fix mockups for coingecko tests

* Fix readme

* Update test_coingecko_crypto.py

* Fix print in controller

* Refactor crypto. Refactor tests, move session in paprika into commands. Refactor help text

* Remove not needed COLUMNS constant variable, fix description and print statement

* Apply changes in price fmt, mplfinance chart for gecko

* Adjust TA menu data

* Fix test. Now loaded data for TA has OHLC data

* New names for columns in gecko

* Improve find method, add better names for columns in coingecko discovery

* New names in coingecko

* Fix tests for new gecko names

* Add new view for coins search

* Refactor all_coins func

* Fix failing test

* Fix missing quit in overview_controller.py

* Mock test data in load_df_for_ta
2021-08-17 10:20:18 -04:00
jmaslek
0263f41cbe Sort imports using isort (#674) 2021-08-16 07:59:52 -04:00
DidierRLopes
78d13934bd Dark Pool Shorts menu (#668)
* Work on dark pool short menu

* refactor some code

* fix sec_view and sec_model, and dp notebook

* improvements

* fix test

* minor fix

* add load command

* improve commands name

* remove news
2021-08-16 01:51:47 +01:00
colin99d
b9b640898c Excel Discounted Cash Flow (#667) 2021-08-14 15:23:18 -04:00
colin99d
81337b4fdd Improved Testing Framework (#665)
* Reduced test time by 85% using vcrpy

* Refactored tests with decorator

* Added vcrpy dependencies

* Fixed issues with tests

* Fixed tests not running in local

Co-authored-by: Colin Delahunty <colindelahunty@Colins-Air.attlocal.net>
2021-08-13 12:05:32 -04:00
DidierRLopes
e35b9f51b0 Update test_coinpaprika_view.py 2021-08-13 13:04:40 +01:00
jmaslek
113db94184 Etf bug headers (#662)
* Ignore nft of the day test

* Add user agent to etf requests
2021-08-12 11:32:56 -04:00
DidierRLopes
6a641f2a09 Refactor discovery menu (#657)
* Remove disc open browser websites

* remove sentiment investor from discovery

* add popular,emerging SI cmds to ba

* fix typo

* refactor disc/finnhub commands

* refactor disc/yfinance commands

* refactor disc/ford command

* refactor disc/arkord command

* fix disc/upcoming refactoring

* fix disc/upcoming refactoring

* fix disc/latest-trending news refactoring

* refactor disc/shortinterest commands

* refactor disc/shortinterest commands

* fix tests

* Update test_coingecko_crypto.py

* improvement after review

* add todo

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2021-08-10 00:49:07 +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
DidierRLopes
5f4be25ed2 Update test_coinpaprika_view.py 2021-08-08 19:24:46 +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
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
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
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