for testing feature: percent from top of book or from ask/bid

This commit is contained in:
Nullart
2018-06-17 15:40:38 +08:00
parent e5ad5a6aaa
commit 735356197d
4 changed files with 18 additions and 6 deletions

View File

@@ -73,7 +73,8 @@ CONF_SCHEMA = {
'exclusiveMaximum': False
},
'use_book_order': {'type': 'boolean'},
'book_order_top': {'type': 'number', 'maximum': 20, 'minimum': 1}
'book_order_top': {'type': 'number', 'maximum': 20, 'minimum': 1},
'percent_from_top' : {'type': 'number', 'minimum': 0}
},
'required': ['ask_last_balance','use_book_order']
},