fix: api-pairlist bug with candle-type-def

This commit is contained in:
Matthias
2025-08-19 21:07:41 +02:00
parent 4919d6944e
commit 765a0b52cb
2 changed files with 2 additions and 1 deletions

View File

@@ -190,7 +190,7 @@ class MarketCapPairList(IPairList):
if marketcap_list:
filtered_pairlist = []
market = self._config["trading_mode"]
market = self._exchange._config["trading_mode"]
pair_format = f"{self._stake_currency.upper()}"
if market == "futures":
pair_format += f":{self._stake_currency.upper()}"

View File

@@ -54,6 +54,7 @@ def __run_pairlist(job_id: str, config_loc: Config):
with FtNoDBContext():
exchange = get_exchange(config_loc)
config_loc["candle_type_def"] = exchange._config["candle_type_def"]
pairlists = PairListManager(exchange, config_loc)
pairlists.refresh_pairlist()
ApiBG.jobs[job_id]["result"] = {