have force-enter also include has_open_orders

This commit is contained in:
Matthias
2023-09-09 09:23:25 +02:00
parent 067c9219b6
commit 9e1f7dc6f7
2 changed files with 2 additions and 1 deletions

View File

@@ -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):

View File

@@ -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': [],
}