Commit Graph

233 Commits

Author SHA1 Message Date
didierlopes.eth
281ec983d0 Add command location to plots (#1474)
* poc of source on figures

* update feature flag

* fix reset on stocks/ba menu

* improve aligment

* remove source

* make command location a global variable

* add cmdloc to settings controller
2022-03-14 14:07:42 -04:00
minhhoang1023
784ceb6316 Add Crypto Market Cap dominance from Messari (#1467)
* Add market cap dominance from Messari

* Add command to script

* Add tests and hugo server

* Update tests

* Fix tests

* Remove test view

* Fix Jose's comments

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-03-14 23:53:52 +07:00
minhhoang1023
0127c37c20 Fix ENABLE_RICH bug & fix test not catching the bug (#1448)
* Fix rich bug & fix tests not catching the bug

* Remove feature_flags diff

* Remove enable_rich and enable_rich_panel from ff

* Add back enable_rich_panel

* Setting default value back to True

* Disable rich when running tests

* Remove COLOR

* Fix tests

* Rewrite tests

* Remove default cassette

* Rewrite tests

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-03-14 14:15:12 +00:00
Colin Delahunty
3d5cbcb2ae Extended Dupont (#1475)
* Added dupont, fixed fraud

* Added dupont to scripts

* Added better handling

* Added test fixes

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-12 14:28:25 -05:00
minhhoang1023
dbaa3ecb41 Fix bug Real Time Performance (#1454)
* Fix bug percentage Real time performance

* Update ticker format

* Update tests

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-12 13:24:24 -05:00
Colin Delahunty
fd5e56dd49 Improved Fraud Command (#1472)
* Added better data

* improved docs

* Fixed some tests

* Fixed tests
2022-03-11 18:42:29 -05:00
minhhoang1023
e49d46e500 Fix bug Stocks Screener & Update finvizfinance package (#1443)
* Update attribute of finviz finance updated version

* Update lock file

* Add magnitude to columns with long number

* Update tests

* Fix tests

* Try to fix tests

* add col space

* Fix linting

* Re-run tests locally

* Change ticker

* Re-generate output and casssete

* Update tests

* Rewrite cassesstes

* Mute stdout & update to rest of commands

* Fix tests

* Add magnitude for rest of commands

Co-authored-by: teh_coderer <me@tehcoderer.com>
2022-03-11 04:18:56 +00:00
jmaslek
c6dead943c Add in Cramer recs by Ticker (#1457)
* Add cramer by ticker and move both to ba

* Fix apis and move existing tests

* Add new tests + gst

* Hugo

* Update _index.md

* Fix tests

* quick changes
2022-03-10 10:27:29 -05:00
didierlopes.eth
35cd91881f Interest from google trends correlated with stock price (#1463)
* Add interest command

* refactor code a bit further

* add docs

* add integrated tests

* Update _index.md

* fix test help
2022-03-10 13:55:21 +00:00
didierlopes.eth
97b7f03dd8 fix no normalization in historical comparison analysis (#1449)
* fix no normalization in historical comparison analysis

* fix test accordingly

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-08 13:47:26 -05:00
didierlopes.eth
0aa21d732c Add splits command (#1438)
* add splits feature

* add tests

* add splits to integrated tests

* Add splits hugo

* Update _index.md

* refactor econometrics style

* rewrite stocks/fa tests

* Implement market cap command (#1437) (#1440)

* add gst letters only

* implement market cap command

* add tests

* update hugo with mktcap cmd

* add mktcap to integrated tests

* Update _index.md

* update test fa data

* Update fa_controller.py

* fix tests fmp

* fx some of the av tests

* add export capability to AV earnings

* fix test_fa_controller

* fix source in options controller

* fix tests with Chavhi help

* fix test
2022-03-07 16:27:08 +00:00
didierlopes.eth
7090d0643a Implement market cap command (#1437)
* add gst letters only

* implement market cap command

* add tests

* update hugo with mktcap cmd

* add mktcap to integrated tests

* Update _index.md

* update test fa data
2022-03-06 15:44:01 +03:00
minhhoang1023
401e4c739a Output Missing API Key Message to Console (#1357)
* Decorator to output error msg to console of missing API Key

* Refactor FMP & alpha advantage

* Refactor FRED & QUANDL

* Refactor Polygon

* Refactor FRED

* Refactor FRED

* Refactor Finnhub & coinmarketcap & Newsapi

* Allow disabling of check api

* Updating tests : disable check api for tests

* Refactor Finnhub & SI & Binance

* Fix linting

* Fix test & add black formatting

* Fix test failing

* Fix test failing

* Refactor CryptoPanic & Whales alert & Glassnode & Coinglass

* Refactor ETHexplorer & Smartstake & Alpha Advanage & Coinbase

* Add decorators to controllers

* Fix test & Refactor Coinbase, RH, Reddit

* Add contributing guideline

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* fix tests

* add decorator to snews cmd

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-03-05 15:27:43 +00:00
Jeroen Bouma
f2ca215132 Econometrics Menu (#1403)
* Add Statistics Menu

* Add Granger Causality test

* Apply Black formatting

* Add Cointegration Tests

* Adjust plotting for Cointegration test

* Add Significant parameter to Cointegration tests

* Move regression functions to seperate .py files

* Progress on Panel Data

* A lot of progress for Panel Data

* Make functions robust and improve documentation

* Re-enable Breusch-Godfrey

* Add modify functionality

* Improve modify functionality

* Add Breusch-Pagan heteroscedasticity test

* Capitalize a word

* Include documentatin for the Statistics Menu

* Update _index.md

* Update _index.md

* Update _index.md

* Fix export statements and add Example datasets

* Update example with Longley's dataset

* Update documentation with a legit source

* Compare the results from each regression models based on the wage_panel dataset

* Updated with all relevant types of regression tables

* Update with all relevant regression types for Panel data

* Update _index.md

* Add change column type, improve OLS, add time and entity effects for FE

* Update documentation and fix a small bug

* Add in Statistics menu, replacing Custom menu

* Remove custom menu

* Add in documentation

* Add in gst files

* Cointegration can be used on any amount of columns

* Add Tests

* Make tests time invariant

* Update Poetry and Requirements

* Change name of Statistics menu to Econometrics menu

* Rename scripts

* Add type in Documentation

* Change names from Statistics to Econometrics

* Add graph

* Update tests with rounding and naming

* Make minor adjustments to fix the tests

* Updating tests : allow extra args for capture

* Apply recorder formatting

* Adding some minor formatting

* Fix error with MyPy

* Attempt to fix MyPy annoyance

* super small style things

* Fix small bugs and add plot command to dwat

* Small description mistake

* Update documentation with missing argument

* Update styling

* Add error handling and add improve show functionality

* Fix merge issue

* Allow import from custom_imports

Co-authored-by: Jeroen Bouma <jeroenbouma@MacBook-Pro-van-Jeroen.local>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-03-04 21:44:59 +01:00
jmaslek
cb0de1ecf2 Fix the cramer function (#1435) 2022-03-03 21:19:43 -05:00
didierlopes.eth
b28e387b10 Sentiment News correlation with Stock price (#1421)
* news api refactored in model and view

* fix apis

* allow news to be displayed as vertical bar in candle

* add gst letters only

* small fix

* minor fixes

* redo normal candle without news

* add a new funtion for sentiment of headlines and stock price

* add finnhub python to requirements

* fix FRED granularity

* fix grhist plot coloring

* remove unused arg

* improve defi menu

* stocks/ba/snews API

* add tests for stocks/ba/snews

* update hugo

* Update _index.md

* ensure error is catch when wrong API key

* fix tests

* fix economy tests

* remove stats because that finnhub data is now premium

* improve plot snews
2022-03-03 21:18:41 +00:00
jmaslek
eb6d3ff8ac Add cramer recommendations (+ inverse :) ) (#1427)
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-03-02 11:42:33 -05:00
Theodore Aptekarev
51f4592270 Update sia and historical charts (#1424)
* Add external axes support and label to sia/vis

* Update sia tests (fix line endings)

* Fix legend position in historical charts
2022-02-28 23:51:49 +07:00
LBolte29
0f61f0b08e Log exceptions (#1393)
* log user settings, errors and exceptions
2022-02-26 10:56:10 +01:00
northern-64bit
884bb82fb5 Adding risk metrics to portfolio and qa (#1394)
* Adding es to qa and var to portfolio

* Fixing mathematics

* Adding es command to portfolio menu

* Linting

* Fixing tests

* Lint fixes

* lint fixes

* Adding hugo, tests and small fixes

* Fixes

* Fix mypy + portfolio model

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-02-25 13:02:01 -05:00
jose-donato
a5848af908 Crypto heatmaps (#1416)
* added hm feature

* updated requirements

* updated tests

* updated tests

* updated charts convention and removed duplicated autocompletion

* added percentage

* lint

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-02-25 12:15:50 +00:00
Colin Delahunty
24670c3b86 Improve integrated tests (#1415)
* Added verbosity and check for file

* Fixed

* Added tests

* Added tests

* Updated .gitignore

* Improved handling

* Fixed tests

* Updated record

* Fixed nested folder

* Standardized path output for windows

* fixed black issues

* Fixed pylint
2022-02-25 10:41:00 +00:00
minhhoang1023
576b847d91 Fix pipo & fipo limit arguments (#1411)
* Fix beautiful soup class

* Add --limit, and --start arguement for pipo

* Reverse commits from the other PR

* Make same changes for pipo for consistency

* Update tests

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-02-23 15:40:42 +03:00
Colin Delahunty
dfcd515500 Refactored menu (#1354)
* Refactored menu

* Updated test

* Changes

* Added Lucas change

* Refactored

* Test fixes

* Fixed tests

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-02-22 19:54:29 -05:00
minhhoang1023
f82a7e00d5 Fix visualise sia metric (#1392)
* Fix beautiful soup class

* Update test cassettes

* Update test cassettes for dcf

* Update test cassettes for all failing tests

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-02-22 22:48:58 +07:00
Chavithra
d036af66e4 Updating tests : cryptocurrency/onchain/ethplorer (#1414) 2022-02-22 17:22:41 +03:00
minhhoang1023
7792c24fdb Fix bugs Stocks Candle moving average (#1369)
* Fix bugs moving average

* Update tests

* Remove second y axis & add MA to legend

* Update stocks_controller.py

spelling

* Fix test

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-02-21 22:32:14 +07:00
jmaslek
72bfa9e2d8 Portfolio optimization bugs (#1388)
* Better EF plotting

* Better error handling with optimization commands

* fix test

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-02-19 12:50:35 -05:00
jmaslek
4697efcf26 Squishy the bugs (#1391)
* options screener tickers to list(set(

* Fix fred rmv bug

* Fix prt

* Fix tests + change where list is called
2022-02-19 12:31:37 +00:00
LBolte29
fd58219282 adjusted format of logs (#1292)
adjusted format of logs
2022-02-17 12:33:59 +01:00
jmaslek
4e84bd2557 Clean up FA menu printing (#1383) 2022-02-16 17:14:37 +00:00
minhhoang1023
a16db8a6f1 Fix Stocks Due Dilliegence Supplier bug (#1372)
* Fix supplier bug

* Update test

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-02-16 14:07:56 +00:00
minhhoang1023
b3a379e838 Sort Stocks/DD/Arktrades by most recent (#1375)
* Sort trades from the most recent

* Update tests

* Update test

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-02-16 12:45:31 +00:00
minhhoang1023
a66ff41de4 Add Luna cir supply command from Smartstake (#1289)
* 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

* Add luna cir.supply from smartstake

* Add tests and instructions to get token

* Add tests

* Add Hugo server

* Mock key and token

* Add Smartstake to key controller

* Mock key and skip test module

* Skipp model test

Co-authored-by: Minh Hoang <minh@Minhs-MBP.Home>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-02-15 11:22:56 +07:00
minhhoang1023
53945ddbae Fix stocks asthetic style (#1355)
* Fix Theo's comment

* Fix tests failing

* Fix tests

* Make plot lines thinner

* Make ticks thinner globally by default

* Apply global style when any controller is initialized

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-02-14 19:11:05 +03:00
Theodore Aptekarev
e1b6022b9c Global plot styles (#1228)
* Add default stylesheets

* Add terminal style helper class and global style initialization in cfg

* Style comments and docstrings

* Load rich terminal theme from config file

* Add application chart styles to candle charts

* Add todos

* Remove explicit color setting for some ta charts

* Add user styles folder to gitignore

* Update default stylesheets

* Add matplotlib font manager support

* Add matplotlib font manager support

* Update docstrings and default style

* Update stocks candle chart formatting (return fig to style title)

* Style common ta overlap view

* Make up and down market colors a part of the style helper

* Update stylesheets

* Style common ta volume view

* Style common ta momentum view

* Style common ta trend indicators view

* Style common ta volatility view

* Style common ta volume view

* Style common ta custom indicators view

* Fix styling bugs and remove the obvious time x lablel

* Style charts in the covid menu

* Set legend position to upper left in the mpl stylesheet

* Add mpl_rcparams configs for parameters not covered by stylesheets

* Remove font configuration files

* Update style class utility functions

* Implement passing external axes and style utility usage in ema & stoch

* Add theme watermark and output helpers

* Rename style to theme

* Update helper usage in ta/ma and ta/stoch

* Update style to theme in sample menus

* Style forex (#1305)

* Make tight layout optional 'cause mplfinance doesn't support it

* Apply global style to the forex menu

* Update code layout in oanda view and black

* Style common TA (#1315)

* Make tight layout optional 'cause mplfinance doesn't support it

* Apply global style to the forex menu

* Add linewidth to theme for use in mpf's addplots

* Add vwap to the stocks notebook api

* Update common/ta overlap to follow charting style

* Apply style on TerminalStyle init

* Enable infrastructure for excluding non-trading days from plots

* Update notebook api to include there and resolve bandit warning

* Update ta/common/overlap to exclude non-trading days

* Enable external ax, style and non-trading days in common/ta/momentum

* Enable external ax, style and non-trading days in common/ta/trend

* Update vwap to the argument naming convention

* Enable external ax, style and non-trading days in common/ta/volatility

* Enable external ax, style and non-trading days in common/ta/volume

* Enable external ax, style and non-trading days in common/ta/custom

* Fix controller tests

* Forgot to disable rewriting of the cassettes ...

* Fix controller errors that came up because a merge conflict

* Fix price label position on fib

* Fix line having wrong x values in fib

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>

* Style economy (#1308)

* Began converting

* Added alphavan_view

* Added CNN View

* Updated nasdaq view, fixed glitch

* Added fred

* Refactored URL

* Theo's requested changes

* Updated docstrings

* Updated tests

* Fixed pylint

* Fixed tests

* Theo changes

* Econ Fix

* Refactor chart style for Crypto context (#1306)

* Remove mock for gff

* Mock visualize_output helper function

* Refactor

* Fix plot helper

* Update legend loc

* Refactor mplfinance candle plot

* Fix errors in the helper function

* Fix binbook having the wrong call_ function name

* Remove hardcoded style params

* Resolve kwargs future warning from pandas

* Remove warnings import

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>

* funds + custom (#1311)

* funds + custom

* cleanup cleanup everybody everywhere

* Fix external axes conditional and a typo

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>

* Add external axes mode to covid charts (#1328)

* Add portfolio menu plots (#1318)

* Portfolio view plots (commenting out report stuff)

* PA Menu broken.  Commenting out and fix tests

* portfolio optimization

* comment out commented api line

* Add notes on disabling the pa submenu

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>

* Plot updates in common BA (#1335)

* Add external axes support to common/ba/finbrain

* Add external axes support to common/ba/twitter

* Add external axes support to common/ba/google

* Add external axes support to common/ba/sentimentinvestor

* Add sentimentinvestor to the notebooks API

* Fix tests

* Etf refactor (#1323)

* Refactored no ETF

* Fixed gtff import

* Fixed tests

* Fix pie chart style

* Refactored etf/candle

* Added pylint fix

* Fixed tests

* Update candle chart layout

* Update etf controller test

* Remove strange binary file

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>

* Expose ETF candle function in the notebooks API

* Common BA and Common QA charts update (#1342)

* Add external axes support to common/ba/finbrain

* Add external axes support to common/ba/twitter

* Add external axes support to common/ba/google

* Add external axes support to common/ba/sentimentinvestor

* Add sentimentinvestor to the notebooks API

* Fix tests

* Update stylesheet files

* Refactor charts for common/qa

* Update the forgotten line plot

* Update tests

* Add missing arg to a docstring

* Remove scientific notation

* Black imports

Co-authored-by: Minh Hoang <nminh.hoang1023@gmail.com>

* Options refactor (#1324)

* Fixed alphaquery_view

* finished options

* Fixed pylint

* Fixed tests

* Fixed tests

* Fixed tests

* update yfinance

* Tradier + Chartexchange

* change mocks from gtff to theme.visualize output

* tests

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: james <jmaslek11@gmail.com>

* Refactor Stocks menu (#1325)

* Fix backtesting menu

* Refactor comparison analysis

* Refactor Dark pool shorts

* Refactor rest of menu

* Fix test

* Fix tests failing

* Fix tests fail

* Fix test failing

* Remove record mode=none to record new output

* Rewrite test output

* Rewrite test outputs

* Adding more rewritten test output

* Mock plt.show

* Mock missing plt.show

* Missing @pytest.mark.vcr

* Updating tests : common/behavioural_analysis/finbrain

* Improve notebooks API coverage for CA and DPS

* Silence annoying flake8 warning

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>

* Charts update for common/pred (#1344)

* Add external axes support to common/ba/finbrain

* Add external axes support to common/ba/twitter

* Add external axes support to common/ba/google

* Add external axes support to common/ba/sentimentinvestor

* Add sentimentinvestor to the notebooks API

* Fix tests

* Update stylesheet files

* Refactor charts for common/qa

* Update the forgotten line plot

* Update tests

* Add missing arg to a docstring

* Style pred helper and controllers

* Update ETS plot

* Update plots in KNN and pred helper

* Update plot and pretty table for arima

* Update plot for common/pred/regression

* Refactor mc_view

* Fix linting

* Fix mypy

* Move plot title to the axis level to make more vertical space

Co-authored-by: Minh Hoang <nminh.hoang1023@gmail.com>
Co-authored-by: jmaslek <jmaslek11@gmail.com>

* linter

* Update common/ba test data

* Change etf candle to match stock candle

* try updating sia test

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: Minh Hoang <nminh.hoang1023@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-02-11 20:33:16 -05:00
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