diff --git a/pyproject.toml b/pyproject.toml index 5853e56..925e486 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ description = "A fast algo-trading platform with support for machine learning ba readme = "README.md" requires-python = ">=3.10, <3.12" classifiers = [ - "Development Status :: 3 - Beta", + "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 3", diff --git a/roboquant/monetary.py b/roboquant/monetary.py index 9af852f..d9fc3dd 100644 --- a/roboquant/monetary.py +++ b/roboquant/monetary.py @@ -62,7 +62,7 @@ class ECBConversion(CurrencyConverter): __file_name = Path.home() / ".roboquant" / "eurofxref-hist.csv" def __init__(self): - self.rates: Dict[Currency, List[Any]] = {EUR: [(datetime.fromisoformat("2000-01-01T15:00:00Z"), 1.0)]} + self.rates: Dict[Currency, List[Any]] = {EUR: [(datetime.fromisoformat("2000-01-01T15:00:00+00:00"), 1.0)]} if not self.exists(): self.download() self.parse() @@ -90,7 +90,7 @@ def parse(self): header_len = len(currencies) for row in csv_reader: - d = datetime.fromisoformat(row[0] + "T15:00:00Z") + d = datetime.fromisoformat(row[0] + "T15:00:00+00:00") for idx in range(header_len): v = row[idx + 1] if v and v != "N/A": diff --git a/tests/unit/test_monetary.py b/tests/unit/test_monetary.py index 02a7bc7..cff863e 100644 --- a/tests/unit/test_monetary.py +++ b/tests/unit/test_monetary.py @@ -55,7 +55,7 @@ def test_static_conversion(self): Amount.register_converter(NoConversion()) def test_ecb_conversion(self): - now = datetime.fromisoformat("2020-01-01T00:00:00Z") + now = datetime.fromisoformat("2020-01-01T00:00:00+00:00") converter = ECBConversion() Amount.register_converter(converter) amt1 = Amount(GBP, 100.0)