ruff format: orderflow / public trades

This commit is contained in:
Joe Schr
2024-05-15 17:09:32 +02:00
parent 6c696e14f0
commit a56faf503b
13 changed files with 420 additions and 314 deletions

View File

@@ -674,8 +674,9 @@ def test_download_trades_history(
mocker.patch(f"{EXMS}.get_historic_trades", MagicMock(side_effect=ValueError))
caplog.clear()
assert not _download_trades_history(data_handler=data_handler, exchange=exchange,
pair='ETH/BTC', trading_mode=TradingMode.SPOT)
assert not _download_trades_history(
data_handler=data_handler, exchange=exchange, pair="ETH/BTC", trading_mode=TradingMode.SPOT
)
assert log_has_re('Failed to download and store historic trades for pair: "ETH/BTC".*', caplog)
file2 = tmp_path / "XRP_ETH-trades.json.gz"