fix: api-pairlist bug with candle-type-def
This commit is contained in:
@@ -190,7 +190,7 @@ class MarketCapPairList(IPairList):
|
|||||||
if marketcap_list:
|
if marketcap_list:
|
||||||
filtered_pairlist = []
|
filtered_pairlist = []
|
||||||
|
|
||||||
market = self._config["trading_mode"]
|
market = self._exchange._config["trading_mode"]
|
||||||
pair_format = f"{self._stake_currency.upper()}"
|
pair_format = f"{self._stake_currency.upper()}"
|
||||||
if market == "futures":
|
if market == "futures":
|
||||||
pair_format += f":{self._stake_currency.upper()}"
|
pair_format += f":{self._stake_currency.upper()}"
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ def __run_pairlist(job_id: str, config_loc: Config):
|
|||||||
|
|
||||||
with FtNoDBContext():
|
with FtNoDBContext():
|
||||||
exchange = get_exchange(config_loc)
|
exchange = get_exchange(config_loc)
|
||||||
|
config_loc["candle_type_def"] = exchange._config["candle_type_def"]
|
||||||
pairlists = PairListManager(exchange, config_loc)
|
pairlists = PairListManager(exchange, config_loc)
|
||||||
pairlists.refresh_pairlist()
|
pairlists.refresh_pairlist()
|
||||||
ApiBG.jobs[job_id]["result"] = {
|
ApiBG.jobs[job_id]["result"] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user