Fix some comments
This commit is contained in:
parent
1d9aeef792
commit
77a62b845a
@ -30,7 +30,6 @@ class Ftx(Exchange):
|
|||||||
"""
|
"""
|
||||||
Creates a stoploss market order.
|
Creates a stoploss market order.
|
||||||
Stoploss market orders is the only stoploss type supported by ftx.
|
Stoploss market orders is the only stoploss type supported by ftx.
|
||||||
TODO: This doesnot work yet as the order cannot be aquired via fetch_orders - so Freqtrade assumes the order as always missing.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
ordertype = "stop"
|
ordertype = "stop"
|
||||||
@ -46,6 +45,7 @@ class Ftx(Exchange):
|
|||||||
params = self._params.copy()
|
params = self._params.copy()
|
||||||
|
|
||||||
amount = self.amount_to_precision(pair, amount)
|
amount = self.amount_to_precision(pair, amount)
|
||||||
|
# set orderPrice to place limit order (?)
|
||||||
|
|
||||||
order = self._api.create_order(symbol=pair, type=ordertype, side='sell',
|
order = self._api.create_order(symbol=pair, type=ordertype, side='sell',
|
||||||
amount=amount, price=stop_price, params=params)
|
amount=amount, price=stop_price, params=params)
|
||||||
|
@ -1898,6 +1898,7 @@ def test_get_stoploss_order(default_conf, mocker, exchange_name):
|
|||||||
'get_stoploss_order', 'fetch_order',
|
'get_stoploss_order', 'fetch_order',
|
||||||
order_id='_', pair='TKN/BTC')
|
order_id='_', pair='TKN/BTC')
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("exchange_name", EXCHANGES)
|
@pytest.mark.parametrize("exchange_name", EXCHANGES)
|
||||||
def test_name(default_conf, mocker, exchange_name):
|
def test_name(default_conf, mocker, exchange_name):
|
||||||
exchange = get_patched_exchange(mocker, default_conf, id=exchange_name)
|
exchange = get_patched_exchange(mocker, default_conf, id=exchange_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user