Add force_enter optional args and tests

This commit is contained in:
Robert Davey
2024-05-29 14:45:49 +01:00
committed by GitHub
parent 7f210ab3b5
commit 3da18c3443
2 changed files with 26 additions and 1 deletions

View File

@@ -96,6 +96,10 @@ def test_FtRestClient_call_invalid(caplog):
("forcebuy", ["XRP/USDT", 1.5]),
("forceenter", ["XRP/USDT", "short"]),
("forceenter", ["XRP/USDT", "short", 1.5]),
("forceenter", ["XRP/USDT", "short", 1.5, "market"]),
("forceenter", ["XRP/USDT", "short", 1.5, "market", 100]),
("forceenter", ["XRP/USDT", "short", 1.5, "market", 100, 10.0]),
("forceenter", ["XRP/USDT", "short", 1.5, "market", 100, 10.0, "test_force_enter"]),
("forceexit", [1]),
("forceexit", [1, "limit"]),
("forceexit", [1, "limit", 100]),