tmval.Bond.balance

Bond.balance(t: float, n: int = None) → float[source]

Calculates the bond balance at time t, where t must coincide with a payment time. Alternatively, if you’d like to know the balance just prior to the n-th coupon payment, you may supply the value to the argument n.

Parameters
  • t (float) – The balance time.

  • n (int) – The n-th coupon payment.

Returns

The bond balance.

Return type

float