• Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language
    Python
  • Created almost 7 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

More Repositories

1

Predicting_real_estate_prices_using_scikit-learn

Predicting Amsterdam house / real estate prices using Ordinary Least Squares-, XGBoost-, KNN-, Lasso-, Ridge-, Polynomial-, Random Forest-, and Neural Network MLP Regression (via scikit-learn)
Python
154
star
2

incremental_training

Repo that relates to the Medium blog 'Keeping your ML model in shape with Kafka, Airflow' and MLFlow'
Python
120
star
3

dockerized_data_science_playground

Multi-docker container data science / engineering playground (w/ Kafka, Airflow, MLFlow, Tensorflow-Keras / SKLearn) for simulating a microservices-oriented architecture
Dockerfile
10
star
4

Solvency_II_Equity_Risk_Capital_Charge

Python script for calculating the (type I) equity risk solvency capital charge ("SCR") under Solvency II
Python
7
star
5

Hyperopt

Repo that relates to the Medium blog 'Using Bayesian Optimization to reduce the time spent on hyperparameter tuning'
Jupyter Notebook
7
star
6

Solvency_II_Spread_Risk_Capital_Charge

Python script for calculating the spread risk solvency capital charge ("SCR") for a bond portfolio under Solvency II (along the standard formula)
Python
6
star
7

Django-local-community-football-platform

Web-based local community football platform built on the Django web framework (with the help of Python, Bootstrap3, GeoPy, and GoogleMaps-API)
HTML
4
star
8

Mean_Variance_Portfolio_Optimization_with_Carbon_Intensity_Constraints

Python script for single period Mean-Variance Optimization (MVO) with scope 1+2 carbon intensity constraints
Python
4
star
9

Amsterdam-Airport-Schiphol-Flight-Data-App

Basic API-sourced python-based flight data widget for retrieving arrival and departures data for Amsterdam Airport Schiphol (along a GUI constructed with wxPython)
Python
1
star