Skip to content

Commit

Permalink
Enhance validation constants
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Dec 28, 2019
1 parent cd4466a commit c3064df
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions freqtrade/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
ORDERTYPE_POSSIBILITIES = ['limit', 'market']
ORDERTIF_POSSIBILITIES = ['gtc', 'fok', 'ioc']
AVAILABLE_PAIRLISTS = ['StaticPairList', 'VolumePairList', 'PrecisionFilter', 'PriceFilter']
AVAILABLE_DATAHANDLERS = ['json', 'jsongz']
DRY_RUN_WALLET = 1000
MATH_CLOSE_PREC = 1e-14 # Precision used for float comparisons

Expand Down Expand Up @@ -213,6 +214,16 @@
'process_throttle_secs': {'type': 'integer'},
'interval': {'type': 'integer'},
'sd_notify': {'type': 'boolean'},
'dataformat_ohlcv': {
'type': 'string',
'enum': AVAILABLE_DATAHANDLERS,
'default': 'json'
},
'dataformat_trades': {
'type': 'string',
'enum': AVAILABLE_DATAHANDLERS,
'default': 'jsongz'
}
}
}
},
Expand Down Expand Up @@ -280,5 +291,6 @@
'unfilledtimeout',
'stoploss',
'minimal_roi',
'internals',
]
}

0 comments on commit c3064df

Please sign in to comment.