@fintekkers/ledger-models 0.4.60 → 0.4.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,7 +92,7 @@
92
92
  "applies_to": ["BOND_SECURITY", "TIPS"],
93
93
  "model_assumptions": [
94
94
  "Coupon reinvestment at the YTM rate (standard bond math assumption)",
95
- "For TIPS: uses inflation-adjusted principal for cashflows, yielding a mixed rate — use REAL_YIELD instead",
95
+ "For TIPS: returns the same value as REAL_YIELD, with the response summary warning \"YIELD_TO_MATURITY for TIPS is the real yield (same as REAL_YIELD); a nominal yield needs an inflation forecast\"",
96
96
  "Settlement on a coupon date (no accrued interest adjustment currently)",
97
97
  "Day count: Actual/365 for years-to-maturity",
98
98
  "Solver: Newton-Raphson iteration with linear approximation initial guess"
@@ -126,7 +126,7 @@
126
126
  "applies_to": ["BOND_SECURITY", "TIPS"],
127
127
  "model_assumptions": [
128
128
  "Same as YIELD_TO_MATURITY (the discount rate is derived from the input price)",
129
- "For TIPS: cashflows use inflation-adjusted principal",
129
+ "For TIPS: inflation-adjusted cash flows discounted at REAL_YIELD, consistent with clean_price × index_ratio",
130
130
  "Three-way invariant: price == present_value == sum(cashflow_pvs)"
131
131
  ],
132
132
  "implemented": true
@@ -136,13 +136,13 @@
136
136
  "enum_value": 10,
137
137
  "display_name": "Real Yield",
138
138
  "description": "The yield of a TIPS bond in real (inflation-adjusted) terms. This is the return an investor earns above the rate of inflation.",
139
- "formula": "Delegates to YTM calculator with inflation-adjusted principal cashflows",
139
+ "formula": "Solve for r: clean_price × index_ratio × face / 100 = Sum[PV(inflation-adjusted cash flows at r)]",
140
140
  "units": "Decimal (0-1 scale; e.g. 0.02 = 2.00% real annual yield)",
141
141
  "category": "yield",
142
142
  "applies_to": ["TIPS"],
143
143
  "model_assumptions": [
144
- "Same as YIELD_TO_MATURITY but applied to TIPS securities",
145
- "Known limitation: mixes real price with nominal (inflation-adjusted) cashflows, producing a rate that is not the true real yield for non-par TIPS"
144
+ "Same solver and conventions as YIELD_TO_MATURITY",
145
+ "The quoted real price is scaled by the same index ratio as the cash flows, so the result is the true real yield and does not change with CPI"
146
146
  ],
147
147
  "implemented": true
148
148
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fintekkers/ledger-models",
3
3
  "todo": "Replace the version with build script version number",
4
- "version": "0.4.60",
4
+ "version": "0.4.62",
5
5
  "description": "ledger model protos ",
6
6
  "authors": [
7
7
  "David Doherty",