Simplify formatting in exchange class

This commit is contained in:
Matthias
2022-03-30 20:02:56 +02:00
parent 1f6ca29bbf
commit 2d914c8e13
2 changed files with 23 additions and 40 deletions

View File

@@ -52,12 +52,7 @@ class Okx(Exchange):
return params
@retrier
def _lev_prep(
self,
pair: str,
leverage: float,
side: str # buy or sell
):
def _lev_prep(self, pair: str, leverage: float, side: str):
if self.trading_mode != TradingMode.SPOT and self.margin_mode is not None:
try:
# TODO-lev: Test me properly (check mgnMode passed)