swap_dv01
Reprice a swap with each quote on selected curves bumped to calculate parallel DV01 and measure interest-rate sensitivity.
Instructions
Parallel DV01 of a swap: reprice with every quote of the selected curve(s) bumped.
Args:
market: as in the pricing tools (session, engine pricing block or build_curve
results).
market_data_source: where the market numbers in this call come from. user_pasted
(the user pasted or typed the numbers in this conversation), user_file (the
user attached a file/screenshot the numbers were read from), engine_example
(an engine example's pricing block, only when the user explicitly asked to run
an example), session (a market previously stored in this session, which
itself came from one of the above). There is no value for estimated, recalled or
placeholder data. If you would have to invent numbers, do not call this tool:
ask the user for the data.
trade: the swap: product (vanilla_swap | ois_swap), preset,
discounting_curve, forwarding_curve and the price_vanilla_swap /
price_ois_swap economics (swap_type, notional, fixed_rate, effective_date
'spot' | date, tenor | termination_date, spread, index_id, overrides).
bump_bp: size of the bump in basis points (default 1, positive; added to every
helper rate / spread; futures prices move by -bp/100; the method sets the sign).
method: centered (default) = (NPV(+bp) - NPV(-bp)) / 2, three engine calls;
up = NPV(+bp) - NPV(base); down = NPV(base) - NPV(-bp).
scope: all (discounting and forwarding curves together), discounting
or forwarding.
as_of: required unless market is a pricing block.
Result: base_npv, npvs (every per-call NPV: base, up, down), dv01,
dv01_definition (the exact difference taken for the method), bumped_quotes
(every quote moved per side, from/to) and calls = the complete pricing results
(each with its echoed request). Nothing else is computed; the arithmetic is cited
at quantra://methodology/connector-analytics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ||
| scope | No | all | |
| trade | Yes | ||
| market | Yes | ||
| method | No | centered | |
| bump_bp | No | ||
| request_id | No | ||
| calendar_overrides | No | ||
| market_data_source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||