Merge pull request #1526 from freqtrade/pyup/scheduled-update-2019-01-30
Scheduled daily dependency update on wednesday
This commit is contained in:
commit
10e548dcab
@ -230,6 +230,6 @@ def download_pair_history(datadir: Optional[Path],
|
|||||||
misc.file_dump_json(filename, data)
|
misc.file_dump_json(filename, data)
|
||||||
return True
|
return True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
logger.info('Failed to download the pair: "%s", Interval: %s',
|
logger.info('Failed to download the pair: "%s", Interval: %s',
|
||||||
pair, tick_interval)
|
pair, tick_interval)
|
||||||
return False
|
return False
|
||||||
|
@ -237,7 +237,7 @@ class Exchange(object):
|
|||||||
f'Exchange {self.name} does not support market orders.')
|
f'Exchange {self.name} does not support market orders.')
|
||||||
|
|
||||||
if order_types.get('stoploss_on_exchange'):
|
if order_types.get('stoploss_on_exchange'):
|
||||||
if self.name is not 'Binance':
|
if self.name != 'Binance':
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
'On exchange stoploss is not supported for %s.' % self.name
|
'On exchange stoploss is not supported for %s.' % self.name
|
||||||
)
|
)
|
||||||
@ -247,7 +247,7 @@ class Exchange(object):
|
|||||||
Checks if order time in force configured in strategy/config are supported
|
Checks if order time in force configured in strategy/config are supported
|
||||||
"""
|
"""
|
||||||
if any(v != 'gtc' for k, v in order_time_in_force.items()):
|
if any(v != 'gtc' for k, v in order_time_in_force.items()):
|
||||||
if self.name is not 'Binance':
|
if self.name != 'Binance':
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
f'Time in force policies are not supporetd for {self.name} yet.')
|
f'Time in force policies are not supporetd for {self.name} yet.')
|
||||||
|
|
||||||
|
@ -820,7 +820,7 @@ class FreqtradeBot(object):
|
|||||||
# we consider the sell price stop price
|
# we consider the sell price stop price
|
||||||
if self.config.get('dry_run', False) and sell_type == 'stoploss' \
|
if self.config.get('dry_run', False) and sell_type == 'stoploss' \
|
||||||
and self.strategy.order_types['stoploss_on_exchange']:
|
and self.strategy.order_types['stoploss_on_exchange']:
|
||||||
limit = trade.stop_loss
|
limit = trade.stop_loss
|
||||||
|
|
||||||
# First cancelling stoploss on exchange ...
|
# First cancelling stoploss on exchange ...
|
||||||
if self.strategy.order_types.get('stoploss_on_exchange') and trade.stoploss_order_id:
|
if self.strategy.order_types.get('stoploss_on_exchange') and trade.stoploss_order_id:
|
||||||
|
@ -663,8 +663,8 @@ def test_backtest_alternate_buy_sell(default_conf, fee, mocker):
|
|||||||
def test_backtest_multi_pair(default_conf, fee, mocker):
|
def test_backtest_multi_pair(default_conf, fee, mocker):
|
||||||
|
|
||||||
def evaluate_result_multi(results, freq, max_open_trades):
|
def evaluate_result_multi(results, freq, max_open_trades):
|
||||||
# Find overlapping trades by expanding each trade once per period
|
# Find overlapping trades by expanding each trade once per period
|
||||||
# and then counting overlaps
|
# and then counting overlaps
|
||||||
dates = [pd.Series(pd.date_range(row[1].open_time, row[1].close_time, freq=freq))
|
dates = [pd.Series(pd.date_range(row[1].open_time, row[1].close_time, freq=freq))
|
||||||
for row in results[['open_time', 'close_time']].iterrows()]
|
for row in results[['open_time', 'close_time']].iterrows()]
|
||||||
deltas = [len(x) for x in dates]
|
deltas = [len(x) for x in dates]
|
||||||
|
@ -117,7 +117,7 @@ def test_fiat_convert_get_price(mocker):
|
|||||||
assert fiat_convert._pairs[0].crypto_symbol == 'BTC'
|
assert fiat_convert._pairs[0].crypto_symbol == 'BTC'
|
||||||
assert fiat_convert._pairs[0].fiat_symbol == 'USD'
|
assert fiat_convert._pairs[0].fiat_symbol == 'USD'
|
||||||
assert fiat_convert._pairs[0].price == 28000.0
|
assert fiat_convert._pairs[0].price == 28000.0
|
||||||
assert fiat_convert._pairs[0]._expiration is not 0
|
assert fiat_convert._pairs[0]._expiration != 0
|
||||||
assert len(fiat_convert._pairs) == 1
|
assert len(fiat_convert._pairs) == 1
|
||||||
|
|
||||||
# Verify the cached is used
|
# Verify the cached is used
|
||||||
|
@ -364,7 +364,7 @@ def test_deprecate_populate_indicators(result):
|
|||||||
in str(w[-1].message)
|
in str(w[-1].message)
|
||||||
|
|
||||||
with warnings.catch_warnings(record=True) as w:
|
with warnings.catch_warnings(record=True) as w:
|
||||||
# Cause all warnings to always be triggered.
|
# Cause all warnings to always be triggered.
|
||||||
warnings.simplefilter("always")
|
warnings.simplefilter("always")
|
||||||
resolver.strategy.advise_buy(indicators, 'ETH/BTC')
|
resolver.strategy.advise_buy(indicators, 'ETH/BTC')
|
||||||
assert len(w) == 1
|
assert len(w) == 1
|
||||||
|
2
freqtrade/vendor/qtpylib/indicators.py
vendored
2
freqtrade/vendor/qtpylib/indicators.py
vendored
@ -236,7 +236,7 @@ def crossed(series1, series2, direction=None):
|
|||||||
if direction is None:
|
if direction is None:
|
||||||
return above or below
|
return above or below
|
||||||
|
|
||||||
return above if direction is "above" else below
|
return above if direction == "above" else below
|
||||||
|
|
||||||
|
|
||||||
def crossed_above(series1, series2):
|
def crossed_above(series1, series2):
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Include all requirements to run the bot.
|
# Include all requirements to run the bot.
|
||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
|
|
||||||
flake8==3.6.0
|
flake8==3.7.1
|
||||||
flake8-type-annotations==0.1.0
|
flake8-type-annotations==0.1.0
|
||||||
flake8-tidy-imports==1.1.0
|
flake8-tidy-imports==1.1.0
|
||||||
pytest==4.1.1
|
pytest==4.1.1
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
ccxt==1.18.171
|
ccxt==1.18.179
|
||||||
SQLAlchemy==1.2.17
|
SQLAlchemy==1.2.17
|
||||||
python-telegram-bot==11.1.0
|
python-telegram-bot==11.1.0
|
||||||
arrow==0.13.0
|
arrow==0.13.0
|
||||||
cachetools==3.0.0
|
cachetools==3.1.0
|
||||||
requests==2.21.0
|
requests==2.21.0
|
||||||
urllib3==1.24.1
|
urllib3==1.24.1
|
||||||
wrapt==1.11.1
|
wrapt==1.11.1
|
||||||
|
numpy==1.16.0
|
||||||
pandas==0.24.0
|
pandas==0.24.0
|
||||||
scikit-learn==0.20.2
|
scikit-learn==0.20.2
|
||||||
joblib==0.13.1
|
joblib==0.13.1
|
||||||
scipy==1.2.0
|
scipy==1.2.0
|
||||||
jsonschema==2.6.0
|
jsonschema==2.6.0
|
||||||
numpy==1.16.0
|
|
||||||
TA-Lib==0.4.17
|
TA-Lib==0.4.17
|
||||||
tabulate==0.8.3
|
tabulate==0.8.3
|
||||||
coinmarketcap==5.0.3
|
coinmarketcap==5.0.3
|
||||||
|
Loading…
Reference in New Issue
Block a user