Skip to content

Commit

Permalink
Merge pull request #192 from nashquant/fix_swap_leg
Browse files Browse the repository at this point in the history
Fix swap leg
  • Loading branch information
domokane authored Aug 23, 2023
2 parents 184c4a8 + f36fa8a commit 8314fd4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions financepy/products/rates/swap_float_leg.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,11 @@ def print_valuation(self):
print("FREQUENCY:", str(self._freq_type))
print("DAY COUNT:", str(self._day_count_type))

self.print_payments()

if len(self._payments) == 0:
print("Payments not calculated.")
return

header = [ "PAY_NUM", "PAY_DATE", "NOTIONAL",
header = [ "PAY_NUM", "PAY_DATE", "NOTIONAL",
"IBOR", "PMNT", "DF", "PV", "CUM_PV"]

rows = []
Expand Down

0 comments on commit 8314fd4

Please sign in to comment.