ThirdMomentQuantX

Deal entry

Contents
  1. The pages around it
  2. How the pages read
  3. Layout
  4. Adding and editing trades
  5. Fixing in arrears, CMS and SABR risk
  6. Selecting trades
  7. Reading the results
  8. XVA
  9. Counterparties and netting sets
  10. Booking trades to the database
  11. Booked trades
  12. Saving and opening trade sets

The Deal entry page of the desktop application is where trades are entered, valued, booked to the database and saved to files, one trade or many on one screen. For each trade it shows both present values:

  • the Standard CSA PV, on the trade's own terms: each currency on its default discount curve, or under USD collateral when the trade is marked as a cross-currency trade;
  • the CSA PV, on the CSA of the trade's counterparty, or of its netting set when it names one.

The trades on the page are a working set, kept while the application runs, saved to a file when you choose and booked to the database when you choose.

The pages around it

The sidebar groups the pages by task:

  • Home shows the session's market, the working set (with Continue), the number of booked trades and counterparties, the debt's headline figures when there is debt, and a button per product that opens Deal entry with that product added.
  • Debt: Overview, Instruments, Cash flows and Entities (see Debt).
  • Trading: Deal entry, Counterparties (under it) and Booked trades.
  • Analytics: Quick pricer (one trade with every detail, not kept), Curves, Schedule and Calendar.

Choose a market and a date with the market button at the top right first: every trade is valued on that market, and changing it revalues the whole set.

How the pages read

The pages carry no explanatory sentences: each shows its title, its controls and its data, and this guide holds the explanations. Details sit behind the pointer instead:

  • hovering over a field, a tile or a badge shows what it holds (for example the meaning of a signed notional, or why a product is unavailable);
  • a short badge marks a state: No vols, No credit, No market or No convention on a product that cannot be added yet, and the count of issues, in red, on the market button when the market lacks some parts;
  • diagnostics stay in full sentences, opened on demand: Build details on Curves, Missing in the market picker, Notes under XVA, and the reason of a failed trade at the top of the inspector.

Amounts paid are negative and shown in red; amounts received are positive and not coloured. Dates read dd-MMM-yyyy.

Layout

  • Toolbar (stays at the top while you scroll): the set's name and whether it has unsaved changes, New trade, the counterparty given to new trades, Open and Save with a menu (Save as…, Book selected to database, New empty set), the risk basis (CSA PV by default, or Standard) and the base currency.
  • Tiles: the selected trades' Standard CSA PV and CSA PV in the base currency, their difference, the DV01 per currency and how many trades are selected.
  • Trade list on the left, the inspector of the focused trade on the right (below the list on narrow screens), and the analysis of the selected trades under the list. Full width (beside the analysis tabs; only its arrows on smaller screens) spreads the charts and XVA across the page under both; with no trade focused (close the inspector), the list and the analysis take the whole width.

Adding and editing trades

  1. Choose the counterparty in for, then a product in New trade (an empty set shows the products as large buttons). The menu opens on its first product: arrow keys move, Enter adds. The trade is dated on the market's date and its blank levels are fixed at the market: an IRS gets its par rate, a cap its at-the-money strike, an FX forward its forward rate. The trade then stays the same contract on any later market. Levels are fixed on each currency's default curves, as the Quick pricer quotes them: a swap added at par is worth zero on its Standard CSA PV, but its CSA PV differs when the counterparty's CSA does. A trade without a counterparty is valued on its standard terms in both, and a grey line under the toolbar names it until one is chosen; it cannot be booked before then.
  2. The new trade opens in the inspector. Tab Terms holds its counterparty, netting set (only those of the counterparty are offered), trade date (which anchors the spot start, tenors and expiries), book, cross-currency flag and comment, then its term sheet, the same as the Quick pricer's. Tab Valuation shows both present values leg by leg with the collateral each was discounted under, then the Quick pricer's results; Widen gives the inspector half the screen.
  3. Each change reprices that trade only; the totals follow at once.

Tenors or dates. Every tenor field also takes a date, written as the app shows dates (15-Jan-2031) or in ISO 8601: an FX forward to a broken date, an FRA starting on a given day, a CDS or cap to a given maturity, a swaption expiring on a given day. The cap/floor, cross-currency and CMS term sheets also have a Start date, empty for spot, for forward-starting trades. A tenor is measured from the trade date's spot, as before.

Equity options are priced on the Quick pricer only: they have no portfolio trade yet.

