Buckets:

download
raw
593 Bytes
import pytest
from freqtrade.util import get_dry_run_wallet
@pytest.mark.parametrize(
"wallet,stake_currency,expected",
[
(1000, "USDT", 1000),
({"USDT": 1000, "USDC": 500}, "USDT", 1000),
({"USDT": 1000, "USDC": 500}, "USDC", 500),
({"USDT": 1000, "USDC": 500}, "NOCURR", 0.0),
],
)
def test_get_dry_run_wallet(default_conf_usdt, wallet, stake_currency, expected):
# As int
default_conf_usdt["dry_run_wallet"] = wallet
default_conf_usdt["stake_currency"] = stake_currency
assert get_dry_run_wallet(default_conf_usdt) == expected

Xet Storage Details

Size:
593 Bytes
·
Xet hash:
08e91a8aa619237bda5b2e4438c22ac44d2de2954e22de8727849990f9b33349

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.