exchange minor fixes

This commit is contained in:
Sam Germain 2022-02-09 03:38:25 -06:00
parent f3cb7e90e0
commit e987e0e2a9
2 changed files with 9 additions and 5 deletions

View File

@ -782,6 +782,10 @@ def test_execute_entry(mocker, default_conf_usdt, fee, limit_order,
name=exchange_name,
get_maintenance_ratio_and_amt=MagicMock(return_value=(0.01, 0.01)),
)
mocker.patch.multiple(
'freqtrade.exchange.Okex',
get_max_pair_stake_amount=MagicMock(return_value=500000),
)
pair = 'ETH/USDT'
assert not freqtrade.execute_entry(pair, stake_amount, is_short=is_short)