Upload folder using huggingface_hub
Browse files- data_load.py +1 -2
data_load.py
CHANGED
|
@@ -49,8 +49,7 @@ def load_interest_rate_curve(date_obj: date, currency: Literal['USD', 'JPY', 'EU
|
|
| 49 |
Returns None if the interest rates cannot be found
|
| 50 |
"""
|
| 51 |
try:
|
| 52 |
-
|
| 53 |
-
url = f'https://rfr.ihsmarkit.com/InterestRates_{currency}_{date_obj.strftime('%Y%m%d')}.zip?{os.environ['ir_curve_email']}'
|
| 54 |
req = requests.get(url)
|
| 55 |
zip = ZipFile(BytesIO(req.content))
|
| 56 |
file = f'InterestRates_{currency}_{date_obj.strftime('%Y%m%d')}.xml'
|
|
|
|
| 49 |
Returns None if the interest rates cannot be found
|
| 50 |
"""
|
| 51 |
try:
|
| 52 |
+
url = f'https://rfr.ihsmarkit.com/InterestRates_{currency}_{date_obj.strftime('%Y%m%d')}.zip?email={os.environ['ir_curve_email']}'
|
|
|
|
| 53 |
req = requests.get(url)
|
| 54 |
zip = ZipFile(BytesIO(req.content))
|
| 55 |
file = f'InterestRates_{currency}_{date_obj.strftime('%Y%m%d')}.xml'
|