Commit Graph

79 Commits

Author SHA1 Message Date
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
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
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
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
jmaslek
a00192638b Danglewood/etf (#1261)
* batch1

* batch2

* eft -> etf
2022-01-25 09:51:55 +00: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
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
jmaslek
ec400e46dd fix hugo (#1229) 2022-01-20 20:49:31 -05:00
Colin Delahunty
a799585d0f Options Chain Dashboard (#1226)
* Began new

* Added chains

* Added documentation

* Enhancements

* removed black[jupyter]
2022-01-20 19:22:50 -05: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
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
jp
c37a116a25 Terra luna (#1197)
* 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

* add dataframe helper denomination method, add terramoney_fcd model

* add account growth function, goverment proposals function

* add staking ratio and returns for terra:

* Refactor terra model, add terramoney_fcd_view with 2 methods

* Add terramoney_fdc_model views

* add plots for terra fcd views

* add terra fcd to defi controller

* add hugo docs, refactor defi controller

* change export parameters, refactor chart tickers, fix --descend flag in validators command, add multiline formatted string for terra staking report, change tabulate to rich, add terra adress validator
2022-01-17 18:47:59 +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
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
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
jp
9d36f84ac6 Coindix (#1165)
* 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

* Add view for coindix

* Adjust coindix view. Add hugo docs

* Refactor risk of vault part, add link paramter, rename cols

* remove try except, add source

* fix wrongly resolved conflicts
2022-01-11 09:32:22 +00: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
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
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
jmaslek
966cd3c6d5 New alternative data context + first sub context (Covid) (#1142) 2022-01-06 13:12:38 -05: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
jmaslek
f5b0dc8e7b Add prediction to economy/fred (#1133) 2022-01-04 14:10:40 -05:00
jose-donato
31dad613a7 added new hr feature (#1128) 2022-01-03 19:29:06 +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
c961fcb278 Add whatif scenario feature (#1122)
* Add whatif scenario feature

* fix tests
2022-01-01 17:57:52 +00:00
Didier Rodrigues Lopes
5797549c2f fix gh docs (#1108) 2021-12-29 16:24:14 +03:00
Danglewood
05889b9756 Updated Hugo Server for Portfolio Menu Refactor (#1104)
* Updated menu tree for refactored portfolio menu

* updated for refactor

* no longer exists

* added menu screenshot

* updated description

* updated description

* added image

* added image

* added image

* added image

* added screenshot

* updated description

* added image

* updated description/added image

* added image/updated description

* added image/updated description

* added image
2021-12-29 11:07:53 +00:00
jp
072c413ac0 Bitquery feature branch (#1016)
* 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

* Add bitquery model and view

* Move bitquery to onchain module

* Bitquery added to onchain controller

* Apply long number formatting for big numbers in bitquery commands

* Update README with bitquery API key

* Add error handling for cases when there is no token found, or dextrades response is empty. Use os library to take care of paths to files

* Add helper method to extract dexTrades object from bitquery response. Add timout exception to request function. Add mapping for DECENTRALIZED_EXCHANGES to support lowercase choices:

* Refactor bitquery model and views, prettify column names, remove redundant columns, change command names. Add test for api key

* Update website docs for bitquery

* Add difflib implementation for exchanges in bitquery ttcp command

* Remove menu() from code

* Remove tokens with less than 3 trades (doesn't make sense to show them, as most of them are scams). Add difflib for -coin parameter in baas command
2021-12-09 23:52:58 +00:00
jmaslek
d21b070b88 Fred menu (#1038) 2021-12-09 08:08:24 -05:00
jose-donato
92ff4f9638 Adds commands for crypto withdrawal fees (#1028)
* docs: added missing api docs to readme

* feat: added withdrawal fees commands

* fix: linting

* fix: merged wfc and wfcstats commands

* fix: changes top default to 10, fixes coin name and menu

* feat: added auto completion and minor fixes

* feat: no need for -c flag in wfpe command
2021-12-08 23:34:40 +00:00
Colin Delahunty
0be4c8a2d7 Binomial Options Pricing (#1017)
* Added variables for binom function

* Finished binom function

* Updated .ipynb handling

* James updates

* Expanded definitions

* Expanded description
2021-12-08 16:23:03 -05:00
Danglewood
1009ffccbe New Sector Analysis Menue (#1037)
* Added image/updated URL

* Added image/updated source URL

* Added image/updated URL

* updated text

* Added image/updated source URL

* command does not exist.

* replacing accidental deletion

* Added image/updated URL

* Added image/updated URL

* Added Images

* added image

* Added image

* Added image.

* Updated text.

* Updated text

* added image.

* updated text

* added image

* Spelling

* Spelling

* Spelling

* Added image/source URL

* Updated description

* updated description

* Updated text/added image

* changed word

* Updated description/added image.

* added image/updated text

* Updated text

* added image/updated text

* Added image

* added image

* added image.

* added image

* added image

* added image

* added image

* added image

* added image

* added sample

* added images

* added image

* added image

* added image

* added image

* added image

* added image

* added image

* added image

* added image

* added image

* added link to country codes

* added image

* added image

* added image

* added image

* added image.

* added image

* added image/updated text

* added image

* added image/updated text

* added image

* added image

* added image

* Added image/updated description

* added image

* added image/updated description

* added image/updated description

* added image/updated description

* added image/updated description.

* added image/updated description

* updated text

* Updated text

* added image

* added image/updated text

* Added image/updated description.

* added image

* updated text

* added image/updated description

* added image/update description

* added image

* added image

* updated text

* added image

* added image

* added image/updated description.

* Create _index.md

* Create _index.md

* updated image/description

* added image/updated description

* added image

* added image

* added image

* added image

* added additional image

* Updated description.

* updated image/description.

* Updated image/description

* updated image/description.

* updated image/description.

* updated description.

* updated image/description.

* updated image/description.

* updated image/description.

* updated image/added description.

* updated image/description.

* updated image/description.

* updated image/description.

* Updated description.

* updated description.

* updated description.

* added image

* updated text

* updated text

* updated url

* updated URL

* updated image

* updated url

* updated url

* added sample output

* updated description.

* updated description

* Updated text

* added image/updated description.

* updated description.

* updated description.

* updated link.

* updated description.

* updated description.

* added image/updated description.

* Updated description.

* Updated description.

* added sample output

* updated description

* updated description

* updated image/description

* added sample output/updated description.

* added sample output/updated description

* updated image/description.

* updated description.

* added image/updated description.

* updated description.

* added image/updated description.

* updated description.

* added image/updated description.

* added image/updated description

* updated description.

* added image/updated description.

* updated description/added image

* spelling

* Update labels.yml

updated label from none to 'website'

* updated to remove error

* added image

* added image

* updated image

* added image

* added image

* added image

* added image

* added image

* added image

* added image

* added image

* added sample output

* updated image/description.

* updated image/description.

* updated image/description

* updated image

* updated description.

* updated image/description

* updated image/description.

* updated description.

* updated image

* updated image

* updated image/description

* adding SIA directory

* added submenu description

* added description

* added description

* added description.

* Delete industry

* added description.

* added description.

* Added description

* added description

* added image/description

* added image/description.

* added image/description.

* added image/description.

* added image/description

* added image/description

* added image/description

* added image/description.

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* added image/description

* updated description

* Update and rename website/content/stocks/sia/cpi/_index.md to website/content/stocks/sia/cpic/_index.md

* updated description

* Delete website/content/stocks/sia/cr directory

* Delete website/content/stocks/sia/de directory

* Delete website/content/stocks/sia/ebitda directory

* Delete website/content/stocks/sia/ebitdam directory

* Delete website/content/stocks/sia/eg directory

* added image/description

* added image/description

* added image/description

* Delete website/content/stocks/sia/fcf directory

* Delete website/content/stocks/sia/gm directory

* Delete website/content/stocks/sia/gp directory

* Delete website/content/stocks/sia/ocf directory

* Delete website/content/stocks/sia/om directory

* Delete website/content/stocks/sia/pm directory

* Delete website/content/stocks/sia/qr directory

* Delete website/content/stocks/sia/rec directory

* Delete website/content/stocks/sia/rg directory

* Delete website/content/stocks/sia/roa directory

* Delete website/content/stocks/sia/roe directory

* Delete website/content/stocks/sia/rps directory

* Delete website/content/stocks/sia/tc directory

* Delete website/content/stocks/sia/tcs directory

* Delete website/content/stocks/sia/td directory

* Delete website/content/stocks/sia/tr directory

* added description

* added description

* added image/description

* added Sector and Industry Analysis to directory

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2021-12-08 09:51:20 +00:00
jmaslek
cdd04cf392 Add dividend history from yfinance (#1021) 2021-12-05 20:03:07 -05:00
jp
c045b04853 Cryptopanic (#969)
* 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

* Add model for cryptopanic - news aggregator for crypto

* Add view for cryptopanic

* controller for overview

* Add docs for news cryptopanic cmd

* update readme with Coinpanic api key

* add news to hugo main.yml, change export method
2021-11-23 10:38:58 -05:00
jmaslek
6978fbed3d delete hugo content for deleted function (#963)
Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-11-19 11:36:18 -05:00
jose-donato
d8c84c8638 Fixes Bybt api change and adds eb and active crypto features (#950)
* initial commit

* fix: hugo docs

* fix: command typo

* fix: website docs yml

* fix: source url

* fix: removed active from onchain menu help message

* fix: lint

* fix: refactored to use ax1 instead of plt

* fix: moved supported assets and exchanges to model
2021-11-17 14:58:17 +00:00
jmaslek
4c96535eeb Add short data by exchange (#940)
* Add short volume by exchange

* Add hugo

* Add pymongo to reqs

* Add error catching

Co-authored-by: James Maslek <james@Jamess-MacBook-Pro.local>
Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-11-17 14:57:00 +00:00
Jeroen Bouma
fab1e40e43 Add search function to the stocks menu (#945)
* Add search function to find company tickers

* Add search function to stocks menu

* Update _index.md

* Delete img.png

* Add empty return statement if you call -h

* No blank spaces between parser arguments
2021-11-15 12:29:36 -05:00
jmaslek
11a8c1a803 Add the Big Mac index :) (#943)
* Add Big Mac index

Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-11-14 09:35:02 +03:00
jmaslek
59cecedc47 Add NASDAQ datalink retail trader dataset (#941)
Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-11-14 09:34:19 +03:00
DidierRLopes
0f29c85d2c Fix hugo with latest changes (#933) 2021-11-08 18:48:19 +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
DidierRLopes
faf412de98 Remove latest news and add Customised news (#923)
* remove disc/latest feature from seeking alpha

* Add cnews to stocks/discovery

* Improve cnews command

* update hugo server

* remove old READMEs

* fix typo

* Improve code to remove d_ and l_

* add *.env to gitignore
2021-11-06 12:08:22 +00:00
DidierRLopes
3b9c8eccce remove PR command due to paid paywall (#924) 2021-11-06 11:53:42 +00:00
jmaslek
aeb50156b7 Add alpha vantage economy endpoints to Econ menu (#918)
* Add alpha vantage gdp

* Add gdp per capita

* Add av inflation

* AV treasury yield

* AV unemployment

* Hugo doc

* forgot to commit a hugo page

Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-11-05 14:52:58 -04:00
DidierRLopes
941245707b Display Energy, Metals, Meats, Grains and Softs Futures (#915)
* Add futures overview

* update hugo
2021-11-05 10:26:48 +00:00
Colin Delahunty
c75810aae8 Risk neutral options valuation (#906)
* Risk neutral hedge

* Changeable risk

* Added documentation

* Improved description

* Improved description

* Retry

Co-authored-by: Colin Delahunty <colindelahunty@Colins-MacBook-Air.local>
2021-11-04 19:26:22 +00:00