fix flake

This commit is contained in:
hroff-1902 2019-02-10 22:01:46 +03:00 committed by GitHub
parent 14d6cdf9b2
commit 4dffb17dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,8 @@ def parse_ticker_dataframe(ticker: list, ticker_interval: str,
# Some exchanges return int values for volume and even for ohlc. # Some exchanges return int values for volume and even for ohlc.
# Convert them since TA-LIB indicators used in the strategy assume floats and fail with exception... # Convert them since TA-LIB indicators used in the strategy assume floats and fail with exception...
frame = frame.astype(dtype={'open': 'float', 'high': 'float', 'low': 'float', 'close': 'float', 'volume': 'float'}) frame = frame.astype(dtype={'open': 'float', 'high': 'float', 'low': 'float', 'close': 'float',
'volume': 'float'})
# group by index and aggregate results to eliminate duplicate ticks # group by index and aggregate results to eliminate duplicate ticks
frame = frame.groupby(by='date', as_index=False, sort=True).agg({ frame = frame.groupby(by='date', as_index=False, sort=True).agg({