diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 05fb508..caaa548 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,14 @@ Changelog ========= +dev +--- + +**Improvements** + +- Lower the minimum supported ``front`` value for OHLC data from ``1`` to ``0`` + + 0.14.3 ------ diff --git a/energyquantified/api/ohlc.py b/energyquantified/api/ohlc.py index d3f933d..625cf64 100644 --- a/energyquantified/api/ohlc.py +++ b/energyquantified/api/ohlc.py @@ -61,7 +61,7 @@ def load( self._add_date(params, "begin", begin, required=True) self._add_date(params, "end", end, required=True) self._add_contract_period(params, "period", period) - self._add_int(params, "front", front, min=1) + self._add_int(params, "front", front, min=0) self._add_date(params, "delivery", delivery) # Additional checks has_period = "period" in params @@ -232,7 +232,7 @@ def load_front_as_timeseries( self._add_date(params, "begin", begin, required=True) self._add_date(params, "end", end, required=True) self._add_contract_period(params, "period", period, required=True) - self._add_int(params, "front", front, min=1, required=True) + self._add_int(params, "front", front, min=0, required=True) self._add_fill(params, "fill", fill) self._add_str(params, "unit", unit) # Build URL