Shared contract terms = the dictionary ContractTerms over α.
Equations
Instances For
A blank Float contract: every optional attribute undefined, sensible
defaults for the required ones. Build concrete contracts with record-update
syntax, e.g. { defaultTerms with notionalPrincipal := some 1000.0, … }.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
Instances For
Equations
- ct.fer = Actus.Contract.Terms.f✝ ct.feeRate
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Rate multiplier defaults to 1 (identity) when absent.
Equations
- ct.rrmlt = ct.rateMultiplier.getD 1
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
- ct.scied = ct.scalingIndexAtContractDealDate.getD 1
Instances For
Equations
- ct.cntrl = ct.contractRole
Instances For
Equations
Instances For
Apply an optional upper bound: min x c when present, else x.
Equations
- Actus.Contract.clampHi (some c_2) x = x ⊓ c_2
- Actus.Contract.clampHi none x = x
Instances For
Apply an optional lower bound: max x f when present, else x.
Equations
- Actus.Contract.clampLo (some c_1) x = x ⊔ c_1
- Actus.Contract.clampLo none x = x
Instances For
Shared contract state variables (ACTUS dictionary short names). Md/Sd
are serial day numbers on the Time axis; the monetary/rate variables have
the generic amount type α.
- md : Protocol.Time
- nt : α
- ipnr : α
- ipac : α
- feac : α
- nsc : α
- isc : α
- prnxt : α
- ipcb : α
- prf : Protocol.Performance
- sd : Protocol.Time
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Actus.Contract.instReprState = { reprPrec := Actus.Contract.instReprState.repr }
The risk-factor observations the lending STF/POF formulas depend on.
curs is the settlement-currency factor X^CURS(t); marketRate is
Oʳᶠ(RRMO, t); prepayment is Oᵉᵛ(CID, PP, t); yf s t is the year
fraction Y(s, t) (a convention observation — see the module header).
- curs : Protocol.Time → α
- marketRate : Protocol.Time → α
- prepayment : Protocol.Time → α
- annuityYfs : Protocol.Time → List α
Year fractions of the principal-redemption periods remaining as of a reset time, used to recompute the ANN annuity amount
A(§3.8). - scalingIndex : Protocol.Time → α
Scaling index
Oʳᶠ(SCMO, t)driving theSCscaling multipliers. - marketRateOf : String → Protocol.Time → α
Market rate by market-object code:
Oʳᶠ(m, t). Used by composite contracts (SWAPS) to resolve each leg's own rate-reset series. - dividends : List (Protocol.Time × α)
Observed dividend stream
Oᵉᵛ(DV)— (date, amount) pairs (STK). Observed credit events
Oᵉᵛ(CE)— (event time, contract id, performance state) triples. Drives credit-enhancement payouts (CEG / CEC).- exerciseDate : Option Protocol.Time
Observed exercise time
Oᵉᵛ(CID)— the latestXDevent, which closes an open-maturity contract (a CLM "call").none⇒ no exercise observed. - yf : Protocol.Time → Protocol.Time → α
Year fraction
Y(s, t)between twoTimepoints. - maturityEOD : Bool
Maturity / termination given as end-of-day (
23:59:59): the event settles and accrues to the next midnight while the schedule structure uses the written date (§2.8). - terminationEOD : Bool
- purchaseEOD : Bool
Instances For
Trivial environment: unit fx factor, no market rate, no prepayment.
Equations
Instances For
Does the scaling effect scale interest (Isc)?
Equations
Instances For
Does the scaling effect scale the notional (Nsc)?
Equations
Instances For
Y(s, t) for the contract's day-count convention, with s,t on the
Time axis (converted back to calendar dates via ofEpochDay).