This chapter defines how the library turns stored numbers into a market that pricers can read. A market definition says what a market is made of: one curve group, the FX spot rates and fixing series it needs, and its volatility grids. From it and a valuation date the library lists every number it needs, in its own names. A snapshot holds those numbers, wherever they came from. The volatility grids are not daily quotes: each is read from the latest volatility snapshot observed on or before the valuation date (Section 15.7). The builder checks that nothing is missing, calibrates the curves, strips the cap grids and fits SABR to the swaption grids, and returns one market context.
15.1 Notation
| Symbol | Meaning |
|---|---|
| \(v\) | The valuation date |
| \(M\) | A market definition |
| \(G\) | The curve group of \(M\), with curves \(g\) |
| \(\mathcal{I}(g)\) | The calibration instruments of curve \(g\), each a convention \(c\) and a tenor \(\tau\) |
| \(\Pi\) | The FX pairs of \(M\), each a base currency \(b\) and a counter currency \(q\) |
| \(\mathcal{F}\) | The indices whose fixings \(M\) needs |
| \(L\) | The fixing lookback of \(M\), a tenor such as 24M |
| \(\mathcal{V}\) | The volatility grids of \(M\) |
| \(f\) | The quote field of \(M\), for example Mid |
| \(C_I\) | The fixing calendar of index \(I\) |
| \(\operatorname{prev}_C(d)\) | The last business day of calendar \(C\) before date \(d\) |
| \(s_{bq}(v)\) | The spot date of pair \(bq\) traded on \(v\) (Section 8.8) |
| \(Q\) | The set of quote keys a market needs |
| \([a_I, \ell_I]\) | The first and the last fixing date of index \(I\) that a market needs |
| \(Q_{\text{curve}}\), \(Q_{\text{spot}}\) | The keys of \(Q\) for the curve instruments and for the FX spot rates |
| \(K_d\) | The set of quote keys a store holds on date \(d\) |
| \(\text{key}(I)\) | The quote key of the fixings of index \(I\) |
| \(\mathcal{S}_V\) | The stored versions of the volatility snapshot of grid \(V\), each with an as-of date \(o\) and a version number \(n\) |
| \(S_V(v)\) | The version of \(\mathcal{S}_V\) a market on \(v\) uses |
| \(T_g\) | The trading calendar of a curve or spot rate \(g\): open on a day when every calendar of its instruments, or of its pair, is |
| \(\mathcal{D}_g(v)\) | The quote dates of \(g\) on \(v\), the preferred first |
| \(q_g(v)\) | The quote date \(g\) reads on \(v\) |
| \(n\) | The quote date lookback, 5 |
15.2 Market definitions and their requirements
A market definition names a curve group, a list of FX pairs, a list of
indices with a lookback \(L\), a list of volatility grids, and one quote field
\(f\). Every quote but the fixings is read on \(f\): the curves and the spot
rates; the grids name their points on \(f\) too. A definition is a document of kind MarketDefinition, so a user
can store their own or amend a shipped one (Section 15.5).
The requirements of \(M\) on \(v\) are the quote keys and fixing series it needs, and its volatility grids. The quote keys are
in words: one key per calibration instrument, named by its convention and
tenor (USD-SOFR-OIS 5Y), and one key per FX pair, named by the pair in its
market order whichever order the definition gives (USD/SAR SPOT). A market
with credit curves adds one key per credit curve and tenor (Section 18.11).
The quote keys of a market come
only from the library's own identifiers, never from a data provider's.
The points of a grid keep the names Section 13.3 gives them
(SAR-SAIBOR-3M-CAP 5Y 4.00%, SAR-SAIBOR-3M-SWAPTION 1Y 5Y ATM+50bp), but they are not in \(Q\): a provider is never asked for them
daily, and each grid \(V \in \mathcal{V}\) is read from its volatility snapshot
\(S_V(v)\) instead (Section 15.7).
A definition may also name volatility proxies: an index without a caplet
grid of its own that reads another index's grid, written
SAR-SAIBOR-6M=SAR-SAIBOR-3M. The proxy needs no data of its own; the
builder holds the source grid under both indices (Section 21.5).
A definition may also name synthetic collateral currencies, written
EUR,GBP,JPY. For each listed currency \(c\) the market composes
the discount curve \((i, c)\) of Equation (14.3) via the pivot USD, for every
currency \(i\) whose curve under USD collateral \((i, \text{USD})\) the curve group
calibrates; for \(i = \text{USD}\) the pivot curve is SOFR, so USD gets
\((\text{USD}, c)\) too. The key \((c, c)\) is \(c\)'s own calibrated curve, and a key
the group already calibrates is kept. For the shipped MAJOR market and
\(c = \text{EUR}\) this gives \((\text{GBP}, \text{EUR})\),
\((\text{JPY}, \text{EUR})\), \((\text{SAR}, \text{EUR})\) and
\((\text{USD}, \text{EUR})\). The field needs no data of its own: a listed
currency must have its own curve \(P(c, c)\) and its curve under USD collateral
\(P(c, \text{USD})\) in the group, else the definition is refused before anything
is built. SAR cannot be listed, since no SAR-collateral curve exists; USD is
the pivot and cannot be listed either. The keys are ordered by collateral
currency and then currency, which changes no value, since each is composed from
calibrated curves only, but keeps the AAD tape the same from build to build.
Each index \(I \in \mathcal{F}\) needs the fixings from
in words: the series reaches back by the lookback in calendar months, and must
hold the fixing of the last business day of the index's own fixing calendar
before the valuation date. The fixing of \(v\) itself is not needed, because an
overnight rate for day \(v\) is published on the next business day
(Section 6.3). A fixing is stored under the index's identifier and the
field Fixing (USD-SOFR, Fixing), dated the fixing date. When the
lookback is shorter than a weekend, \(a_I\) can fall after \(\ell_I\) (a one-day
lookback on a Monday starts on Sunday); the window is then \(\ell_I\) alone.
Published swap rates for CMS legs are stored the same way, under the
identifier <swap convention>-<tenor> (for example USD-SOFR-OIS-10Y) and
the field Fixing (Section 22.7); a provider maps them like any other
fixing.
A caller may add extra fixing series, each an index and a first date, for example for a seasoned trade whose first reset lies further back than \(L\). An extra series on an index already in \(\mathcal{F}\) moves \(a_I\) to the earlier of the two dates. An extra series on a new index adds it with the same \(\ell_I\) rule.
A market's previous business day before a date \(d\) is the last date before \(d\) that is a business day on the fixing calendar of every index in \(\mathcal{F}\), or the last weekday before \(d\) when \(\mathcal{F}\) is empty. A daily run on the morning of \(d\) values that day. Its fixings are all out by then, because a valuation date's window ends on the business day before it (Equation (15.2)): valuing \(d-1\) needs SOFR up to \(d-2\), published on the morning of \(d-1\); SOFR for \(d-1\) comes out at 08:00 New York on \(d\), after a 10:00 Riyadh run, and is not needed. For a market of the SAR curve group alone (Riyadh and U.S. government securities calendars) the previous business day of Sunday 18 October 2026 is Thursday 15 October, and so is that of Monday 19 October, as Friday is a Riyadh weekend day; for one of the GBP group alone (London and U.S. government securities) that of Monday 19 October is Friday 16 October.
A market spans calendars with different weekends, so the daily run fetches its previous business days: every date from the previous business day \(p(d)\) to \(d - 1\) on which at least one fixing calendar of \(\mathcal{F}\) is open,
In words: since the day the whole market last traded, every day on which part of it traded. A Monday run of the shipped market, on 19 October 2026, fetches Thursday 15 October (the whole market), Friday 16 October (New York, London, TARGET and Tokyo) and Sunday 18 October (Riyadh); a Tuesday run fetches Monday alone. Each day's quotes are thus fetched on the morning after, whatever the weekend of their currency.
15.3 Snapshots and staleness
A snapshot holds, for one valuation date, quotes by key, fixing series by index and the volatility snapshot of each grid. It does no I/O: a store loader, a test, an Excel sheet or a user interface fills it. Each quote keeps its own date, and each volatility snapshot its as-of date.
A quote counts only when it is dated \(v\): a quote of an earlier date is
stale and counts as missing. A fixing series counts only when it holds a
fixing on \(\ell_I\). Nothing older is tolerated, by any margin, with one exception for curves, below. This rule applies
to quotes and fixings only: a
volatility snapshot observed before \(v\) is used, with its as-of date shown
(Section 15.7). The other fixings between \(a_I\) and \(\ell_I\) do not stop
a build: a trade that needs one finds it missing when it is priced. The feed
(the data providers' check, snapshot and backfill commands) checks only
the tail of each series: with \(f_I\) the latest date in \([a_I, \ell_I]\)
holding a stored fixing, every business day of \(C_I\) in \((f_I, \ell_I]\) with
no fixing, or \(\ell_I\) alone when no fixing is stored. It asks the provider
for those days only, so a daily run asks for one fixing per index and a day
missed by a skipped run is caught up on the next. Holes before \(f_I\) are
neither reported nor requested: the history is loaded once, apart from the
feed, with the fixings
command, which lists every business day of \(C_I\) in its range with no
fixing, the older ones included.
Quote dates of curves and spot rates. Each curve \(g\), and each FX spot rate, has a trading calendar \(T_g\): a day is a trading day of a curve when it is a business day of the fixing calendar of every index its instruments fix on (the overnight index of an OIS, the term index of an IRS or FRA, both indices of a cross-currency or tenor basis swap) and of the spot calendar of the pair of each FX forward; a day is a trading day of a spot rate when its pair's spot calendars are open. Its quote dates on \(v\) are
where \(t_1 > t_2 > \dots > t_n\) are the last \(n = 5\) trading days of \(T_g\) before \(v\). The curve or spot rate reads the quotes of its quote date \(q_g(v)\), the first date of \(\mathcal{D}_g(v)\) on which every one of its quotes is stored; when there is none, it has a missing quote. In words: a curve reads the valuation date's quotes when its market traded that day and they are all there, as before; when its market was closed, or its quotes that day are incomplete, it reads all its quotes from its latest trading day that holds them all, going back at most five trading days, so a curve never mixes quotes of two days. Holidays of \(T_g\) are skipped and do not count. The quote date never changes the valuation date: the quotes of \(q_g(v)\) are taken as quotes of \(v\), the instruments start from \(v\)'s spot date, a spot rate settles on \(v\)'s spot date, and a period that fixes on a trading day before \(v\) (the first period of a SAIBOR deposit, FRA or swap on a Saudi Friday fixes on Thursday) is taken as fixing on \(v\) and projected on the curve, since its rate is what the quote implies. A curve that reads another curve reads it as built on \(v\). Credit curve quotes and fixings keep the rule above. The store holds only what was published: nothing is copied forward.
For example, on Friday 30-Oct-2026 Riyadh is closed: the SAIBOR 3M curve (\(T_g\) Riyadh), the SAR curve under USD collateral (\(T_g\) Riyadh and the U.S. government securities calendar) and the USD/SAR spot rate read the quotes of Thursday 29-Oct-2026, and the Friday quotes of SAIBOR FRAs from a London composite are not read; SOFR, EUR, GBP and JPY trade on 30-Oct and read its quotes. Had Thursday lacked a SAIBOR quote, the SAIBOR curve would read Wednesday 28-Oct. On Sunday 25-Oct-2026 Riyadh is open, but only the SAIBOR deposit and one FRA are quoted: the SAIBOR curve is incomplete and reads Thursday 22-Oct; every other curve and spot rate is closed and reads its last trading day, Friday 23-Oct for SOFR, EUR, GBP and JPY, Thursday 22-Oct for the SAR curve under USD collateral and the USD/SAR spot rate.
The store loader reads, from any market data store, the quotes dated \(v\) whose keys are in \(Q\), and for a curve or spot rate whose quote date is earlier the quotes of that date in their place; for each index the stored fixings from \(a_I\) to \(v\); from the document store it reads, for each grid, the version \(S_V(v)\) of Equation (15.5). It keeps nothing else and checks nothing: the builder decides what is missing.
15.4 Building the market
The builder takes the definition, the reference data and the snapshot, and works in this order:
- Check. It lists every key of \(Q\) the snapshot lacks or holds stale, every index whose series misses \(\ell_I\), and every grid without a volatility snapshot. If no curve of the group has all its quotes, it stops and reports all of them at once, so a user sees the whole gap in one message. Otherwise it builds what it can, as described under "Building what can be built" below.
- Spot rates. For each pair \(bq \in \Pi\) it reads the spot quote as the rate for exchange on the spot date \(s_{bq}(v)\). For example, USD/SAR traded on Wednesday 14-Oct-2026 settles on Monday 19-Oct-2026: two Riyadh business days are Thursday 15-Oct and Sunday 18-Oct, and Sunday is closed in New York, so spot moves to Monday.
- Curves. It calibrates the curve group against those spot rates (Section 11.4, Section 12.3).
- Volatility grids. It reads each grid's values from its volatility snapshot as quotes of \(v\) (Section 15.7). On the calibrated curves and the snapshot's fixings, it strips each cap grid (Section 13.9) and fits SABR to each swaption grid with \(\beta = 0.5\) (Section 13.8). The swaption expiries are those of the swaption convention itself (the expiry tenor added to \(v\) on its calendar, Modified Following, Section 13.6), so the SABR nodes sit on the dates its swaptions expire. An option on index \(I\) is discounted under the collateral of the curve that projects \(I\), so a cap on 3M SAIBOR is discounted under USD collateral, as the SAIBOR swaps of its curve are.
- Market context. It gathers the curves by role, the synthetic collateral curves the definition names (Section 15.2), the spot rates (which the market context brings to today's rates, Equation (8.5)), the fixings, and the caplet and swaption volatilities by index. The curves of step 4 hold the synthetic curves too.
The result also keeps the calibrated curve group (for quote risk, Section 11.5), the spot rates, the cap strippings and the SABR calibrations, and the documents it was built from: the market definition, its curve group, curves and grids, and the reference data documents, each with its identifier and version, and the volatility snapshot each grid used, with its as-of date and version. A value can thus be traced to the exact definitions and volatilities that produced it.
Building what can be built. There is one market, and the store rarely holds every part of it on a date, so the builder leaves out each part it cannot build and names it in the result as an issue (amended 2026-11-01). Let \(C\) be the curves of the group and, for a curve \(c \in C\), let \(D(c) \subseteq C\) be the curves its instruments read (its discount curve, the curves of its basis legs). The builder:
- reads each curve and spot rate on its quote date \(q_g(v)\)
(Equation (15.4)), and leaves out every curve and spot rate none of
whose quote dates holds all its quotes (
curve SAR-SAIBOR-3M (The curve SAR-SAIBOR-3M has no quote on 2026-10-14 for SAR-SAIBOR-3M-IRS 5Y),FX spot USD/SAR (no quote on 2026-10-14), or on a closed daycurve SAR-SAIBOR-3M (closed on 2026-10-30, and none of its last 5 trading days, 2026-10-22 to 2026-10-29, holds all its quotes; 2026-10-29 lacks SAR-SAIBOR-3M-FRA 0M)); - leaves out, again and again until nothing changes, every curve \(c\) with a curve of \(D(c)\) left out, and every spot rate whose two discount curves are not both built: a curve can only be calibrated on the curves it reads;
- calibrates the remaining curves stage by stage (Section 11.4); a stage that finds no solution is left out with the solver's reason, together with every later stage that reads it, and the survivors are calibrated again, so the curves kept are exactly those of a group calibrated without the failed ones;
- leaves out every synthetic collateral curve whose component curves are not all built, every volatility grid without a snapshot observed on or before \(v\), whose snapshot no longer fits the grid's definition (another list of maturities, tenors or strikes, even of the same count, since each snapshot stores the strikes it was saved for), or whose curves are not built, every fixing series that misses \(\ell_I\), and every credit curve with a missing quote or no discount curve.
Each issue reads <part> <name> (<reason>), such as volatility grid USD-SOFR-SWAPTION (no snapshot on or before 2026-10-14) or fixings USD-SOFR,
in the order spot rates without a quote, curves, then the other parts. A
curve without a solution reads calibration failed: <reason>, naming the
curves solved with it, so that it is not mistaken for a missing quote; when
every curve has its quotes and none calibrates, the build stops with those
reasons. A curve or spot rate built from the quotes of an earlier trading
day is not an issue: the result names it in a note, curve SAR-SAIBOR-3M (quotes of 2026-10-29: closed on 2026-10-30), or ... incomplete on ... when
the valuation date was a trading day without all its quotes, which the user
interfaces show in amber beside a complete market. A trade that needs a
part left out throws when it is priced, naming the part; the others price as
on a whole market, since each curve kept is calibrated on its own quotes and
the curves it reads, all of which are kept.
Risk on a built market. The quote risk of a trade on a built market records the curve group on a new tape (Section 11.5) with the same inputs as the market context of step 5: the spot rates, held fixed, every fixing series, and the synthetic collateral curves, so the risk of a value under a EUR CSA falls on the nodes of the curves each synthetic curve is composed of. A trade that needs a past fixing or an FX rate therefore prices on the recorded market exactly as on the built one, and its deltas are to the group's quotes. With one of the market's cap strippings or SABR calibrations the same recording also gives vega to that grid's quotes (Section 13.9, Section 13.8). With one of the market's survival curves, a trade such as a CDS is recorded twice: first the curve group with the hazard rates held fixed, which gives its deltas to the group's quotes; then the survival curve re-bootstrapped with the group's curves held fixed, which gives its CS01 to each CDS quote and its recovery delta (Section 18.10). Holding the hazard rates in the first recording means a move of the discount curve does not re-bootstrap the credit curve; the CS01 and the curve deltas are each exact to first order with the other held.
15.5 Defaults and overrides
The library ships one market, Default, in Defaults/Markets/markets.json
(the user picks a date, never a market). It is read
on Mid with a 24M lookback:
| Market | Curve group | FX pairs | Fixings | Volatility grids |
|---|---|---|---|---|
Default |
MAJOR |
USD/SAR, EUR/USD, GBP/USD, USD/JPY | SOFR, 3M SAIBOR, €STR, EURIBOR 1M to 12M, SONIA, TONA | USD, SAR, 6M EURIBOR, SONIA and TONA caps and swaptions |
It also lists EUR, GBP and JPY as synthetic collateral
(Section 15.2), the CSAs a counterparty can name on the desktop.
A second definition, DUMMY-CREDIT, is test data only and never built by the
front ends: Default with the survival curves of two DUMMY issuers
(Section 18.11). Since every part the store cannot fill is left out
(Section 15.4), one market costs nothing on a date that holds only some
currencies; a store that holds only GBP quotes builds SOFR, SONIA and the GBP
curve under USD collateral and names the rest as issues.
The fixings of a market are those of the indices its curves project. The 24M lookback is a choice: the library serves as a treasury management system, so a market keeps at least two years of history, which also covers the first fixing of any running annual period. A trade that needs a fixing the market does not hold still throws when priced. The history is loaded into the store once; the daily feed adds only the tail of each series (Section 15.3).
A stored document replaces the shipped one of the same kind and identifier,
for every kind: reference data (Section 14.8), curves, curve groups,
volatility grids and markets; a stored Default replaces the one market.
Curves and curve groups share one kind, so for
them the type must match too: a stored document of another type with the same
identifier, such as the OIS curve USD-SOFR the desktop curve page stores,
replaces nothing. A grid is found by its name alone, so a stored swaption grid
named like a shipped cap grid replaces it. A group reads the stored version of
its curves, and a market the stored version of its group, curves and grids. Building a
market from the stores reads the latest version of every stored document,
lays it over the shipped ones, lists the requirements, loads them and builds.
15.6 Available dates
A front end lets the user pick the valuation date among the dates a store holds data on. For a market \(M\) and a date \(d\) on which the store holds at least one quote other than a fixing, let \(K_d\) be the set of keys stored on \(d\). With the requirements of \(M\) on \(d\) (Section 15.2), and \(Q_c\) the quote keys of curve or spot rate \(c\), \(c\) has its quotes when some date \(t \in \mathcal{D}_c(d)\) of Equation (15.4) holds them all, \(Q_c \subseteq K_t\). The date is:
- not buildable when no curve has its quotes;
- with issues when it is not unbuildable, but a curve or a spot rate does not have its quotes, a volatility grid \(V\) has no stored version observed on or before \(d\), \(\{ o \in \mathcal{S}_V : o \le d \} = \emptyset\), or an index \(I \in \mathcal{F}\) has no fixing on its last date, \(\text{key}(I) \notin K_{\ell_I}\);
- complete otherwise.
In words: the date is classified by the presence of keys and the as-of dates of the volatility snapshots alone, with the rule of Section 15.3 (a quote counts only on its own date) and the check of Section 15.4. The builder and the classification call the same check, so a complete date builds whole, a date with issues builds with at least the parts listed left out, and a date that is not buildable makes the build stop. The build may leave out more than the classification lists: the curves that read a curve left out, and a stage that finds no solution, are known only once the build runs. No value is read and nothing is calibrated, so a year of dates is classified in one store query, and one history query per grid.
The last fixing date \(\ell_I\) of a date \(d\) is before \(d\), so classifying from a first date \(d_0\) reads the keys from \(\min_{I \in \mathcal{F}} \ell_I(d_0)\), the earliest last fixing date \(d_0\) needs, or from each curve's \(n\)-th trading day before \(d_0\) when that is earlier, since a later date closed for the curve may read it. Since neither moves back when \(d\) moves forward, that covers every later date. Fixings are series stored on every business day of their index, so a date that holds only fixings is not listed, nor is a date with no data at all: the dates listed are those a snapshot was taken on.
Example. With the whole SAR snapshot of Section 15.9 stored on Wednesday 14-Oct-2026 and its fixings each on its own day, the dates from Monday 12-Oct-2026 to Saturday 17-Oct-2026 are 14-Oct alone, complete: 12-Oct and 13-Oct hold fixings only and the later days nothing. A 5Y SAIBOR swap quote stored on 13-Oct alone makes 13-Oct listed and not buildable. Classifying 14-Oct alone reads the keys from 13-Oct, the last fixing date of both indices. Without a cap snapshot, or with one observed on 15-Oct only, 14-Oct has an issue, the cap grid left out; without the SOFR fixing of 13-Oct, an issue with the SOFR fixings left out; without the 5Y SAIBOR swap, or with the spot rate dated 13-Oct only, issues too, since SOFR still has all its quotes. Only a date on which no curve has all its quotes is not buildable.
15.7 Volatility snapshots
A cap or swaption grid cannot be refreshed reliably every day, so its values
are not daily quotes. A
volatility snapshot holds every value of one grid \(V\) observed on one
as-of date \(o\): one row per cap maturity, or per swaption expiry and
tenor, and one value per strike in the grid's order, at the money first for a
cap grid. Values are decimals in the grid's model, so a normal volatility of
85 basis points is 0.0085. Every snapshot names its source, such as a
broker page or a vendor screen, and test data is labelled DUMMY; the
library ships no snapshot.
Each grid has one stored document, and each save is a new version, so \(\mathcal{S}_V\) is the list of pairs (as-of date \(o\), version \(n\)). A market on \(v\) uses
the pairs compared by as-of date first and version second. In words: of the versions observed on or before the valuation date, the one observed last, and of several observed on that same day the one saved last. Hence:
- a version observed after \(v\) is never used for \(v\), even when it was saved first, so a market built for a past date never sees later data;
- a correction is a new version with the same as-of date, and wins over the one it corrects;
- deleting the latest version brings back the one before it;
- there is no age limit: an old snapshot is used, and the built market, the
checkcommand and the front ends show its as-of date and version; - when no version is observed on or before \(v\), the grid is missing (Section 15.4).
Sticky volatilities. A value stored as of \(o\) for the cap of maturity
\(T\) and absolute strike \(K\) is used on \(v\) as the volatility of the cap of
the same maturity \(T\) and strike \(K\) starting from \(v\); a value stored for the
swaption of expiry \(E\), tenor \(\tau\) and offset \(\delta\) is used on \(v\) for the
swaption of expiry \(E\) and tenor \(\tau\) from \(v\), struck at \(\delta\) from the
forward swap rate of \(v\). So a swaption smile moves with the forward. A cap
snapshot is stored with the at-the-money strike of each maturity on \(o\),
implied from the market built on \(o\) when it is saved; on
\(v > o\) its rows are moved by the change in the at-the-money strike before
they are stripped (Equation (13.24)), so a cap smile moves with the
money too. A cap snapshot saved without them (by an earlier version, or when
the market of \(o\) could not be built) stays fixed in strike, until the
providers' vols atm command saves it again with them. The builder therefore reads the values as
quotes dated \(v\) and strips and calibrates them on the curves of \(v\), never on
those of \(o\), which would need the quotes of \(o\). Between two snapshots, the
caplet volatilities, the SABR parameters and the vegas change only through the
curves, which also set the move of a cap snapshot saved with its
at-the-money strikes.
Paste and import format. A table pasted from a spreadsheet or read from a
file (the desktop's "Volatility grids" page, or the vols import command of
the data providers) has a first line with
a free caption, then the strikes: ATM and the strikes in percent (4.00%)
for a cap grid, or the offsets in basis points (-50, ATM, +50bp) for a
swaption grid. Each other line holds the maturity (5Y) or the expiry and
tenor (1Y 10Y) and its values. Cells are separated by tabs, or by commas
when a line has no tab, and numbers use a full stop. Values are in basis
points for normal volatilities and in percent for lognormal ones, unless the
caller says otherwise; they are converted to decimals in decimal arithmetic,
so 59 basis points are stored as 0.0059 exactly as written. The strikes, the
rows and their order must be those of the grid's definition, and every value
a positive number; otherwise nothing is saved and the message says what
differs. A cap strike may also be written rounded to two decimals of a
percent (0.13% for 0.125%), and the desktop page also reads row labels as
it shows them (12M for 1Y), so a table copied from it reads back.
Example. The SAR cap and floor straddle page of an independent reference system, dated 15-Oct-2026, has the
shape of the shipped grid SAR-SAIBOR-3M-CAP: 10 maturities by an
at-the-money value and 20 strikes. Imported as of 15-Oct-2026, its 1Y at the
money value 99.48 is stored as 0.009948 and its 5Y 4.00% value 103.38 as
0.010338. A market on Sunday 18-Oct-2026 uses it; one on Wednesday
14-Oct-2026 does not, and without an older version is built without the cap
grid, named as an issue. A corrected page saved later for 15-Oct-2026 is version 2 and
replaces version 1 for every market from 15-Oct-2026; a page observed on
29-Oct-2026 and saved as version 3 is used from that date, while markets of
15 to 28-Oct-2026 still use version 2.
15.8 Assumptions and limits
- One curve group per market; the one market uses the group that holds every
shipped curve,
MAJOR. - The whole market is built on every date. Loading every curve costs little today; when the library holds many more objects (equities, inflation, credit), building only what a portfolio needs may be worth adding.
- Requirements come from the definition and from extra series the caller names; deriving the fixings a portfolio needs from its trades comes with the portfolio work.
- The SABR \(\beta\) is fixed at 0.5. For normal quotes the
SABR shift is the grid's
SabrShift, 0 when absent; the shipped USD, EUR, GBP and JPY swaption grids use 3% and the SAR one 2%, so that negative strikes fit, and a strike at or below minus the shift has no volatility (Section 13.8). - The quote field is one per market; a market of bids and a market of asks are two definitions.
15.9 Worked example
The SAR part of the market on 14-Oct-2026. A market of the SAR curve group
alone (the tests store one under the name Default, Section 15.5)
needs:
- 59 curve quotes: 32 SOFR OIS rates, 13 for the SAR curve under USD collateral (8 USD/SAR forward points and 5 basis spreads) and 14 for 3M SAIBOR (the deposit, 2 FRAs and 11 swaps);
- 1 spot rate,
USD/SAR SPOT; - the volatility snapshots of its two grids (Section 15.7): 210 cap values (10 maturities by an at-the-money value and 20 strikes) and 486 swaption values (9 expiries by 6 tenors by 9 offsets);
60 quote keys in all, each read on Mid. Its two fixing series run from
14-Oct-2024 and must reach Tuesday 13-Oct-2026, the last business day before
the valuation date in both Riyadh and the New York Fed calendar
(Equation (15.2)). Valued on Sunday 18-Oct-2026 instead, the SAIBOR series
must reach Thursday 15-Oct-2026 (Riyadh is closed on Friday and Saturday) and
the SOFR series Friday 16-Oct-2026.
If the 5Y SAIBOR swap is missing, the spot quote is dated 13-Oct-2026, no SOFR fixing is stored and no cap snapshot is observed on or before 14-Oct-2026, the builder still builds SOFR, which has all its quotes, and names six issues:
FX spot USD/SAR (no quote on 2026-10-14): the spot is stale;curve SAR-CSA-USD (...): the SAR curve under USD collateral, whose FX forward instruments need the spot rate;curve SAR-SAIBOR-3M (...): the 5Y swap is missing;volatility grid SAR-SAIBOR-3M-CAP (no snapshot on or before 2026-10-14);fixings USD-SOFR;volatility grid SAR-SAIBOR-3M-SWAPTION (...): its curves are not built.
A USD SOFR swap prices on this market as on a whole one; a SAR swap throws, naming the 3M SAIBOR curve. If the SOFR quotes are missing as well, no curve has all its quotes, and the builder stops with one message listing every missing quote, fixing and snapshot. With the 5Y swap and the spot restored, only the cap grid and the SOFR fixings are left out.
A missing JPY quote in the whole market. On a date when the store holds every quote but the 10Y TONA swap, the builder leaves out the TONA curve, the JPY curve under USD collateral, which reads the TONA curve, the synthetic curves under JPY collateral, and the TONA cap and swaption grids, and names each. Every USD, SAR, EUR and GBP trade prices as on the whole market.