Skip to main content

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.

See image in README.md in GitHub repo.

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

spd_trading-0.1.2.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

spd_trading-0.1.2-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file spd_trading-0.1.2.tar.gz.

File metadata

  • Download URL: spd_trading-0.1.2.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.6

File hashes

Hashes for spd_trading-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6cdb7272850208c0466232308140accd85ece991bd9a8fa32c75ca9cc1a57eb0
MD5 e0dcc447abe511c36e7db918f9ac4a17
BLAKE2b-256 8f9c2d3565e4f845e4d23df60309ad57a5af9acc8e6d26597600e92241b09dcb

See more details on using hashes here.

File details

Details for the file spd_trading-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: spd_trading-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.6

File hashes

Hashes for spd_trading-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ea1d3c2ca4f9cf7fe436cc5ef24b1afebee485ce2fb162bc8342db6ef493fea1
MD5 6e572592a30473e891bfbae7eb46a6e4
BLAKE2b-256 e1283704f6a4add96efd09250d476d7d01680bcdc2826b9782d3bfc463d2c60d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page