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

@@ -13,7 +13,7 @@ from sqlalchemy.orm import Query, declarative_base, relationship, scoped_session
from sqlalchemy.pool import StaticPool
from sqlalchemy.sql.schema import UniqueConstraint
from freqtrade.constants import DATETIME_PRINT_FORMAT, NON_OPEN_EXCHANGE_STATES, LongShort
from freqtrade.constants import DATETIME_PRINT_FORMAT, NON_OPEN_EXCHANGE_STATES, BuySell, LongShort
from freqtrade.enums import ExitType, TradingMode
from freqtrade.exceptions import DependencyException, OperationalException
from freqtrade.leverage import interest
@@ -386,7 +386,7 @@ class LocalTrade():
return "buy"
@property
def exit_side(self) -> str:
def exit_side(self) -> BuySell:
if self.is_short:
return "buy"
else: