Merge pull request #1642 from freqtrade/fix/1637

Fix broken dry-mode sells
This commit is contained in:
Misagh
2019-03-09 19:23:34 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -298,7 +298,7 @@ class Exchange(object):
'amount': amount,
"cost": amount * rate,
'type': ordertype,
'side': 'buy',
'side': side,
'remaining': amount,
'datetime': arrow.utcnow().isoformat(),
'status': "open",

View File

@@ -470,6 +470,9 @@ def test_dry_run_order(default_conf, mocker, side, exchange_name):
pair='ETH/BTC', ordertype='limit', side=side, amount=1, rate=200)
assert 'id' in order
assert f'dry_run_{side}_' in order["id"]
assert order["side"] == side
assert order["type"] == "limit"
assert order["pair"] == "ETH/BTC"
@pytest.mark.parametrize("side", [