Update Huobi stoploss to shared method

This commit is contained in:
Matthias
2022-02-26 10:44:38 +01:00
parent a1f2f6ddeb
commit 14d49e85af
2 changed files with 9 additions and 66 deletions

View File

@@ -48,7 +48,7 @@ def test_stoploss_order_huobi(default_conf, mocker, limitratio, expected):
assert api_mock.create_order.call_args_list[0][1]['amount'] == 1
# Price should be 1% below stopprice
assert api_mock.create_order.call_args_list[0][1]['price'] == expected
assert api_mock.create_order.call_args_list[0][1]['params'] == {"stop-price": 220,
assert api_mock.create_order.call_args_list[0][1]['params'] == {"stopPrice": 220,
"operator": "lte",
}