Documentation

Actus.Contract.Swap

def Actus.Contract.SWPPV.stf_RR {α : Type} [Amount α] (ct : Terms α) (rf : RiskFactorEnv α) (t : Protocol.Time) (s : State α) :

Rate reset: install the clamped market floating rate.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def Actus.Contract.SWPPV.stf {α : Type} [Amount α] (ct : Terms α) (rf : RiskFactorEnv α) (e : Protocol.EventType) (t : Protocol.Time) (s : State α) :

    STF dispatcher. The floating leg advances the period boundary Sd; the fixed leg (and any other event) leaves the state untouched.

    Equations
    Instances For
      def Actus.Contract.SWPPV.pof_IPFX {α : Type} [Amount α] (ct : Terms α) (rf : RiskFactorEnv α) (t : Protocol.Time) (s : State α) :
      α
      Equations
      Instances For
        def Actus.Contract.SWPPV.pof_IPFL {α : Type} [Amount α] (rf : RiskFactorEnv α) (t : Protocol.Time) (s : State α) :
        α
        Equations
        Instances For
          def Actus.Contract.SWPPV.init {α : Type} [Amount α] (ct : Terms α) (iedT : Protocol.Time) :

          Initial state: signed notional, floating rate at nominalInterestRate2, period start at IED.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            inductive Actus.Contract.SWPPV.Step {α : Type} [Amount α] (ct : Terms α) (rf : RiskFactorEnv α) :
            State αState αType

            One-step SWPPV transition. t is explicit (a period may emit two legs at the same t, so the cash-flow time is taken from t rather than Sd).

            Instances For
              @[reducible, inline]
              abbrev Actus.Contract.SWPPV.Trace {α : Type} [Amount α] (ct : Terms α) (rf : RiskFactorEnv α) :
              State αState αType
              Equations
              Instances For
                def Actus.Contract.SWPPV.getCashflow {α : Type} [Amount α] (ct : Terms α) (rf : RiskFactorEnv α) {s s' : State α} (h : Step ct rf s s') :
                Equations
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    SWPPV cash flows. Each interest period emits a fixed (IPFX) and floating (IPFL) leg; rate resets (RR) update the floating rate. The events are folded through SWPPV.stf/SWPPV.pof; at a shared timestamp they are ordered IPFX, IPFL, then RR, so both legs read the pre-reset rate and the same period year-fraction. Gross (D) keeps both legs; net (S) sums them per period into one IP.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      Cash flows of a single (child) contract, dispatched on its type.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        SWAPS — a parent contract over two legs (contractStructure). The FIL leg runs in the parent's role direction, the SEL leg in the opposite one; each leg is generated by the ordinary engine and the cash flows combined: gross/delivery (deliverySettlement = D) emits both legs' flows, while net (S) sums same-(date, event-type) flows. A parent terminationDate truncates the combined flows and settles TD; a parent purchaseDate drops pre-purchase flows and settles PRD (both at the parent's clean price).

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For