summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@serenitascapital.com>2016-11-07 13:24:02 -0500
committerGuillaume Horel <guillaume.horel@serenitascapital.com>2016-11-07 13:24:02 -0500
commit09c42da64a82571af543ab33ff5a3431ae7e8704 (patch)
tree53793b499a890d43e9ce67ed161401ddbb208e1b
parentab641ed7b0c1edde76efccbb22febf2fdc6d8f3e (diff)
downloadpyisda-09c42da64a82571af543ab33ff5a3431ae7e8704.tar.gz
style
-rw-r--r--pyisda/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyisda/utils.py b/pyisda/utils.py
index 049832a..a2b1e5e 100644
--- a/pyisda/utils.py
+++ b/pyisda/utils.py
@@ -87,8 +87,8 @@ def build_yc(trade_date, ql_curve = False):
periods_swaps, rates_swaps = zip(*markit_data['swaps'])
types = 'M' * len(periods) + 'S' * len(periods_swaps)
rates = array.array('d', rates)
- periods.extend(periods_swaps)
- rates.extend(rates_swaps)
+ periods += periods_swaps)
+ rates += rates_swaps)
yc = YieldCurve(trade_date, types, periods, rates, 'ACT/360', '6M',
'3M', '30/360', 'ACT/360', BadDay.MODIFIED)
return yc