TIF added to constants and json full
This commit is contained in:
@@ -15,6 +15,7 @@ DEFAULT_DB_DRYRUN_URL = 'sqlite://'
|
||||
UNLIMITED_STAKE_AMOUNT = 'unlimited'
|
||||
REQUIRED_ORDERTYPES = ['buy', 'sell', 'stoploss']
|
||||
ORDERTYPE_POSSIBILITIES = ['limit', 'market']
|
||||
ORDERTIF_POSSIBILITIES = ['gtc', 'aon', 'fok', 'ioc']
|
||||
|
||||
|
||||
TICKER_INTERVAL_MINUTES = {
|
||||
@@ -113,6 +114,14 @@ CONF_SCHEMA = {
|
||||
},
|
||||
'required': ['buy', 'sell', 'stoploss']
|
||||
},
|
||||
'order_time_in_force': {
|
||||
'type': 'object',
|
||||
'properties': {
|
||||
'buy': {'type': 'string', 'enum': ORDERTIF_POSSIBILITIES},
|
||||
'sell': {'type': 'string', 'enum': ORDERTIF_POSSIBILITIES}
|
||||
},
|
||||
'required': ['buy', 'sell']
|
||||
},
|
||||
'exchange': {'$ref': '#/definitions/exchange'},
|
||||
'edge': {'$ref': '#/definitions/edge'},
|
||||
'experimental': {
|
||||
|
Reference in New Issue
Block a user