quantplus 0.0.4__cp39-cp39-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quantplus/__init__.py +24 -0
- quantplus/_crr_pricer.cp39-win_amd64.pyd +0 -0
- quantplus/_crr_pricer.cpp +10143 -0
- quantplus/_crr_pricer.pyx +98 -0
- quantplus/_version.py +24 -0
- quantplus/csrc/crr_core.cpp +123 -0
- quantplus/csrc/crr_core.h +25 -0
- quantplus/tests/__init__.py +0 -0
- quantplus/tests/test_quantplus.py +110 -0
- quantplus-0.0.4.dist-info/METADATA +54 -0
- quantplus-0.0.4.dist-info/RECORD +15 -0
- quantplus-0.0.4.dist-info/WHEEL +5 -0
- quantplus-0.0.4.dist-info/licenses/AUTHORS.rst +13 -0
- quantplus-0.0.4.dist-info/licenses/LICENSE +29 -0
- quantplus-0.0.4.dist-info/top_level.txt +1 -0
quantplus/__init__.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""
|
|
2
|
+
quantplus: Cox-Ross-Rubinstein binomial option pricer.
|
|
3
|
+
|
|
4
|
+
The pricing math is implemented in C++ (quantplus/csrc/crr_core.cpp)
|
|
5
|
+
and compiled directly into a native Python extension module via
|
|
6
|
+
Cython (quantplus/_crr_pricer.pyx).
|
|
7
|
+
|
|
8
|
+
Example
|
|
9
|
+
-------
|
|
10
|
+
>>> import quantplus as qp
|
|
11
|
+
>>> qp.crr_price(S0=225, K=240, r=0.0425, sigma=0.40, T=55/365, N=1000, q=0.0045)
|
|
12
|
+
8.542142620861936
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from ._crr_pricer import black_scholes_price, crr_price, crr_tree
|
|
16
|
+
|
|
17
|
+
try:
|
|
18
|
+
# Generated at build time by setuptools_scm from the nearest git tag.
|
|
19
|
+
# See pyproject.toml's [tool.setuptools_scm] section.
|
|
20
|
+
from ._version import version as __version__
|
|
21
|
+
except ImportError: # pragma: no cover - only hit in an unbuilt source tree
|
|
22
|
+
__version__ = "0+unknown"
|
|
23
|
+
|
|
24
|
+
__all__ = ["crr_price", "black_scholes_price", "crr_tree", "__version__"]
|
|
Binary file
|