mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
Rearranged tests at end of ftx to match other exchanges
This commit is contained in:
parent
0232f0fa18
commit
2b7d94a855
|
@ -195,13 +195,6 @@ def test_get_order_id(mocker, default_conf):
|
||||||
assert exchange.get_order_id_conditional(order) == '1111'
|
assert exchange.get_order_id_conditional(order) == '1111'
|
||||||
|
|
||||||
|
|
||||||
def test_fill_leverage_brackets(default_conf, mocker):
|
|
||||||
# FTX only has one account wide leverage, so there's no leverage brackets
|
|
||||||
exchange = get_patched_exchange(mocker, default_conf, id="ftx")
|
|
||||||
exchange.fill_leverage_brackets()
|
|
||||||
assert bool(exchange._leverage_brackets) is False
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('pair,nominal_value,max_lev', [
|
@pytest.mark.parametrize('pair,nominal_value,max_lev', [
|
||||||
("ADA/BTC", 0.0, 20.0),
|
("ADA/BTC", 0.0, 20.0),
|
||||||
("BTC/EUR", 100.0, 20.0),
|
("BTC/EUR", 100.0, 20.0),
|
||||||
|
@ -210,3 +203,10 @@ def test_fill_leverage_brackets(default_conf, mocker):
|
||||||
def test_get_max_leverage_ftx(default_conf, mocker, pair, nominal_value, max_lev):
|
def test_get_max_leverage_ftx(default_conf, mocker, pair, nominal_value, max_lev):
|
||||||
exchange = get_patched_exchange(mocker, default_conf, id="ftx")
|
exchange = get_patched_exchange(mocker, default_conf, id="ftx")
|
||||||
assert exchange.get_max_leverage(pair, nominal_value) == max_lev
|
assert exchange.get_max_leverage(pair, nominal_value) == max_lev
|
||||||
|
|
||||||
|
|
||||||
|
def test_fill_leverage_brackets_ftx(default_conf, mocker):
|
||||||
|
# FTX only has one account wide leverage, so there's no leverage brackets
|
||||||
|
exchange = get_patched_exchange(mocker, default_conf, id="ftx")
|
||||||
|
exchange.fill_leverage_brackets()
|
||||||
|
assert bool(exchange._leverage_brackets) is False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user