Automatically assign buy-tag to force-buys

closes #6544
This commit is contained in:
Matthias
2022-03-20 09:30:11 +01:00
parent aceaa3faec
commit 8556e6a053
4 changed files with 4 additions and 2 deletions

View File

@@ -1147,6 +1147,7 @@ def test_rpcforcebuy(mocker, default_conf, ticker, fee, limit_buy_order_open) ->
pair = 'LTC/BTC'
trade = rpc._rpc_forcebuy(pair, 0.0001, order_type='limit', stake_amount=0.05)
assert trade.stake_amount == 0.05
assert trade.buy_tag == 'forceentry'
# Test not buying
pair = 'XRP/BTC'