-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Unknown
committed
Jan 5, 2025
0 parents
commit d32c243
Showing
273 changed files
with
58,307 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: bb37bb626a9038d45e6d85a75ec138ce | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
quantflow.quantmind.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
================ | ||
Deribit | ||
================ | ||
|
||
.. currentmodule:: quantflow.data.deribit | ||
|
||
.. autoclass:: Deribit | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
================ | ||
FMP | ||
================ | ||
|
||
.. currentmodule:: quantflow.data.fmp | ||
|
||
.. autoclass:: FMP | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
================ | ||
Fred | ||
================ | ||
|
||
.. currentmodule:: quantflow.data.fred | ||
|
||
.. autoclass:: Fred | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
============== | ||
Data fetching | ||
============== | ||
|
||
.. currentmodule:: quantflow.data | ||
|
||
The :mod:`quantflow.data` module provides classes and functions for fetching data from various sources. | ||
To use the module the package must be installed with the optional `data` extra. | ||
``` | ||
pip install quantflow[data] | ||
``` | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
fmp | ||
fred | ||
deribit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
API Reference | ||
============== | ||
|
||
.. grid:: | ||
|
||
.. grid-item-card:: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
sp/index | ||
|
||
.. grid-item-card:: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
options/index | ||
.. grid-item-card:: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
ta/index | ||
.. grid:: | ||
|
||
.. grid-item-card:: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
data/index | ||
|
||
.. grid-item-card:: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
utils/index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
================================== | ||
Black Pricing | ||
================================== | ||
|
||
.. module:: quantflow.options.bs | ||
|
||
.. autofunction:: black_price | ||
|
||
.. autofunction:: black_delta | ||
|
||
.. autofunction:: black_vega | ||
|
||
.. autofunction:: implied_black_volatility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
================================== | ||
Vol Model Calibration | ||
================================== | ||
|
||
.. module:: quantflow.options.calibration | ||
|
||
.. autoclass:: VolModelCalibration | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
||
|
||
.. autoclass:: HestonCalibration | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
================================== | ||
Option Pricing | ||
================================== | ||
|
||
.. currentmodule:: quantflow.options | ||
|
||
The :mod:`options` module provides classes and functions for pricing and analyzing options. | ||
The main class is the :class:`.VolSurface` class which is used to represent | ||
a volatility surface for a given asset. | ||
A volatility surface is usually created via a :class:`.VolSurfaceLoader` object. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
vol_surface | ||
black | ||
pricer | ||
calibration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
================================== | ||
Option Pricer | ||
================================== | ||
|
||
The option pricer module provides classes for pricing options using | ||
different stochastic volatility models. | ||
|
||
|
||
.. module:: quantflow.options.pricer | ||
|
||
.. autoclass:: OptionPricer | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
||
|
||
.. autoclass:: MaturityPricer | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
================================== | ||
Vol Surface | ||
================================== | ||
|
||
.. module:: quantflow.options.surface | ||
|
||
.. autoclass:: VolSurface | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
||
|
||
.. autoclass:: VolCrossSection | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
||
.. autoclass:: GenericVolSurfaceLoader | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
||
|
||
.. autoclass:: VolSurfaceLoader | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
||
|
||
.. autoclass:: OptionSelection | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
================ | ||
CIR | ||
================ | ||
|
||
The Cox–Ingersoll–Ross (CIR) model | ||
|
||
.. currentmodule:: quantflow.sp.cir | ||
|
||
.. autoclass:: CIR | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
=================== | ||
Compound Poisson | ||
=================== | ||
|
||
.. currentmodule:: quantflow.sp.poisson | ||
|
||
.. autoclass:: CompoundPoissonProcess | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
================ | ||
Heston process | ||
================ | ||
|
||
.. currentmodule:: quantflow.sp.heston | ||
|
||
.. autoclass:: Heston | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
||
|
||
.. autoclass:: HestonJ | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
=================== | ||
Stochastic Process | ||
=================== | ||
|
||
This page gives an overview of all Stochastic Processes available in the library. | ||
|
||
.. _sp: | ||
|
||
.. currentmodule:: quantflow.sp.base | ||
|
||
.. autoclass:: StochasticProcess | ||
:members: | ||
:noindex: | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
||
.. autoclass:: StochasticProcess1D | ||
:members: | ||
:noindex: | ||
|
||
|
||
.. autoclass:: IntensityProcess | ||
:members: | ||
:noindex: | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
weiner | ||
poisson | ||
compound_poisson | ||
ou | ||
cir | ||
jump_diffusion | ||
heston |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
================ | ||
Jump diffusions | ||
================ | ||
|
||
Jump-diffusions models are a class of stochastic processes that combine a diffusion process with a jump process. The jump process is a Poisson process that generates jumps in the value of the underlying asset. The jump-diffusion model is a generalization of the Black-Scholes model that allows for the possibility of large, | ||
discontinuous jumps in the value of the underlying asset. | ||
|
||
The most famous jump-diffusion model is the Merton model, which was introduced by Robert Merton in 1976. The Merton model assumes that the underlying asset follows a geometric Brownian motion with jumps that are normally distributed. | ||
|
||
.. currentmodule:: quantflow.sp.jump_diffusion | ||
|
||
.. autoclass:: JumpDiffusion | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
||
|
||
|
||
.. autoclass:: Merton | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
================ | ||
OU Processes | ||
================ | ||
|
||
These are the classes that implement gaussian and non-gaussian | ||
`Ornstein-Uhlenbeck <https://en.wikipedia.org/wiki/Ornstein%E2%80%93Uhlenbeck_process>` process. | ||
|
||
|
||
.. currentmodule:: quantflow.sp.ou | ||
|
||
.. autoclass:: Vasicek | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
||
|
||
.. autoclass:: GammaOU | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
================ | ||
Poisson process | ||
================ | ||
|
||
.. currentmodule:: quantflow.sp.poisson | ||
|
||
.. autoclass:: PoissonProcess | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
=============== | ||
Weiner process | ||
=============== | ||
|
||
.. module:: quantflow.sp.weiner | ||
|
||
.. autoclass:: WeinerProcess | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
================================== | ||
Timeseries Analysis | ||
================================== | ||
|
||
.. currentmodule:: quantflow.ta | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
ohlc | ||
paths |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
================ | ||
OHLC | ||
================ | ||
|
||
.. currentmodule:: quantflow.ta.ohlc | ||
|
||
.. autoclass:: OHLC | ||
:members: | ||
:member-order: groupwise | ||
:autosummary: | ||
:autosummary-nosignatures: |
Oops, something went wrong.