QA
Last update
Stable function for Brownion Bridge simulation is added to the 1.0.4 version.
Description
The QuantriX library is aimed to provide essential tools for quantitative finance analysis. It is a copyrighted software available only for direct use.
Available tools
The first version allows to build binomial model and random walk, brownion motion and brownion bridge.
Instalation
For installing, run these code in terminal:
pip install QuantriX
Usage
Available function can be used in the following ways:
- Import necessary functions:
from quantrix.modules import bin_model_simulation
or
from quantrix.modules import *
In the code, just use the function:
paths = bin_model_simulation(N, n, S0, q, u, d)
- Import all existing modules:
from quantrix import modules
Use in the code in the following way:
paths = modules.bin_model_simulation(N, n, S0, q, u, d)
Or use the following importing path:
import quantrix.modules as qx
And then use in code as
qx.bin_model_simulation(N, n, S0, q, u, d)
- Available functions:
- bin_model_simulation(n_paths: int, max_time: int, S0: int, q: float, u: float, d: float) -> list[np.array]
This function simulates binomial model for n_paths number of paths for max_time periods. It requiers initial stock value - S0, probability of going up and up and down factors.
- rw_simulations(n_paths: int, max_time: int, p: float) -> list[np.array]
The function simulates random walk: n_paths for max_time with probability p with step +1 or -1.
- bm_simulations(n_paths: int, granularity: int, max_time: int) -> list[np.array]
This function simulates brownion motion: n_paths number of paths for max_time periods with granularity scale.
- bb_simulations(n_paths: int, granularity: int, max_time: int , T: int = 1) -> list[np.array]
This function simulates brownion bridge: it returns n_paths which follows Gaussian process s.t. B(t) = W(t) - t/T*W(T), where W(t) is a Winer process. By defolt, T is fixed and equals to 1. Function uses bm_simulation in it.
Metadata
Release files for QuantriX 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quantrix-1.0.5.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quantrix-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / quantrix-1.0.5.tar.gz
| Download URL | quantrix-1.0.5.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2eeaf70884e096bfd7766e5c72274ee50a02be05dc86cb71625dae33db3f034f
|
|
BLAKE2b-256 checksum How to use checksums |
3fdf316813e0da4bf02c87fc1000eb2a24100d77ecb65683bcf4e578ae16abfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.6
|
Release files / quantrix-1.0.5-py3-none-any.whl
| Download URL | quantrix-1.0.5-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8a51dcf4923a00deafc51ef68b788ca9967c682820d8a729a421ddee1307313
|
|
BLAKE2b-256 checksum How to use checksums |
a07e02625430d38b0d6f5c78353f773ccb93e562b6e342194d70eb6acb3b8e64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.6
|