Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MBKraus/Python_Portfolio__VaR_Tool

Repository files navigation

Python_Portfolio__VaR_Tool

Python-based risk management tool which sources data from Yahoo Finance and calculates different types of Value-at-Risk (VaR) metrics and many other risk/return characteristics both on an individual stock and portfolio-basis, stand-alone and vs. a benchmark of choice (constructed with wxPython)

This wxPython Notebook-app / widget allows one to retrieve stock / index data from Yahoo Finance through Pandas Datareader which are in turn combined with initial portfolio weights and a benchmark of choice to calculate the following risk / return metrics:


  • Historic returns (annual & daily - both an individual stock-, benchmark- and portfolio basis)

  • Historic standard deviation of returns (annual & daily - both an individual stock-, benchmark- and portfolio basis)

  • Annual Sharpe ratios (both an individual stock-, benchmark- and portfolio basis)

  • Beta's (both an individual stock-, benchmark- and portfolio basis)

  • Ex-post tracking error vs. the benchmark of choice

  • Daily return histograms on an individual stock- and portfolio basis

  • Indexed performance charts on an individual stock- and portfolio basis

  • 5% (daily) Historical Simulation Value-at-Risk (VaR) on an individual stock- and portfolio basis

  • 5% (daily) Variance-Covariance Value-at-Risk (VaR) on an individual stock- and portfolio basis

  • 5% (daily) Monte Carlo simulated (along Geometric Brownian Motion) Value-at-Risk (VaR) on an individual stock basis

  • stock return correlation heatmap


In addition, the data retrieved from Yahoo Finance can be exported in CSV-format through the checkbox on the MainFrame.

Screenshot MainFrame

alt text

Please note - this app requires the following packages / modules in order to function properly:

Screenshot Value-at-Risk data

alt text

Screenshot Descriptive Data

alt text

Screenshot Correlation heatmap

alt text

About

Python-based portfolio / stock widget which sources data from Yahoo Finance and calculates different types of Value-at-Risk (VaR) metrics and many other (ex-post) risk/return characteristics both on an individual stock and portfolio-basis, stand-alone and vs. a benchmark of choice (constructed with wxPython)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /