mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
have force-enter also include has_open_orders
This commit is contained in:
@@ -308,6 +308,7 @@ class TradeSchema(BaseModel):
|
||||
|
||||
min_rate: Optional[float] = None
|
||||
max_rate: Optional[float] = None
|
||||
has_open_orders: bool
|
||||
orders: List[OrderSchema]
|
||||
|
||||
leverage: Optional[float] = None
|
||||
@@ -331,7 +332,6 @@ class OpenTradeSchema(TradeSchema):
|
||||
total_profit_abs: float
|
||||
total_profit_fiat: Optional[float] = None
|
||||
total_profit_ratio: Optional[float] = None
|
||||
has_open_orders: bool
|
||||
|
||||
|
||||
class TradeResponse(BaseModel):
|
||||
|
||||
@@ -1364,6 +1364,7 @@ def test_api_force_entry(botclient, mocker, fee, endpoint):
|
||||
'amount_precision': None,
|
||||
'price_precision': None,
|
||||
'precision_mode': None,
|
||||
'has_open_orders': False,
|
||||
'orders': [],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user