Giter Club home page Giter Club logo

mbkraus / python_portfolio__var_tool Goto Github PK

View Code? Open in Web Editor NEW
114.0 9.0 37.0 1.3 MB

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)

Python 100.00%
python portfolio stock investment risk value-at-risk sp500-real-time-data return sharpe-ratio monte-carlo-simulation

python_portfolio__var_tool's Introduction

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

python_portfolio__var_tool's People

Contributors

mbkraus avatar royopa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python_portfolio__var_tool's Issues

Error Message

all the input array dimensions for the concentration axis must match exactly, but along dimension 1, the array at index 0 has size 4563 and the array at index 1 has size 4562

Any idea how to fix this error message I am getting after clicking retrieve data? Appreciate the work, tool looks awesome

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.