Estimates the Risk Neutral Density and Historical Density of an underlying and suggests trading intervals based on the Pricing Kernel.
Project description
spd_trading
This package estimates the Risk Neutral Density (RND) and Historical Density (HD) of an underlying and suggests a trading strategy based on the Pricing Kernel:
The RND is estimated by Rookley's Method, which uses the option table of one trading day. risk_neutral_density.Calculator.get_rnd
The HD is estimated by a GARCH(1,1) Model, which uses a timeseries of the underlying. historical_density.Calculator.get_hd
The package is part of a Master Thesis, which will be published after grading [1]_. The thesis explains the theoretical background in more detail and gives more references. Furthermore an actual trading strategy was implemented and backtested on real data (BTC options March-September 2019).
The concious desicion of not implementing the actual strategy in the package is due to the high responsibility that would come with publishing such a risky tool. However, the construction of strategies based on the kernels are explained and analyized in the thesis as well.
Installation
Via pip
pip install spd_trading
Or via download from git:
pip install git+https://github.com/franwe/spd-trading#egg=spd-trading
Note that in order to avoid potential conflicts with other packages it is strongly recommended to use a virtual environment (venv) or a conda environment.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file spd_trading-0.1.3.tar.gz
.
File metadata
- Download URL: spd_trading-0.1.3.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc26fe3b34ceeb692e3d9f9103354e85fbe059dfa0798727122635c76fb11cb1 |
|
MD5 | a0039ce7d1d2d1d35d11461d5a747b56 |
|
BLAKE2b-256 | 2e2f8b635541c9cff5a3258c86a94df6ecb35072d2e2e60b3f1611122ba73f87 |
File details
Details for the file spd_trading-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: spd_trading-0.1.3-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3c14e98a1ca5397a8acc18b4e782f68dc086d316a0e158a3ca8b071fe729fe9 |
|
MD5 | 8e4dc2144fcd0bfd675d98a34627ff80 |
|
BLAKE2b-256 | 60416cdc0fb25657e55960a3e505647e70aee656ca6a97233f386524ffcd9559 |