Skip to content

appie-mathematics/Deep-Hedging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Hedging: A PyTorch Reproduction

Hedging GIF

This project, by Aadam Wiggers and Albin Jaldevik, is a PyTorch-based reproduction of the paper Deep Hedging by Hans Bühler, Lukas Gonon, Josef Teichmann, and Ben Wood. We'd like to extend our gratitude and give full credit for the original concept to these authors. The project is puerly for educational purposes and is not intended for commercial use.


Demo and Results

We present a range of experiments demonstrating what can be achieved with our framework. For a detailed explanation and deeper insights, please refer to our report.

Trained Agent Behavior

The following plot showcases the behavior of a trained agent:

Trained agent behavior

Final P&L Distribution

We present the final Profit & Loss distribution for two distinct trading costs scenarios:

2% Trading Cost

2% trading cost

25% Trading Cost

25% trading cost


Getting Started

Run on Kaggle

For a quick and easy start, you can use our Kaggle notebook. This allows you to run the code directly in your browser without any local setup.

Local Installation

To set up the project on your local machine, follow these steps:

  1. Clone the repository and navigate to the root directory:

    git clone https://github.com/appie-mathematics/Deep-Hedging
    cd Deep-Hedging
  2. Install the dependencies. To do so, run the following command:

    conda env create -f environment.yml

    Note: This requires Conda to be installed on your machine. The above command creates a conda environment named deep-hedge.

    To activate the environment, use:

    conda activate deep-hedge
  3. Run the code by executing the following command:

    python src/main.py

Contact

For any inquiries, feel free to open an issue on this GitHub repository or contact us directly.

About

Implementation of Deep-Hedging in PyTorch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors