mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
fix: Improve error message for download-data edgecase
hyperliquid doesn't provide historic data, neither klines nor trades. This made the error message missleading. closes #11270
This commit is contained in:
@@ -102,3 +102,16 @@ def test_download_data_main_data_invalid(mocker):
|
||||
)
|
||||
with pytest.raises(OperationalException, match=r"Historic klines not available for .*"):
|
||||
download_data_main(config)
|
||||
|
||||
patch_exchange(mocker, exchange="hyperliquid")
|
||||
mocker.patch(f"{EXMS}.get_markets", return_value={"ETH/USDC": {}})
|
||||
config2 = setup_utils_configuration({"exchange": "hyperliquid"}, RunMode.UTIL_EXCHANGE)
|
||||
config2.update(
|
||||
{
|
||||
"days": 20,
|
||||
"pairs": ["ETH/USDC", "XRP/USDC"],
|
||||
"timeframes": ["5m", "1h"],
|
||||
}
|
||||
)
|
||||
with pytest.raises(OperationalException, match=r"Historic data not available for .*"):
|
||||
download_data_main(config2)
|
||||
|
||||
Reference in New Issue
Block a user