aboutsummaryrefslogtreecommitdiffstats
path: root/python/index_data.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/index_data.py')
-rw-r--r--python/index_data.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/index_data.py b/python/index_data.py
index 62cffeb2..21e202b6 100644
--- a/python/index_data.py
+++ b/python/index_data.py
@@ -162,7 +162,8 @@ def get_singlenames_curves(index_type, series, trade_date):
end_dates = roll_date(trade_date, [1, 2, 3, 4, 5, 7, 10], nd_array=True)
sn_quotes = get_singlenames_quotes("{}{}".format(index_type.lower(), series),
trade_date.date())
- jp_yc = get_curve(trade_date)
+ currency = "EUR" if index_type in ["XO", "EU"] else "USD"
+ jp_yc = get_curve(trade_date, currency)
start_date = previous_twentieth(trade_date)
step_in_date = trade_date + datetime.timedelta(days=1)
value_date = pd.Timestamp(trade_date) + 3* BDay()