aboutsummaryrefslogtreecommitdiffstats
path: root/python/markit/rates.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/markit/rates.py')
-rw-r--r--python/markit/rates.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/markit/rates.py b/python/markit/rates.py
index e3bd6469..051e3ec0 100644
--- a/python/markit/rates.py
+++ b/python/markit/rates.py
@@ -19,10 +19,10 @@ def downloadMarkitIRData(download_date=datetime.date.today(),
basedir = os.path.join(os.environ['DATA_DIR'], "Yield Curves")
filename = f"InterestRates_{currency}_{effective_date:%Y%m%d}"
if not os.path.exists(os.path.join(basedir, filename + '.xml')):
- r = requests.get(f'http://www.markit.com/news/{filename}.zip')
+ r = requests.post(f'http://www.markit.com/news/{filename}.zip')
if "zip" in r.headers['content-type']:
with zipfile.ZipFile(BytesIO(r.content)) as z:
- z.extractall(path = os.path.join(os.environ['DATA_DIR'], "Yield Curves"))
+ z.extractall(path=os.path.join(os.environ['DATA_DIR'], "Yield Curves"))
else:
return downloadMarkitIRData(download_date - datetime.timedelta(days=1))