d-lowl / EconomicApi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Portfolio analysis

This api can provide you with 5 coefficints to analyze your stock portfolio.

  • Coefficient of variation
  • Sharpe ratio
  • Information coefficient
  • Sortino coefficient
  • Treynor ratio

Gui

Installation

Simply download archive and unzip to desired folder

cd ~/path_to_folder
python3 Main.py

alt text -To add company type it's token, number -Press Add button or type Enter

To see api in action

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))

Instalation

python3 -m pip install git+https://github.com/Jabca/EconomicApi

Packages

  • yfinance - stcok prices history
  • pandas - data analysis
  • pandas_datareader - benchmark history
  • pytest - unit tests
  • pyqt5 - gui
  • requests_cache - requests cache for gui

About


Languages

Language:Python 100.0%