Fixing in arrears, CMS and SABR risk

  • Fixing in arrears. The IRS term sheet has Floating rate fixes: In advance / In arrears; the cross-currency swap has Spread leg rate fixes when that leg is on a term rate (an overnight leg compounds in advance). In arrears each rate is set at the end of its period, with the timing adjustment of Methodology chapter 22, read from the index's cap volatilities: the market needs that index's cap grid, and the result has a vega to it. The choice is booked as the trade's FixingTiming.
  • CMS leg. One leg paying a constant maturity swap rate (for example the 10Y rate, set each quarter for five years), received or paid, with a spread in basis points and a gearing. It needs the swap index's swaption volatilities in the market (SABR). The results show the present value, the average convexity adjustment, vega, DV01 and the SABR parameter rows.
  • CMS swap. A CMS leg against a fixed leg or a floating index, on a CMS swap convention of the reference data. None is shipped until its terms are agreed: add one under Data store > Documents and it appears. A blank other-leg rate is the par rate. The notional's sign: against a fixed leg it is the fixed leg's (negative: you pay fixed and receive the CMS rate); against a floating leg it is the CMS leg's (positive: you receive the CMS rate). Hovering over the notional says it in words.
  • Cash flows of CMS coupons add two columns: the convexity adjustment in the coupon's rate and its wing share, the part of the adjustment from the far wings of the smile. A wing share over 10% is shown in amber as a hint to look at the smile; it is not a limit, and the library prices it as it is.
  • SABR parameter rows. Under vega, a swaption or CMS trade lists each SABR node it depends on with its forward, α, ρ and ν and the value change for α up 1% of itself, ρ up 0.01 and ν up 0.01. α's unit depends on β, so its move is relative; a node borrowed from a neighbour is marked.

Selecting trades

The tick at the start of a row is the selection: the selected trades make the tiles, the analysis tabs and XVA. Clicking a row only shows it in the inspector; the row shown has a coloured bar on its left.

  • Shift-click ticks every row between the last one clicked and this one; the box in the header ticks all or none.
  • With the list focused, Up and Down move between trades, Space ticks or unticks, Delete removes the trade after asking; Ctrl+S saves the set anywhere on the page.
  • Ticking rows shows a bar above the list: give the selected trades a counterparty or netting set, Book, Duplicate or Remove them, or clear the selection.

A trade whose value failed shows a warning sign in its row and the reason at the top of the inspector (for example, a CSA in a currency for which the market has no curve); the totals leave it out and say so.

Reading the results

  • Overview: both present values of each selected trade, largest first.
  • By counterparty: both totals per counterparty with its CSA, and a chart of what each CSA changes.
  • By currency: both totals per currency, with the total in the base currency and the FX position in each currency.
  • Risk, on the risk basis, for each currency on its own (sensitivities in different currencies are never added):
    • DV01 by tenor: every curve's sensitivities summed by tenor, which shows where on the curve the selected trades are exposed;
    • DV01 by trade: the trades with the largest DV01 first;
    • a heat map of curve (or, with By trade, trade) against tenor, with a totals row and column;
    • Vega as a heat map of volatility grid against expiry;
    • Every quote: each quote's sensitivity, with Copy for Excel. Tenors under half a percent of the largest are left out of the charts; the table lists every quote.

Amounts received are positive, amounts paid negative and shown in red.

XVA

The XVA tab values the credit and funding adjustments of the selected trades (methodology chapters 23 and 24). It covers interest rate swaps (OIS and IRS), FRAs, caps and floors on a term rate, and swaptions; other trades (FX forwards, cross-currency swaps, caps on SOFR and other compounded rates, CDS, bonds) are listed under Not in the XVA with the reason.

  1. Counterparty credit (CVA): one line per counterparty. Choose one of the market's CDS curves or Flat credit spread, and a recovery rate. A counterparty whose netting set or record names a credit curve starts on it. Changing the recovery of a CDS curve bootstraps it again from the same quotes, so it still reprices the market and the CVA moves little: the spreads fix loss times default probability.
  2. Our credit (DVA) and funding (FVA): choose our own CDS curve or a flat spread. Nothing is assumed until you do: the DVA, and funding at our own credit, stay blank. Borrowing is at our own credit spread by default (switch to Flat to enter a funds transfer spread); lending is at 0 bp, because lending at our credit spread would count our default a second time next to the DVA.
  3. Simulation: 2,000 paths (quick, the default), 10,000 or 50,000 (precise), and whether the first default closes the netting set out. Results come back within a few seconds and recompute whenever an input changes; the same seed is used every time, so the same inputs give the same numbers.

The results:

  • Tiles: CVA, DVA, FVA (with FCA and FBA in the hint) and the total, in the base currency, with the Monte Carlo error.
  • From today's value to the value after XVA: a waterfall from the swaps' present value on standard discounting through each adjustment; costs are red, benefits green.
  • Where the XVA comes from: each adjustment by the year it accrues in.
  • Exposure profile: for each netting set (picker at the top right), the expected exposure above zero, the expected negative exposure below it and the 97.5% potential future exposure. Under a CSA the exposure is net of the collateral called one margin period of risk earlier, and a dashed line shows the expected exposure without collateral; the exposure spikes for a margin period after each payment date.
  • By netting set: each netting set in its own currency, with the Hull-White calibration behind it (instruments, mean reversion, fit). For a netting set holding caps or swaptions, the PV column shows the pricers' present value and, under it, the model value the exposure starts from: the Hull-White model has no smile, so the two differ, most for caps and off-the-money swaptions. A netting set under a CSA also shows its margin terms (defaults marked) and the discount curve it was simulated on.
  • Credit used: the survival probability of each party over time.

