Skip to content

Commit 765a0b5

Browse files
committed
fix: api-pairlist bug with candle-type-def
1 parent 4919d69 commit 765a0b5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

freqtrade/plugins/pairlist/MarketCapPairList.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def filter_pairlist(self, pairlist: list[str], tickers: dict) -> list[str]:
190190
if marketcap_list:
191191
filtered_pairlist = []
192192

193-
market = self._config["trading_mode"]
193+
market = self._exchange._config["trading_mode"]
194194
pair_format = f"{self._stake_currency.upper()}"
195195
if market == "futures":
196196
pair_format += f":{self._stake_currency.upper()}"

freqtrade/rpc/api_server/api_pairlists.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def __run_pairlist(job_id: str, config_loc: Config):
5454

5555
with FtNoDBContext():
5656
exchange = get_exchange(config_loc)
57+
config_loc["candle_type_def"] = exchange._config["candle_type_def"]
5758
pairlists = PairListManager(exchange, config_loc)
5859
pairlists.refresh_pairlist()
5960
ApiBG.jobs[job_id]["result"] = {

0 commit comments

Comments
 (0)