documentation updates & bug fixes in unfulfilled timeout
This commit is contained in:
@@ -58,10 +58,10 @@ CONF_SCHEMA = {
|
||||
'unfilledtimeout': {
|
||||
'type': 'object',
|
||||
'properties': {
|
||||
'use_book_order': {'type': 'boolean'},
|
||||
'buy': {'type': 'number', 'minimum': 3},
|
||||
'sell': {'type': 'number', 'minimum': 10}
|
||||
}
|
||||
},
|
||||
'required': ['buy','sell']
|
||||
},
|
||||
'bid_strategy': {
|
||||
'type': 'object',
|
||||
@@ -75,7 +75,7 @@ CONF_SCHEMA = {
|
||||
'use_book_order': {'type': 'boolean'},
|
||||
'book_order_top': {'type': 'number', 'maximum': 20, 'minimum': 1}
|
||||
},
|
||||
'required': ['ask_last_balance']
|
||||
'required': ['ask_last_balance','use_book_order']
|
||||
},
|
||||
'ask_strategy': {
|
||||
'type': 'object',
|
||||
@@ -83,7 +83,8 @@ CONF_SCHEMA = {
|
||||
'use_book_order': {'type': 'boolean'},
|
||||
'book_order_min': {'type': 'number', 'minimum': 1},
|
||||
'book_order_max': {'type': 'number', 'minimum': 1}
|
||||
}
|
||||
},
|
||||
'required': ['use_book_order']
|
||||
},
|
||||
'exchange': {'$ref': '#/definitions/exchange'},
|
||||
'experimental': {
|
||||
|
||||
@@ -164,8 +164,9 @@ class FreqtradeBot(object):
|
||||
|
||||
if 'unfilledtimeout' in self.config:
|
||||
# Check and handle any timed out open orders
|
||||
self.check_handle_timedout()
|
||||
Trade.session.flush()
|
||||
if not self.config['dry_run']:
|
||||
self.check_handle_timedout()
|
||||
Trade.session.flush()
|
||||
|
||||
except TemporaryError as error:
|
||||
logger.warning('%s, retrying in 30 seconds...', error)
|
||||
|
||||
@@ -180,7 +180,8 @@ class Telegram(RPC):
|
||||
headers=[
|
||||
'Day',
|
||||
'Profit {}'.format(self._config['stake_currency']),
|
||||
'Profit {}'.format(self._config['fiat_display_currency'])
|
||||
'Profit {}'.format(self._config['fiat_display_currency']),
|
||||
'Trades'
|
||||
],
|
||||
tablefmt='simple')
|
||||
message = '<b>Daily Profit over the last {} days</b>:\n<pre>{}</pre>'\
|
||||
|
||||
Reference in New Issue
Block a user