Added in lev prep before creating api order

This commit is contained in:
Sam Germain
2021-09-19 03:05:58 -06:00
parent fa74b95a01
commit 2d679177e5
4 changed files with 10 additions and 9 deletions

View File

@@ -81,6 +81,7 @@ class Ftx(Exchange):
params['stopPrice'] = stop_price
amount = self.amount_to_precision(pair, amount)
self._lev_prep(pair, leverage)
order = self._api.create_order(symbol=pair, type=ordertype, side=side,
amount=amount, params=params)
self._log_exchange_response('create_stoploss_order', order)