mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
feat: more config schema descriptions
This commit is contained in:
parent
abde1a1c39
commit
ca47e3489c
|
@ -438,26 +438,64 @@ CONF_SCHEMA = {
|
||||||
"properties": {"block_bad_exchanges": {"type": "boolean"}},
|
"properties": {"block_bad_exchanges": {"type": "boolean"}},
|
||||||
},
|
},
|
||||||
"pairlists": {
|
"pairlists": {
|
||||||
|
"description": "Configuration for pairlists.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"method": {"type": "string", "enum": AVAILABLE_PAIRLISTS},
|
"method": {
|
||||||
|
"description": "Method used for generating the pairlist.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": AVAILABLE_PAIRLISTS,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"required": ["method"],
|
"required": ["method"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"protections": {
|
"protections": {
|
||||||
|
"description": "Configuration for various protections.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"method": {"type": "string", "enum": AVAILABLE_PROTECTIONS},
|
"method": {
|
||||||
"stop_duration": {"type": "number", "minimum": 0.0},
|
"description": "Method used for the protection.",
|
||||||
"stop_duration_candles": {"type": "number", "minimum": 0},
|
"type": "string",
|
||||||
"trade_limit": {"type": "number", "minimum": 1},
|
"enum": AVAILABLE_PROTECTIONS,
|
||||||
"lookback_period": {"type": "number", "minimum": 1},
|
},
|
||||||
"lookback_period_candles": {"type": "number", "minimum": 1},
|
"stop_duration": {
|
||||||
|
"description": (
|
||||||
|
"Duration to lock the pair after a protection is triggered, "
|
||||||
|
"in minutes."
|
||||||
|
),
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0.0,
|
||||||
|
},
|
||||||
|
"stop_duration_candles": {
|
||||||
|
"description": (
|
||||||
|
"Duration to lock the pair after a protection is triggered, in "
|
||||||
|
"number of candles."
|
||||||
|
),
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0,
|
||||||
|
},
|
||||||
|
"trade_limit": {
|
||||||
|
"description": "Minimum number of trades required during lookback period.",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1,
|
||||||
|
},
|
||||||
|
"lookback_period": {
|
||||||
|
"description": "Period to look back for protection checks, in minutes.",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1,
|
||||||
|
},
|
||||||
|
"lookback_period_candles": {
|
||||||
|
"description": (
|
||||||
|
"Period to look back for protection checks, in number " "of candles."
|
||||||
|
),
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"required": ["method"],
|
"required": ["method"],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user