chore: improved logging, don't ignore end date
This commit is contained in:
@@ -387,7 +387,7 @@ class Binance(Exchange):
|
|||||||
async def _async_get_trade_history_id(
|
async def _async_get_trade_history_id(
|
||||||
self, pair: str, until: int, since: int, from_id: str | None = None
|
self, pair: str, until: int, since: int, from_id: str | None = None
|
||||||
) -> tuple[str, list[list]]:
|
) -> tuple[str, list[list]]:
|
||||||
logger.info(f"Fetching trades from Binance, {from_id=}, {since=}")
|
logger.info(f"Fetching trades from Binance, {from_id=}, {since=}, {until=}")
|
||||||
|
|
||||||
if not self._config["exchange"].get("only_from_ccxt", False):
|
if not self._config["exchange"].get("only_from_ccxt", False):
|
||||||
if from_id is None or not since:
|
if from_id is None or not since:
|
||||||
@@ -405,7 +405,7 @@ class Binance(Exchange):
|
|||||||
CandleType.SPOT,
|
CandleType.SPOT,
|
||||||
pair,
|
pair,
|
||||||
since_ms=since,
|
since_ms=since,
|
||||||
until_ms=None,
|
until_ms=until,
|
||||||
markets=self.markets,
|
markets=self.markets,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user