Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

quantark

Latest version: v0.16.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: deiiiiii93
1 Stars
0 Forks
7 Versions
707 Downloads
Python Repo language

Scan summary

quantark was last scanned on 29 Nov 2026 at version 0.16.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 2 were published within 4 days (26–29 Nov 2026).
  • Findings: No rules fired in version 0.16.0.
  • Downloads: 707 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.16.0

Findings

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.

README

The publisher’s own README, as collected from the registry.

QuantArk — Financial Derivatives Pricing & Risk Library

tests PyPI Python License: Apache-2.0

A modular, professional-grade Python library for pricing and risk management of financial derivatives.

Overview

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:

  • Products: Define instrument specifications (options, swaps, bonds, CDS, etc.)
  • Processes: Stochastic models (Black-Scholes-Merton, Heston, Local Vol, SLV, Garman-Kohlhagen, hazard-rate)
  • Engines: Pricing algorithms (Analytical, Monte Carlo, PDE, Quadrature, Tree)
  • Parameters: Market data (spot prices, volatility surfaces incl. SABR / Vanna-Volga, rate curves, dividends)
  • PriceEnv: Unified pricing environment bundling all market data
  • RiskMeasures: Greeks calculation (both analytical and numerical)
  • Risk & Capital: VaR, stress testing, dynamic scenarios, hedging backtests, and regulatory capital (ISDA SIMM, SA-CCR, SA-CVA)

Features

Current Implementation
Equity derivatives
  • Vanilla: European and American options (analytical BS93/BS02/BAW, MC LSM, PDE)
  • Asian, Digital, Barrier, Double-Barrier, One-Touch, Double-One-Touch options
  • Autocallables: Snowball, Phoenix, KO-Reset Snowball (MC, PDE, Quad engines)
  • Structured: Range Accrual, Accumulator, Single/Double Sharkfin
  • Total Return Swaps: single-asset, multi-asset, and dual-currency, with realized-cashflow accounting
  • Delta-One: spot instruments and futures
Stochastic models & engines
  • Processes: Black-Scholes-Merton (continuous dividend yield), Heston, Local Vol (Dupire), Stochastic Local Vol (SLV)
  • Engines: Analytical (closed-form), Monte Carlo (QMC — Sobol, Brownian bridge, randomized QMC, antithetic/control-variate variance reduction), PDE (finite-difference, banded solvers), Quadrature, Tree
  • Shared MC layer (quantark/montecarlo/): reusable QMC path generation across equity and FX
Fixed income
  • Bonds: fixed-rate coupon bonds, FRNs, convertible bonds, bond forwards, bond futures, bond options
  • Interest rate: swaps (IRS), FRAs, caps/floors, swaptions — with DV01 / key-rate risk
FX derivatives
  • Garman-Kohlhagen vanilla, digital, and quanto (vanilla / digital) options with two-curve discounting
  • Path-dependent / exotic: barrier, one-touch, sharkfin, range accrual (domestic / quanto / foreign), target-redemption forwards & notes (TARF / TARN)
  • Smile models: SABR (Hagan) and Vanna-Volga, plus an FX-Heston analytical engine
  • Delta-one: spot / forward / swap products
Credit derivatives
  • CDS and basket CDS priced off a hazard-rate curve (model-agnostic engine), with hazard01 / CS01 sensitivities
Risk, scenario & regulatory capital
  • Portfolio VaR: Historical (full revaluation), Parametric (variance-covariance with Greeks/DV01), and Monte Carlo — with risk-factor attribution and a backtesting framework
  • Stress testing: scenario-based shocks across all asset classes
  • Dynamic scenarios: multi-day path simulation
  • Hedging backtests: delta / DV01 / convexity-neutral strategies (equity / FI / FX)
  • ISDA SIMM v2.6: initial margin with CRIF, calibration, and dashboard
  • SA-CCR: Basel counterparty EAD (RC + PFE)
  • SA-CVA: Basel (MAR50) SBA CVA capital
  • Portfolios: equity, fixed income, FX, and credit position tracking — one position object feeds the entire risk stack
Intraday pricing
  • Timestamp valuation (quantark.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 cash
  • Routes for digitals, barriers/one-touches and autocallables through QUAD V2, PDE, MC and admissible closed forms, each reporting its numerical status (PDE resolution, MC sampling error); point and desk-bump Greeks, a declared-step intraday theta, roll-through-events scenarios, spot curves and batch aggregation
  • Evidence: an independent Gaussian-transition reference gates every route on a one-day-to-one-second time-to-fixing ladder; see quantark/intraday/README.md and the generated intraday capability matrix
Cross-cutting
  • Greeks: analytical (closed-form) and numerical (finite-difference) — Delta, Gamma, Vega, Theta, Rho, DV01
  • Robust error handling: professional exception hierarchy
  • Numerical stability: shared quantark.util.numerical toolkit (protected math, tolerance-aware comparisons), careful boundary checking and validation
Key Design Principles
  1. Modularity: Each component is independent and reusable
  2. Extensibility: Easy to add new products, processes, and engines
  3. Type Safety: Extensive use of dataclasses and type hints
  4. Validation: Input validation at every level
  5. Professional Exception Handling: Custom exception hierarchy for different error types

Installation

pip 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.

Quick Start

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}")
FX Options
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.

Batch-Friendly Engine Params

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.

PDE parameters (0.8.0)

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:

OX Radar and Response Center

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.

Where it’s listed

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).

  • pypi-releases quantark

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229