fair_rate
Retrieve a swap's fair (par) rate and spread from the pricing engine using supplied market and trade data; returns engine values only, no local solving.
Instructions
The engine's fair (par) rate of a swap, read from the pricing response.
Args:
market, trade, as_of: as in swap_dv01.
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.
Result: fair_rate / fair_spread exactly as the engine returned them (plus
npv); when the response carries neither, provided_by_engine is false and
message says so (nothing is solved locally). calls[0] is the pricing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ||
| trade | Yes | ||
| market | Yes | ||
| request_id | No | ||
| calendar_overrides | No | ||
| market_data_source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||