Make get_signals async. This should speed up create_trade calls by at least 10x. (#223)

This commit is contained in:
Pan Long
2017-12-25 14:01:01 +08:00
committed by Michael Egger
parent 433bf409f4
commit 6768658300
3 changed files with 19 additions and 3 deletions

View File

@@ -144,6 +144,9 @@ def get_signal(pair: str, signal: SignalType) -> bool:
except ValueError as ex:
logger.warning('Unable to analyze ticker for pair %s: %s', pair, str(ex))
return False
except Exception:
logger.exception('Unexpected error when analyzing ticker for pair %s.', pair)
return False
if dataframe.empty:
return False