Merge pull request #2651 from freqtrade/dry_amount

Round amount to precision also for dry-runs
This commit is contained in:
hroff-1902
2019-12-13 13:13:20 +03:00
committed by GitHub
2 changed files with 8 additions and 4 deletions

View File

@@ -786,7 +786,10 @@ def test_process_trade_no_whitelist_pair(default_conf, ticker, limit_buy_order,
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
pair = 'NOCLUE/BTC'
pair = 'BLK/BTC'
# Ensure the pair is not in the whitelist!
assert pair not in default_conf['exchange']['pair_whitelist']
# create open trade not in whitelist
Trade.session.add(Trade(
pair=pair,