Options
All
  • Public
  • Public/Protected
  • All
Menu

Bond adapters of CashFlows functions

See CashFlows for functions' documentation.

These adapters calls into CashFlows functions passing as input the Bond cashflows, the dirty price (i.e. npv) calculated from clean price, the bond settlement date (unless another date is given), zero ex-dividend days, and excluding any cashflow on the settlement date.

Prices are always clean, as per market convention.

Hierarchy

  • BondFunctions

Index

Methods

Static accrualDays

  • accrualDays(bond: Bond, settlementDate?: Date): Integer
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Integer

Static accrualEndDate

  • accrualEndDate(bond: Bond, settlementDate?: Date): Date
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Date

Static accrualPeriod

  • accrualPeriod(bond: Bond, settlementDate?: Date): Time
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Time

Static accrualStartDate

  • accrualStartDate(bond: Bond, settlementDate?: Date): Date
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Date

Static accruedAmount

  • accruedAmount(bond: Bond, settlementDate?: Date): Integer
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Integer

Static accruedDays

  • accruedDays(bond: Bond, settlementDate?: Date): Integer
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Integer

Static accruedPeriod

  • accruedPeriod(bond: Bond, settlementDate?: Date): Time
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Time

Static atmRate

  • Parameters

    • bond: Bond
    • discountCurve: YieldTermStructure
    • Default value settlementDate: Date = null
    • Default value cleanPrice: Real = QL_NULL_REAL

    Returns Rate

Static basisPointValue1

  • Parameters

    Returns Real

Static basisPointValue2

Static bps1

  • Parameters

    Returns Real

Static bps2

  • Parameters

    Returns Real

Static bps3

Static cleanPrice1

  • Parameters

    Returns Real

Static cleanPrice2

  • Parameters

    Returns Real

Static cleanPrice3

Static cleanPrice4

Static convexity1

  • Parameters

    Returns Real

Static convexity2

Static dirtyPrice1

  • Parameters

    Returns Real

Static dirtyPrice2

Static duration1

  • Parameters

    • bond: Bond
    • y: InterestRate
    • Default value type: Type = Duration.Type.Modified
    • Default value settlementDate: Date = null

    Returns Time

Static duration2

  • Parameters

    Returns Time

Static isTradable

  • isTradable(bond: Bond, settlementDate?: Date): boolean
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns boolean

Static maturityDate

  • maturityDate(bond: Bond): Date
  • Parameters

    Returns Date

Static nextCashFlow1

  • nextCashFlow1(bond: Bond, settlementDate?: Date): CashFlow
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns CashFlow

Static nextCashFlow2

  • nextCashFlow2(bond: Bond, settlementDate?: Date): Size
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Size

Static nextCashFlowAmount

  • nextCashFlowAmount(bond: Bond, settlementDate?: Date): Real
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Real

Static nextCashFlowDate

  • nextCashFlowDate(bond: Bond, settlementDate?: Date): Date
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Date

Static nextCouponRate

  • nextCouponRate(bond: Bond, settlementDate?: Date): Rate
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Rate

Static previousCashFlow1

  • previousCashFlow1(bond: Bond, settlementDate?: Date): CashFlow
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns CashFlow

Static previousCashFlow2

  • previousCashFlow2(bond: Bond, settlementDate?: Date): Size
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Size

Static previousCashFlowAmount

  • previousCashFlowAmount(bond: Bond, settlementDate?: Date): Real
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Real

Static previousCashFlowDate

  • previousCashFlowDate(bond: Bond, settlementDate?: Date): Date
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Date

Static previousCouponRate

  • previousCouponRate(bond: Bond, settlementDate?: Date): Rate
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Rate

Static referencePeriodEnd

  • referencePeriodEnd(bond: Bond, settlementDate?: Date): Date
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Date

Static referencePeriodStart

  • referencePeriodStart(bond: Bond, settlementDate?: Date): Date
  • Parameters

    • bond: Bond
    • Default value settlementDate: Date = null

    Returns Date

Static startDate

  • startDate(bond: Bond): Date
  • Parameters

    Returns Date

Static yield1

  • Parameters

    Returns Rate

Static yield2

  • Parameters

    Returns Rate

Static yieldValueBasisPoint1

  • Parameters

    Returns Real

Static yieldValueBasisPoint2

Static zSpread