TIF added to constants and json full
This commit is contained in:
parent
890cef88ab
commit
ba20b1b5c7
@ -38,6 +38,10 @@
|
|||||||
"sell": "limit",
|
"sell": "limit",
|
||||||
"stoploss": "market"
|
"stoploss": "market"
|
||||||
},
|
},
|
||||||
|
"order_time_in_force": {
|
||||||
|
"buy": "gtc",
|
||||||
|
"sell": "gtc",
|
||||||
|
},
|
||||||
"exchange": {
|
"exchange": {
|
||||||
"name": "bittrex",
|
"name": "bittrex",
|
||||||
"key": "your_exchange_key",
|
"key": "your_exchange_key",
|
||||||
|
@ -15,6 +15,7 @@ DEFAULT_DB_DRYRUN_URL = 'sqlite://'
|
|||||||
UNLIMITED_STAKE_AMOUNT = 'unlimited'
|
UNLIMITED_STAKE_AMOUNT = 'unlimited'
|
||||||
REQUIRED_ORDERTYPES = ['buy', 'sell', 'stoploss']
|
REQUIRED_ORDERTYPES = ['buy', 'sell', 'stoploss']
|
||||||
ORDERTYPE_POSSIBILITIES = ['limit', 'market']
|
ORDERTYPE_POSSIBILITIES = ['limit', 'market']
|
||||||
|
ORDERTIF_POSSIBILITIES = ['gtc', 'aon', 'fok', 'ioc']
|
||||||
|
|
||||||
|
|
||||||
TICKER_INTERVAL_MINUTES = {
|
TICKER_INTERVAL_MINUTES = {
|
||||||
@ -113,6 +114,14 @@ CONF_SCHEMA = {
|
|||||||
},
|
},
|
||||||
'required': ['buy', 'sell', 'stoploss']
|
'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'},
|
'exchange': {'$ref': '#/definitions/exchange'},
|
||||||
'edge': {'$ref': '#/definitions/edge'},
|
'edge': {'$ref': '#/definitions/edge'},
|
||||||
'experimental': {
|
'experimental': {
|
||||||
|
Loading…
Reference in New Issue
Block a user