This api can provide you with 5 coefficints to analyze your stock portfolio.
- Coefficient of variation
- Sharpe ratio
- Information coefficient
- Sortino coefficient
- Treynor ratio
Simply download archive and unzip to desired folder
cd ~/path_to_folder
python3 Main.py
-To add company type it's token, number
-Press Add button or type Enter
Choose conmpany any pass it's ticker as argument If you want to specify the amount of years take to account you can add this as keyword argument depth
from portfoloio_analysis.demo import demo
example_portfolio = [{"name": "mco", "number": 1.0},
{"name": "goog", "number": 0.5}]
depth = 5
print(demo(example_portfolio, depth=depth))
python3 -m pip install git+https://github.com/Jabca/EconomicApi
- yfinance - stcok prices history
- pandas - data analysis
- pandas_datareader - benchmark history
- pytest - unit tests
- pyqt5 - gui
- requests_cache - requests cache for gui