mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
tests: fix test-data setup for usdt trades
This commit is contained in:
@@ -224,7 +224,7 @@ def mock_trade_usdt_4(fee, is_short: bool):
|
|||||||
trade = Trade(
|
trade = Trade(
|
||||||
pair="NEO/USDT",
|
pair="NEO/USDT",
|
||||||
stake_amount=20.0,
|
stake_amount=20.0,
|
||||||
amount=10.0,
|
amount=0.0,
|
||||||
amount_requested=10.01,
|
amount_requested=10.01,
|
||||||
fee_open=fee.return_value,
|
fee_open=fee.return_value,
|
||||||
fee_close=fee.return_value,
|
fee_close=fee.return_value,
|
||||||
|
|||||||
@@ -362,7 +362,8 @@ def test_sync_wallet_dry(mocker, default_conf_usdt, fee):
|
|||||||
assert len(freqtrade.wallets._wallets) == 5
|
assert len(freqtrade.wallets._wallets) == 5
|
||||||
assert len(freqtrade.wallets._positions) == 0
|
assert len(freqtrade.wallets._positions) == 0
|
||||||
bal = freqtrade.wallets.get_all_balances()
|
bal = freqtrade.wallets.get_all_balances()
|
||||||
assert bal["NEO"].total == 10
|
# NEO trade is not filled yet.
|
||||||
|
assert bal["NEO"].total == 0
|
||||||
assert bal["XRP"].total == 10
|
assert bal["XRP"].total == 10
|
||||||
assert bal["LTC"].total == 2
|
assert bal["LTC"].total == 2
|
||||||
usdt_bal = bal["USDT"]
|
usdt_bal = bal["USDT"]
|
||||||
|
|||||||
Reference in New Issue
Block a user