price_vanilla_swap
Price fixed-vs-IBOR swaps by providing market data and trade details to calculate NPV, fair rate, and leg cash flows.
Instructions
Price a fixed-vs-IBOR swap (POST /price-vanilla-swap).
Args:
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.
market: {"session": name}, an engine pricing block (used verbatim)
or {curves: [...], indices: [...]} (build_curve results allowed).
preset: a preset with a vanilla_swap block (EUR_EURIBOR_6M,
EUR_EURIBOR_3M): schedule, fixed and floating leg conventions.
swap_type: Payer (pay fixed) or Receiver.
notional: constant notional (> 0).
fixed_rate: decimal, e.g. 0.032.
effective_date: YYYY-MM-DD or spot (as_of + the preset's settlement
days, resolved by the engine's /calendar-advance).
discounting_curve, forwarding_curve: curve ids in the market.
termination_date: YYYY-MM-DD; or give tenor (5Y, resolved by the
engine from the effective date, Unadjusted).
spread: floating-leg spread (decimal, default 0.0).
index_id: floating index id in the market (default: the preset's index id).
fixed_leg_overrides, floating_leg_overrides: replace conventions
(frequency, day_counter, payment_convention, notionals, schedule rules).
additional_trades: more swaps for the same request (same preset/market).
as_of: YYYY-MM-DD; required unless market is a pricing block.
include_flows: ask the engine for per-leg cash flows.
Result: uniform shape + notes (every convention with its source),
date_resolution (the /calendar-advance calls) and summary.swaps
(npv, fair_rate, leg npvs selected from the response).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ||
| tenor | No | ||
| market | Yes | ||
| preset | Yes | ||
| spread | No | ||
| index_id | No | ||
| notional | Yes | ||
| swap_type | Yes | ||
| fixed_rate | Yes | ||
| request_id | No | ||
| include_flows | No | ||
| effective_date | Yes | ||
| forwarding_curve | Yes | ||
| termination_date | No | ||
| additional_trades | No | ||
| discounting_curve | Yes | ||
| calendar_overrides | No | ||
| market_data_source | Yes | ||
| fixed_leg_overrides | No | ||
| floating_leg_overrides | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||