Better exchange logging
This commit is contained in:
parent
b1e6662c11
commit
123a556ec8
@ -887,14 +887,20 @@ class Exchange:
|
|||||||
Async wrapper handling downloading trades using either time or id based methods.
|
Async wrapper handling downloading trades using either time or id based methods.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
logger.debug(f"_async_get_trade_history(), pair: {pair}, "
|
||||||
|
f"since: {since}, until: {until}, from_id: {from_id}")
|
||||||
|
|
||||||
|
if not until:
|
||||||
|
exchange_msec = ccxt.Exchange.milliseconds()
|
||||||
|
logger.debug(f"Exchange milliseconds: {exchange_msec}")
|
||||||
|
until = exchange_msec
|
||||||
|
|
||||||
if self._trades_pagination == 'time':
|
if self._trades_pagination == 'time':
|
||||||
return await self._async_get_trade_history_time(
|
return await self._async_get_trade_history_time(
|
||||||
pair=pair, since=since,
|
pair=pair, since=since, until=until)
|
||||||
until=until or ccxt.Exchange.milliseconds())
|
|
||||||
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,
|
pair=pair, since=since, until=until, from_id=from_id
|
||||||
until=until or ccxt.Exchange.milliseconds(), from_id=from_id
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
raise OperationalException(f"Exchange {self.name} does use neither time, "
|
raise OperationalException(f"Exchange {self.name} does use neither time, "
|
||||||
|
Loading…
Reference in New Issue
Block a user