Add leverage/short properties to api responses
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user