Scan your whole stack
From OX Research Newsroom
Are you using quantark?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.16.0
quantark was last scanned on 29 Nov 2026 at version 0.16.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.16.0 LATEST | 29 Nov 2026 | No rules fired |
| 0.15.0 | 26 Nov 2026 | No rules fired |
| 0.11.3 | 17 Nov 2026 | No rules fired |
| 0.11.2 | 17 Nov 2026 | Not shown |
| 0.11.1 | 17 Nov 2026 | Not shown |
Findings for v0.16.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.16.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A modular, professional-grade Python library for pricing and risk management of financial derivatives.
QuantArk spans five asset classes (equity, bond, rate, FX, credit) and a full risk-and-capital stack, all built on a clean, modular architecture that separates concerns across composable layers:
quantark/montecarlo/): reusable QMC path generation across equity and FXquantark.intraday): timezone-aware valuation instants on a trading-session calendar with a
sub-day variance profile, confirmed and assumed (provisional) fixings, and a structured result that separates the
contingent claim, pending receivables and paid cashquantark/intraday/README.md and the generated
intraday capability matrixquantark.util.numerical toolkit (protected math, tolerance-aware comparisons), careful boundary checking and validationpip install quantark
From source / latest development version:
pip install git+https://github.com/deiiiiii93/quantark
Version numbers. This README and the CHANGELOG name behaviour changes by the milestones 0.6.0 to 0.10.0 (for example "the 0.7.0 base-family mask"). Those were internal milestones that were never published; they all ship in 0.5.5, the first release after 0.5.0. The next release after 0.5.5 is 0.11.0 (unified event statistics), numbered past those milestone labels so that no version is reused.
Optional accelerator (Numba): pip install "quantark[accel]" compiles the Monte Carlo QE
kernels and the PDE mesh builder. Results are bit-identical with or without it; a cold PDE
solve is faster with it.
For development (editable install with test tooling):
git clone https://github.com/deiiiiii93/quantark && cd quantark
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytest
Migration note: imports use the quantark.* namespace
(from quantark.util.enum import OptionType). The historical flat
top-level packages (asset, util, param, …) still work through a
compatibility shim that aliases them to the same modules and emits a
DeprecationWarning — migrate existing code to quantark.* at your
convenience.
from quantark.asset.equity.product.option import EuropeanVanillaOption
from datetime import datetime
from quantark.asset.equity.engine.analytical import BlackScholesEngine
from quantark.asset.equity.riskmeasures import GreeksCalculator
from quantark.param import SpotQuote, FlatVolSurface, FlatRateCurve, ContinuousDividendYield
from quantark.priceenv import PricingEnvironment
from quantark.util.enum import OptionType
# Set up market data
spot = SpotQuote(spot=100.0)
vol = FlatVolSurface(volatility=0.20) # 20% vol
rate = FlatRateCurve(rate=0.05) # 5% risk-free rate
div = ContinuousDividendYield(div_yield=0.02) # 2% dividend yield
pricing_env = PricingEnvironment(
spot_quote=spot,
vol_surface=vol,
rate_curve=rate,
div_yield=div,
valuation_date=datetime(2024, 1, 1),
)
# Create a European call option
call_option = EuropeanVanillaOption(
strike=100.0,
maturity=1.0, # 1 year
option_type=OptionType.CALL
)
# Price the option
engine = BlackScholesEngine()
price = engine.price(call_option, pricing_env)
print(f"Call Price: ${price:.6f}")
# Calculate Greeks
greeks_calc = GreeksCalculator()
analytical_greeks = greeks_calc.calculate_analytical_greeks(
call_option, pricing_env, price
)
print(f"Delta: {analytical_greeks['delta']:.6f}")
print(f"Gamma: {analytical_greeks['gamma']:.6f}")
print(f"Vega: {analytical_greeks['vega']:.6f}")
print(f"Theta: {analytical_greeks['theta']:.6f} (per day)")
print(f"Rho: {analytical_greeks['rho']:.6f}")
from datetime import datetime
from quantark.asset.fx.engine.analytical import GarmanKohlhagenEngine
from quantark.asset.fx.product import CurrencyPair
from quantark.asset.fx.product.option import FxVanillaOption
from quantark.param import SpotQuote, FlatVolSurface, FlatRateCurve
from quantark.priceenv import FxPricingEnvironment
from quantark.util.enum import OptionType
fx_env = FxPricingEnvironment(
valuation_date=datetime(2026, 6, 12),
spot_quote=SpotQuote(spot=1.20), # EUR/USD
domestic_curve=FlatRateCurve(rate=0.05), # USD
foreign_curve=FlatRateCurve(rate=0.03), # EUR
vol_surface=FlatVolSurface(volatility=0.10),
)
option = FxVanillaOption(
currency_pair=CurrencyPair("EUR", "USD"),
strike=1.25,
option_type=OptionType.CALL,
maturity=1.0,
notional_foreign=1_000_000.0, # 1m EUR
)
engine = GarmanKohlhagenEngine()
print(f"Price: {engine.price(option, fx_env):,.2f} USD")
print(f"Delta: {engine.calculate_greeks(option, fx_env)['delta']:,.2f} EUR")
See example/asset/fx/fx_vanilla_option_demo.py, example/asset/fx/fx_digital_option_demo.py,
example/asset/fx/fx_quanto_option_demo.py, and example/asset/fx/fx_deltaone_demo.py for
digitals, quantos, and delta-one products.
For portfolio Value-at-Risk (parametric, historical, and Monte Carlo engines
with risk-factor attribution), see the runnable demos:
example/var/parametric_var_demo.py, example/var/portfolio_var_demo.py, and
example/var/var_backtest_demo.py.
For QUAD batch pricing, you can use named presets, factory helpers, or YAML/JSON
configs instead of tuning many individual parameters. PDE has no profile tier:
PDEParams is small enough to write out, and PDEParams.from_config reads the
same field names from a mapping, YAML, or JSON.
from quantark.asset.equity.engine.pde import GridConfig
from quantark.asset.equity.param import PDEParams, make_quad_params
quad_params = make_quad_params(profile="barrier_sensitive")
pde_params = PDEParams(accuracy="standard")
pde_barrier = PDEParams(grid=GridConfig(points=600, steps_per_day=6.0))
pde_loaded = PDEParams.from_config({"accuracy": "high", "grid": {"time_steps": 800}})
Quad presets accept either preset names or explicit config objects; see the docstrings in quantark/asset/equity/param/ for the full schema.
Every 1D PDE route (PDEEngine and its solvers, the local-vol vanilla and barrier
solvers, DCN) is configured by one PDEParams, keyword arguments only:
| Field | When to change it | What happens |
|---|---|---|
accuracy |
A faster preview or a finer answer. | Selects the GridConfig preset: fast (200 pts, 4/day), standard (400, 4/day), high (800, 8/day). |
grid |
Override one preset field. | Each non-None GridConfig field replaces that preset value; the rest inherit. |
stepper |
A different time weighting or damping schedule, or you are writing a stepper. | None is the built-in CrankNicolson() (below). A custom stepper runs on every 1D route. |
operator |
You are writing an operator (an exponentially fitted stencil, say). | None is the built-in CentralDifference(): the central-difference tridiagonal with upwind rows on zero-diffusion steps. |
readout |
You are writing a readout. | None is the built-in StandardReadout(): linear price interpolation, delta and gamma from the local cubic. |
event_projection |
Validating the event treatment. | None is "cell_average" on every core route: the autocallables, the barrier / double-barrier / one-touch / double-one-touch discrete observations, and the DCN's daily dates. "nodal" assigns whole nodes (the 0.7.0 base-family mask). Continuous monitoring and a valuation-date observation stay nodal either way. |
cache_enabled |
Memory pressure, or a fresh solve every call. | The same numbers to round-off: a cached run shares one factorization across intervals whose dt differ by an ULP. |
CrankNicolson (quantark.asset.equity.engine.pde.core.components) carries the
scheme's settings:
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.