fix: remove unused stop_on_from_id

This commit is contained in:
Joe Schr
2024-03-28 15:26:28 +01:00
parent f663b53ac9
commit d226e7054c
+2 -7
View File
@@ -2508,8 +2508,7 @@ class Exchange:
async def _async_get_trade_history_id(self, pair: str, async def _async_get_trade_history_id(self, pair: str,
until: Optional[int], until: Optional[int],
since: Optional[int] = None, since: Optional[int] = None,
from_id: Optional[str] = None, from_id: Optional[str] = None) -> Tuple[str, List[List]]: # noqa
stop_on_from_id: Optional[bool] = True) -> Tuple[str, List[List]]: # noqa
""" """
Asyncronously gets trade history using fetch_trades Asyncronously gets trade history using fetch_trades
use this when exchange uses id-based iteration (check `self._trades_pagination`) use this when exchange uses id-based iteration (check `self._trades_pagination`)
@@ -2602,7 +2601,6 @@ class Exchange:
since: Optional[int] = None, since: Optional[int] = None,
until: Optional[int] = None, until: Optional[int] = None,
from_id: Optional[str] = None, from_id: Optional[str] = None,
stop_on_from_id: Optional[bool] = True,
) -> Tuple[str, List[List]]: ) -> Tuple[str, List[List]]:
""" """
Async wrapper handling downloading trades using either time or id based methods. Async wrapper handling downloading trades using either time or id based methods.
@@ -2621,7 +2619,6 @@ class Exchange:
elif self._trades_pagination == 'id': elif self._trades_pagination == 'id':
return await self._async_get_trade_history_id( return await self._async_get_trade_history_id(
pair=pair, since=since, until=until, from_id=from_id, pair=pair, since=since, until=until, from_id=from_id,
stop_on_from_id=stop_on_from_id
) )
else: else:
raise OperationalException(f"Exchange {self.name} does use neither time, " raise OperationalException(f"Exchange {self.name} does use neither time, "
@@ -2631,7 +2628,6 @@ class Exchange:
since: Optional[int] = None, since: Optional[int] = None,
until: Optional[int] = None, until: Optional[int] = None,
from_id: Optional[str] = None, from_id: Optional[str] = None,
stop_on_from_id: Optional[bool] = True
) -> Tuple[str, List]: ) -> Tuple[str, List]:
""" """
Get trade history data using asyncio. Get trade history data using asyncio.
@@ -2651,8 +2647,7 @@ class Exchange:
pair=pair, pair=pair,
since=since, since=since,
until=until, until=until,
from_id=from_id, from_id=from_id))
stop_on_from_id=stop_on_from_id))
for sig in [signal.SIGINT, signal.SIGTERM]: for sig in [signal.SIGINT, signal.SIGTERM]:
try: try: