aboutsummaryrefslogtreecommitdiffstats
path: root/python/markit
diff options
context:
space:
mode:
Diffstat (limited to 'python/markit')
-rw-r--r--python/markit/rates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/markit/rates.py b/python/markit/rates.py
index 990a95e4..147ced4f 100644
--- a/python/markit/rates.py
+++ b/python/markit/rates.py
@@ -14,7 +14,7 @@ def downloadMarkitIRData(download_date = datetime.date.today(),
## T+1 rates are published in the evening
effective_date = download_date + datetime.timedelta(days = 1)
basedir = os.path.join(root, "data", "Yield Curves")
- filename = "InterestRates_{0}_{1:%Y%m%d}".format(currency, download_date)
+ filename = "InterestRates_{0}_{1:%Y%m%d}".format(currency, effective_date)
if not os.path.exists(os.path.join(basedir, filename + '.xml')):
r = requests.get('http://www.markit.com/news/{0}.zip'.format(filename))
if "zip" in r.headers['content-type']: