Skip to main content

neuralhedge 📈

This library implements PyTorch realization of Hedging, Utility Maximization and Portfolio Optimization with neural networks. In particular it is made up of fully data-driven neural solver, where you could input your own data. The strategy, model and solver class are fully decoupled, making it very easy to implement your personalized problem. This implementation is very light weighted and essentially only relies on PyTorch for convenient future maintenance.

Installation 📦

Install the latest stable release:

$ pip install neuralhedge

Install the latest github version:

$ pip install git+https://github.com/justinhou95/NeuralHedge.git

Clone the github repo for development to access to tests, tutorials and scripts.

$ git clone https://github.com/justinhou95/NeuralHedge.git

and install in develop mode

$ cd NeuralHedge
$ pip install -e .

Tutorials 📚

To help you to understand how easy to train your models with neuralhedge, we also provide tutorials:

  • deephedge.ipynb shows you how to hedge an European call option under Black Scholes model with neural network.
  • efficienthedge.ipynb shows you how to efficent (partial) hedge an European call option with insufficent endowment with neural network.
  • logutiliy.ipynb shows you how to solve Merton's portfolio problem with neural network.
  • mean_variance.ipynb shows you how to solve the mean-variance portfolio problem.

Dealing with issues 🛠️

If you are experiencing any issues while running the code or request new features/models to be implemented please open an issue on github.

Contributing 🚀

You want to contribute to this library, that will be cool!

Metadata

Release files for neuralhedge 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuralhedge 0.1.0
File Size Uploaded Provenance Actions
neuralhedge-0.1.0.tar.gz 20.9 kB Without provenance Details for neuralhedge-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neuralhedge 0.1.0
File Interpreter ABI Platform Actions
neuralhedge-0.1.0-py3-none-any.whl Python 3 none any Details for neuralhedge-0.1.0-py3-none-any.whl

Total release size: 42.9 kB

Release files / neuralhedge-0.1.0.tar.gz

Download URL neuralhedge-0.1.0.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d472407824d4fa002156ec195825e3573c3a0b9dba0538af8adb07cfa9925cf8
BLAKE2b-256 checksum
How to use checksums
7d62cf4fdcf43613442717828729c6f0b732b4b4dad729dc55bd82038084f93b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.13

Release files / neuralhedge-0.1.0-py3-none-any.whl

Download URL neuralhedge-0.1.0-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c4239a62995c271ae7af1b5a20b08c6d306f867e802120ae716bd92a1ac129a
BLAKE2b-256 checksum
How to use checksums
345e341912540af1e0e4a9a00eafce7fbc8baf5bf7530050c8da6eca315087f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.13

Security for neuralhedge 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page