build_query
Creates a validated CurveQuerySpec for bootstrap_curve, letting you request discount factors, zero rates, or forwards by tenor or date range without an engine call.
Instructions
A CurveQuerySpec for bootstrap_curve (no engine call).
Args:
curve_id: the curve to sample.
measures: any of DF, ZERO, FWD.
tenors: TenorGrid, e.g. ["1M", "6M", "1Y", "5Y", "10Y"]; needs
calendar + business_day_convention to roll each tenor.
range_grid: RangeGrid alternative {end_date, step_number, step_time_unit, start_date?, business_days_only?, calendar?, ...}.
zero: options for ZERO (default: continuous, annual, curve day counter).
fwd: required when FWD is requested (forward_type Period + tenor,
or Instantaneous + eps; compounding; frequency).
Returns {ok, query, notes}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fwd | No | ||
| zero | No | ||
| tenors | No | ||
| calendar | No | ||
| curve_id | Yes | ||
| measures | Yes | ||
| range_grid | No | ||
| business_day_convention | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||