Update parameter sequence to make more sense

This commit is contained in:
Matthias
2023-07-09 11:09:59 +02:00
parent 4d4ec11a8a
commit 5da5369ca4
+18 -11
View File
@@ -90,6 +90,18 @@ class RemotePairList(IPairList):
@staticmethod @staticmethod
def available_parameters() -> Dict[str, PairlistParameter]: def available_parameters() -> Dict[str, PairlistParameter]:
return { return {
"pairlist_url": {
"type": "string",
"default": "",
"description": "URL to fetch pairlist from",
"help": "URL to fetch pairlist from",
},
"number_assets": {
"type": "number",
"default": 30,
"description": "Number of assets",
"help": "Number of assets to use from the pairlist.",
},
"mode": { "mode": {
"type": "option", "type": "option",
"default": "whitelist", "default": "whitelist",
@@ -97,17 +109,12 @@ class RemotePairList(IPairList):
"description": "Pairlist mode", "description": "Pairlist mode",
"help": "Should this pairlist operate as a whitelist or blacklist?", "help": "Should this pairlist operate as a whitelist or blacklist?",
}, },
"number_assets": { "processing_mode": {
"type": "number", "type": "option",
"default": 0, "default": "filter",
"description": "Number of assets", "options": ["filter", "append"],
"help": "Number of assets to use from the pairlist.", "description": "Processing mode",
}, "help": "Append pairs to incomming pairlist or filter them?",
"pairlist_url": {
"type": "string",
"default": "",
"description": "URL to fetch pairlist from",
"help": "URL to fetch pairlist from",
}, },
**IPairList.refresh_period_parameter(), **IPairList.refresh_period_parameter(),
"keep_pairlist_on_failure": { "keep_pairlist_on_failure": {