documentation updates & bug fixes in unfulfilled timeout

This commit is contained in:
Nullart
2018-06-14 18:49:43 +08:00
parent 22743be173
commit 1ed13f5784
5 changed files with 62 additions and 59 deletions

View File

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

View File

@@ -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)

View File

@@ -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>'\