Removes nonsensical if gate

This commit is contained in:
Joe Schr
2024-02-12 09:31:37 +01:00
parent 0a4da26f2d
commit e8714d52cd

View File

@@ -2471,8 +2471,6 @@ class Exchange:
# Skip last trade by default since its the key for the next call
x = slice(None, -1) if has_overlap else slice(None)
if not until and not stop_on_from_id:
raise OperationalException("stop_on_from_id must be set if until is not set")
if not from_id or not self._valid_trade_pagination_id(pair, from_id):
# Fetch first elements using timebased method to get an ID to paginate on
# Depending on the Exchange, this can introduce a drift at the start of the interval