py10x-fin-base 0.2: pluggable curve builders and instrument lifecycle
November 18, 2026
Since 0.1, py10x-fin-base has picked up 129 commits in Python and 19 more in its C++ layer, py10x-fin-base-cxx. It ships alongside, and requires, py10x-core 0.4. The headline items:
- Choose your curve builder — instruments and FX curves no longer hard-wire
the discount-curve class: they build whichever
ZeroRateCurvesubclass is registered, through py10x-core's newSelectableTraitableClass. Plug in your own calibration by registering one record, without touching a single call site.ZeroRateCurveQL, a QuantLib bootstrap of deposits and OIS swaps, is the worked example, and the test suite uses it to check both the Python and the C++ native bootstrap against QuantLib. See the xx_fin README. - Instrument lifecycle — an instrument now says when something next happens
to it and what it becomes when it does: a currency forward turns into the currency
itself on its end date. Positions live in a
FinBasket, a py10x-core Basket of instruments, andfire_lifecycle()rolls a whole basket forward in one call. A new pricing date on the pricing context takes present values to a later date on today's market data — the first step toward walking a portfolio forward in time. - Swap bootstrap, reworked — a swap quote now owns its leg schedules, so the Python bootstrap, the C++ bootstrap and pricing all read the same dates. Legs roll backward from maturity with a front stub, the floating leg is valued period by period, and coupons with a payment delay are discounted from their own pay dates.
- Market dependencies found at run time — the static market-dependency
lists on instruments are gone:
MktDepsdiscovers what a price depends on by walking the py10x dependency graph, the same way jit_aadc finds its inputs. - jit_aadc moves to py10x-core — the AADC facility that shipped with
py10x-fin-base 0.1 is now
xxcommon.jit_aadcin py10x-core. It works for any traitable model and followsifbranches (see py10x-core 0.4). AADC is no longer installed by default:py10x-fin-base[aadc]installs it.
Breaking changes to note: xxfin.jit_aadc is replaced by
xxcommon.jit_aadc and aadc is now an extra; the static
mkt_deps interface is removed; bootstrapped curve points move with the new swap schedules; the signatures of
cxxfin.bootstrap_swap, solve_swap and
swap_rate_simple_compounding changed; market conventions are looked up by
name, e.g. IRRateMktConventions(name); and py10x-fin-base-cxx moves to
pybind11 3 with py10x-core 0.4. Full details are in the changelog.
License:
py10x-fin-base: MIT
Matlogica AADC: separately licensed by Matlogica
Links (latest release):
PyPI: py10x-fin-base
GitHub: 10x-software/py10x — xx_fin/
Changelog: xx_fin/CHANGELOG.md
Contacts:
10x Software Project: [email protected]