@fintekkers/ledger-models 1.1.39 → 1.1.40
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.
- package/catalog/measures.json +4 -3
- package/package.json +1 -1
package/catalog/measures.json
CHANGED
|
@@ -357,18 +357,19 @@
|
|
|
357
357
|
"enum_value": 20,
|
|
358
358
|
"display_name": "Accrued Interest",
|
|
359
359
|
"description": "The coupon interest accrued from the last coupon date up to (but not including) the settlement date, per the security's day count. Earned but not yet received.",
|
|
360
|
-
"formula": "Fixed-coupon bonds
|
|
360
|
+
"formula": "Fixed-coupon bonds: AccruedInterest = (coupon_rate / coupon_frequency) * (days_since_last_coupon / days_in_period) * directed_quantity. TIPS: AccruedInterest = (coupon_rate / coupon_frequency) * (days_since_last_coupon / days_in_period, Actual/Actual (ICMA)) * index_ratio * directed_quantity, where index_ratio = INDEX_RATIO = reference_cpi / base_cpi at settlement, rounded per 31 CFR 356 Appendix B (see INDEX_RATIO), not floored. A TIPS request missing the CPI inputs MARKET_VALUE uses returns an error, never an unscaled figure (an exception to the absent rule: an unscaled figure would be silently wrong). Treasury FRNs: AccruedInterest = Σ_{each day} (index_fixing_d + spread) / 360 * directed_quantity, where directed_quantity is the position's face",
|
|
361
361
|
"units": "Dollars (absolute dollar amount for the position)",
|
|
362
362
|
"category": "valuation",
|
|
363
363
|
"applies_to": ["BOND", "TIPS", "TREASURY_FRN"],
|
|
364
364
|
"model_assumptions": [
|
|
365
365
|
"Day count: the security's (Actual/Actual (ICMA) for US Treasuries)",
|
|
366
366
|
"Treasury FRNs: the fixings are the ones supplied in the request; no curve is used",
|
|
367
|
-
"Returns null/zero for Equity, Cash, and zero-coupon bonds"
|
|
367
|
+
"Returns null/zero for Equity, Cash, and zero-coupon bonds",
|
|
368
|
+
"TIPS: scaled by INDEX_RATIO at settlement (31 CFR 356 Appendix B rounding, not floored); missing CPI inputs → error"
|
|
368
369
|
],
|
|
369
370
|
"implemented": true,
|
|
370
371
|
"computed_by": "valuation-service",
|
|
371
|
-
"depends_on": ["SECURITY_TERMS", "BILL_FIXINGS"]
|
|
372
|
+
"depends_on": ["SECURITY_TERMS", "BILL_FIXINGS", "INDEX_RATIO"]
|
|
372
373
|
},
|
|
373
374
|
{
|
|
374
375
|
"name": "CONVEXITY",
|