Merge pull request #1642 from freqtrade/fix/1637
Fix broken dry-mode sells
This commit is contained in:
commit
617d2338c4
@ -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",
|
||||
|
@ -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", [
|
||||
|
Loading…
Reference in New Issue
Block a user