
John Wiley & Sons · 2021
Modern Computational Finance
Scripting for Derivatives and xVA
Antoine Savine · Jesper Andreasen
Level · Institutional / advanced
Editorial summary
Where the companion AAD volume asks how to differentiate large pricing codebases efficiently, this book asks how to represent exotic and batchable payoffs in a controlled language so risk, xVA, and scenario engines can reuse one truth. Savine and Andreasen draw on decades of bank scripting ecosystem experience; the emphasis is architectural—grammar design, library boundaries, and risk-friendly constructs—not a list of closed-form formulas.
Readers encounter how scripting kernels connect to Monte Carlo schedulers, how branching and fuzzy logic enter when regulatory calculations demand path-dependent behaviour, and how to avoid DSLs that become write-only for the next team. xVA appears as the forcing function: once portfolios must be re-valued under credit, funding, and capital overlays, ad-hoc payoff code in spreadsheets ceases to scale.
The technical level matches senior quant developer or quant architect roles: familiarity with modern C++ (the companion repository is C++-centric), prior derivatives pricing literacy, and patience for implementation detail. Traders looking for intuition on a single exotic may still benefit conceptually, but the book’s heart is platform design.
For model risk, XVA desk, and IT governance audiences, the text clarifies why scripting languages win or lose audits: traceability, determinism under stress, and the ability to replay cash-flows across overlapping metrics. It pairs naturally with Gregory-style xVA references for regulatory narrative while supplying the systems vocabulary.
Scope caveat: this is not a standalone introduction to CVA/FVA/DVA formulas; readers still need foundational xVA reading for economic interpretation. The book’s job is to show how scripted cash-flows feed those stacks without bespoke spaghetti.
About this book
Chapters progress from basic scripting atoms (dates, schedules, vectors) toward advanced control flow required by callable structures and American Monte Carlo features. The authors stress testing, modularity, and performance so scripting cores survive a decade of regulatory churn rather than collapsing under the next Basel iteration.
The xVA lens is used throughout as the “why now” for portfolio-wide scripting: once metrics aggregate across netting sets and counterparties, payoff description must be machine-auditable and batch-friendly. Discussions of branching semantics and fuzzy logic connect to real implementation trade-offs in risk systems, not academic curiosities.
Prerequisites include comfort with object-oriented C++, prior exposure to derivatives payoffs at code level, and at least conceptual familiarity with xVA acronyms. Readers who have not worked through the AAD volume can still read this title if they bring strong implementation background, but the two volumes are complementary for teams modernising a full stack.
Outcome competency: readers should be able to critique or design a scripting grammar, understand how it plugs into Monte Carlo and risk aggregation, and participate in vendor bake-offs with concrete technical scorecards.
Why it matters
xVA and portfolio metrics turned derivatives technology from isolated pricers into platform problems. Scripting languages are now control surfaces for credit, funding, capital, and scenario programmes. A catalogue serious about post-crisis risk must name a reference that treats scripting as engineering, not as Excel macros.
Best for
Quantitative developers and architects building or replacing payoff scripting cores; XVA desk quants bridging risk interpretation to library design; model-validation teams reviewing DSL safety; senior engineering hires from technology firms entering finance who need the domain-shaped constraints.
Not ideal for
Casual readers without coding patience; economists seeking reduced-form credit models without implementation; small shops on vendor black boxes who will never host a scripting kernel. Anyone needing a first conceptual xVA book should pair this with Gregory or similar before expecting full context.
Key themes
derivative-scripting|xva|cash-flow-dsl|monte-carlo|american-options|branching-semantics|quant-architecture|c-plus-plus|portfolio-valuation|risk-systems|model-governance
Strengths
Rare focus on DSL architecture rather than single-deal maths. Andreasen’s practitioner history grounds branching and Monte Carlo discussions in shipped systems. The GitHub companion lowers friction for engineering-led teams. Clear pairing with the AAD volume gives a credible “modern computational finance” track on the shelf.
Limitations
Narrow audience: heavy C++ and systems thinking required. Not a substitute for foundational xVA economics or legal/collateral policy reading. Some implementation choices reflect large-bank contexts; smaller firms may need selective adoption. Rapid evolution in vendor analytics clouds means readers must abstract principles from dated specifics.
Related books
Shared topics with this title.

FX Cash Products: Spot, Forwards, Swaps & Non-Deliverable Forwards
Practitioner guide for treasury and markets
Luigi Pascal Rondanini · David Axtell · 2026 · Rondanini
Spot, forwards, swaps, and NDFs for corporate treasurers, traders, and risk managers—operations-first, institutionally framed.
- FX
- Treasury
- Risk management

Pricing and Trading Interest Rate Derivatives
A Practical Guide to Swaps
J. Hamish M. Darbyshire · 2022 · Aitch & Dee
A swaps trader’s bridge from curve building to book management: plain-vanilla and cross-currency IR swaps, risk, funding/CSA colour, and the distance between classroom models and how desks actually work. Third-edition material includes practical Python illustrations alongside the narrative.
- Derivatives
- Fixed income
- Interest rates

Options, Futures, and Other Derivatives
Global edition
John C. Hull · 2021 · Pearson
The standard graduate-level derivatives text.
- Derivatives
- Risk management
- Quantitative finance

High Performance Computing: Modern Systems and Applications
Michael Gorelick · Iman Ozsvald · 2019 · O Reilly
This comprehensive volume delves into high-performance computing (HPC) systems and their applications, particularly in quantitative finance and technology. It covers modern architectures, programming models, and performance optimization techniques essential for practitioners in the field.
- Quantitative finance
- Technology