Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ql/cashflows/cashflows"

Index

Variables

Const basisPoint

basisPoint: Spread = 0.0001

Functions

aggregateRate

  • Coupon utility functions

    Parameters

    Returns Rate

getStepwiseDiscountTime

  • helper fucntion used to calculate Time-To-Discount for each stage when calculating discount factor stepwisely

    Parameters

    Returns Time

macaulayDuration

  • macaulayDuration(leg: Leg, y: InterestRate, includeSettlementDateFlows: boolean, settlementDate: Date, npvDate: Date): Real
  • Parameters

    • leg: Leg
    • y: InterestRate
    • includeSettlementDateFlows: boolean
    • settlementDate: Date
    • npvDate: Date

    Returns Real

modifiedDuration

  • modifiedDuration(leg: Leg, y: InterestRate, includeSettlementDateFlows: boolean, settlementDate: Date, npvDate: Date): Real
  • Parameters

    • leg: Leg
    • y: InterestRate
    • includeSettlementDateFlows: boolean
    • settlementDate: Date
    • npvDate: Date

    Returns Real

simpleDuration

  • simpleDuration(leg: Leg, y: InterestRate, includeSettlementDateFlows: boolean, settlementDate: Date, npvDate: Date): Real
  • Parameters

    • leg: Leg
    • y: InterestRate
    • includeSettlementDateFlows: boolean
    • settlementDate: Date
    • npvDate: Date

    Returns Real