Add leverage/short properties to api responses

This commit is contained in:
Matthias
2022-02-01 07:08:43 +01:00
parent 7dd50f78cf
commit 45e533fc3e
2 changed files with 19 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ from pydantic import BaseModel
from freqtrade.constants import DATETIME_PRINT_FORMAT
from freqtrade.enums import OrderTypeValues, SignalDirection
from freqtrade.enums.tradingmode import TradingMode
class Ping(BaseModel):
@@ -229,6 +230,11 @@ class TradeSchema(BaseModel):
max_rate: Optional[float]
open_order_id: Optional[str]
leverage: Optional[float]
interest_rate: Optional[float]
funding_fees: Optional[float]
trading_mode: Optional[TradingMode]
class OpenTradeSchema(TradeSchema):
stoploss_current_dist: Optional[float]