Properly type side for create_order

This commit is contained in:
Matthias
2022-05-07 08:45:37 +02:00
parent 68a97a898d
commit 2da284b921
5 changed files with 10 additions and 7 deletions

View File

@@ -3,6 +3,7 @@ from typing import Dict, List, Tuple
import ccxt
from freqtrade.constants import BuySell
from freqtrade.enums import MarginMode, TradingMode
from freqtrade.exceptions import DDosProtection, OperationalException, TemporaryError
from freqtrade.exchange import Exchange
@@ -52,7 +53,7 @@ class Okx(Exchange):
return params
@retrier
def _lev_prep(self, pair: str, leverage: float, side: str):
def _lev_prep(self, pair: str, leverage: float, side: BuySell):
if self.trading_mode != TradingMode.SPOT and self.margin_mode is not None:
try:
# TODO-lev: Test me properly (check mgnMode passed)