Commit Graph

92 Commits

Author SHA1 Message Date
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
jp
099ca7cd1d Coingecko feature branch (#521)
* Added pycoingecko_helpers.py and pycoingecko_model.py, added some methods that scrapes the data from coingecko and some helper methods that handles mostly dataframe operations.

* More methods added for CoinGecko

* Started adding views, and adding them into controller.

* Add stablecoins, yield_farms, recently_added views

* Add more views for Coingecko, + add them to Controller

* remove retry from dependencies, and gecko model

* Add more views for coingecko, seperate coin menu from overview menu, fix imports

* Add some description for coin methods

* Add TA into seperate coin gecko controller

* fix mock path in coingecko tests

* Now if ta is sperate mode, and load doesn't return data frame, change test in the way that ta with Coin object returns data frame

* add seperate ta controller for crypto

* update readme

* small fix in REDME

* Add screenshots for coingecko menu

* fix ta menu for gecko

* Update Gecko Coin menu readme, add screenshots

* Update README with screenshots pt2

* Finish updating readme with screenshots

* remove not needed print statement from gecko view

* Typo

* fix ta crypto controller

* refactor some of views, remove url, add additional argparser params, remove columns which in most cases doesn't bring any value to end user

* Add additional parameters like sortby, descend, top, links for most of coingecko methods. Improve description of commands

* Split cmc, and binance into seperate menus

* add readme for cmc and binance

* Update REDME

* Update README pt2

* Fix news issue with sorting by rank, fix issue with period time parameter for top gainers and top losers view (changed from 1d - 24h)

* Add check for binance menu. If coin is not loaded, do not fail with candles and books commands. Remove new line in candle view. Update print help in crypto menu
2021-07-04 07:03:32 +01:00
DidierRLopes
e1612f905d Update donation section with patreon (#526)
* Update donation section with patreon

* Update based on pylint update it seems

* remove git import to fix bugs

* another pylint complain

* pylint stop crying pls
2021-06-30 00:22:03 +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
Jamie
08398163e1 update neural networks typing and add new preprocessing (add actual normalization and correctly rename nrormalization to mimax) 2021-05-05 11:04:28 -04:00
didier
81d9507328 fix fred test 2021-05-01 04:40:24 +01:00
Jamie
b86c143221 refactor fred -> econ menu. Added single vix command. black likely not updates from previous pr 2021-04-26 12:41:38 -04:00
Jamie
0265a4f78c fix test 2021-04-21 15:35:19 -04:00
Jamie
fa63412ac3 Add coinmarketcap top 100 ability + small refactor 2021-04-21 12:20:37 -04:00
Artem Veremey
90300b472e Refactoring Market Watch, FinViz, Yahoo Finance FA 2021-04-19 12:43:55 -07:00
Artem Veremey
753175e25b Refactoring business insider 2021-04-15 10:47:01 -07:00
Artem Veremey
7b5e7d165b Refactoring finviz_view 2021-04-12 09:26:59 -07:00
Artem Veremey
3ea2fed7b0 Refactoring financial_modeling_prep_view 2021-04-12 08:37:34 -07:00
jmaslek
4fe45fae1a Merge pull request #318 from jmaslek/crypto_test
Add docstring to crypto + add test
2021-04-09 09:23:02 -04:00
Jamie
bdf2b77cef spellcheck 2021-04-08 08:53:05 -04:00
Jamie
bc610b84d4 added return value mock + added test for get_coins 2021-04-08 08:40:21 -04:00
Jamie
6da75651e3 Add docstring to crypto + add test 2021-04-06 15:17:26 -04:00