Trades are netted per counterparty, netting set and currency: the page flags a counterparty with trades in several currencies as an upper bound on the size of its CVA and DVA (a CSA's thresholds then apply to each currency in full).

Choose the risk basis (CSA PV by default, or Standard CSA PV) and the base currency at the top of the page. Amounts received are positive, amounts paid negative and shown in red.

Counterparties and netting sets

Counterparties opens the page where counterparties are created and amended. A counterparty holds its CSA: the collateral currency (or none), a discount spread in basis points added to the zero rate of every curve under the CSA, and a credit curve for CVA. With a collateral currency, four optional margin terms feed the XVA: the counterparty's threshold, ours and the minimum transfer amount, in the collateral currency, and the margin period of risk in business days. Leave one blank for its default (0, or 10 business days): defaults are shown but not stored, so a later change of default reaches every CSA that left the term blank. While you edit a CSA, the page shows which discount curve the flows of every currency take under it, marks the curves composed through USD as synthetic, and warns when the market has none. The shipped market composes every currency under EUR, GBP and JPY collateral; another collateral currency is added to the market definition's SyntheticCollateral field. SAR collateral is not available yet.

A netting set is needed only for a counterparty with several agreements; a trade naming one takes its CSA instead of the counterparty's. Its counterparty must be the trade's.

Every save stores a new version of the document; earlier versions stay in Data store > Documents. Amending a CSA revalues every trade with that counterparty at once.

Booking trades to the database

Book in the selection bar, or Book selected to database in the Save menu, books the selected trades; Book to database in the inspector books the trade shown. A booked trade is stored with its convention's terms frozen, its trade date, counterparty (required), netting set, book and comment, and appears on the Booked trades page and in Data store > Documents. The trade shows its booked identifier, such as T-000012 v1; booking it again after a change stores the next version, and does nothing when nothing changed. A trade from a file that was booked before asks first, since the stored trade may have been amended since.

A bond is booked against a stored security, under four rules:

  • Choose a stored Bond convention. Typed terms price only: a booked security must name a convention of the reference data, and booking never creates one.
  • Enter the Security identifier (an ISIN or an internal code, no spaces). When no security is stored under it, booking asks first and then stores it under Data store > Documents (kind Security). A stored security with the same terms is reused; one with other terms is refused, with the differences listed. A stored Sukuk security is reused when the bond it wraps has the same terms; booking never creates a Sukuk security.
  • Settles on shows the convention's standard settlement from the trade date; change it to the date agreed.
  • Enter the dealt clean price. A bond added to the set gets the curve price so that it values; it is marked as such and cannot be booked until a price is entered.

Booked trades

The Booked trades page lists the latest version of every booked trade of every type with its main terms in one line, filtered by product, counterparty or text. Click a trade to see its fields, its frozen convention terms and every version with what changed.

Tick trades and Open in deal entry to value or amend them: they join the working set with their booked identifier, so that booking them again stores the next version. Every rates, FX, credit and bond trade can be opened; loans not yet, and the last column says which. OIS and IRS trades open with their own dates. The other term sheets open with a tenor when one reproduces the booked contract exactly, and with the trade's own dates otherwise. A trade with terms a term sheet cannot hold (a premium, step-up strikes, an FRA period other than its index's tenor) stays booked and valued in the portfolio, and says why. A bond opens on its stored security and convention. A trade already in the set is not opened twice. When the convention's terms have changed since the trade was booked, it opens on today's terms with a warning.

Saving and opening trade sets

Save and Save as… write the set to a .quantx.json file; Open… reads one, and New set starts an empty one. The file holds each trade's terms in the library's formats (rates as decimals, dates as ISO 8601) and a copy of the counterparties and netting sets its trades name. New set, Open… and closing the window ask before discarding unsaved changes.

When a file is opened, the data store's counterparties are used: a counterparty of the file missing from the store is listed with Create it, and one whose terms differ is listed field by field (the store's terms are used). A trade that cannot be read is reported and left out; the rest of the file opens.

Reconnecting Connection paused Could not reconnect Could not resume Session expired

The connection to the server was lost. Trying to restore it. Next attempt in 0s. The connection was paused. It will resume on its own. The server did not answer. Your work is still here. The paused session could not be resumed. The server could not restore this session. Reloading will start a new one.

An unhandled error has occurred. Reload 🗙