TIF added to constants and json full

This commit is contained in:
misagh 2018-11-25 21:05:25 +01:00
parent 890cef88ab
commit ba20b1b5c7
2 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,10 @@
"sell": "limit",
"stoploss": "market"
},
"order_time_in_force": {
"buy": "gtc",
"sell": "gtc",
},
"exchange": {
"name": "bittrex",
"key": "your_exchange_key",

View File

@ -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': {