ftx.fill_leverage_brackets test
This commit is contained in:
parent
8264cc546d
commit
8d74233aa5
@ -75,7 +75,7 @@ class Exchange:
|
||||
}
|
||||
_ft_has: Dict = {}
|
||||
|
||||
_leverage_brackets: Dict
|
||||
_leverage_brackets: Dict = {}
|
||||
|
||||
def __init__(self, config: Dict[str, Any], validate: bool = True) -> None:
|
||||
"""
|
||||
|
@ -195,6 +195,12 @@ def test_get_order_id(mocker, default_conf):
|
||||
assert exchange.get_order_id_conditional(order) == '1111'
|
||||
|
||||
|
||||
def test_fill_leverage_brackets(default_conf, mocker):
|
||||
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', [
|
||||
("ADA/BTC", 0.0, 20.0),
|
||||
("BTC/EUR", 100.0, 20.0),
|
||||
|
Loading…
Reference in New Issue
Block a user