Add liquidation Price to api response

This commit is contained in:
Matthias 2022-05-22 08:54:27 +02:00
parent ea8fda0dee
commit 26d394ca74
2 changed files with 3 additions and 0 deletions

View File

@ -256,6 +256,7 @@ class TradeSchema(BaseModel):
leverage: Optional[float]
interest_rate: Optional[float]
liquidation_price: Optional[float]
funding_fees: Optional[float]
trading_mode: Optional[TradingMode]

View File

@ -972,6 +972,7 @@ def test_api_status(botclient, mocker, ticker, fee, markets, is_short,
'exchange': 'binance',
'leverage': 1.0,
'interest_rate': 0.0,
'liquidation_price': None,
'funding_fees': None,
'trading_mode': ANY,
'orders': [ANY],
@ -1175,6 +1176,7 @@ def test_api_force_entry(botclient, mocker, fee, endpoint):
'exchange': 'binance',
'leverage': None,
'interest_rate': None,
'liquidation_price': None,
'funding_fees': None,
'trading_mode': 'spot',
'orders': [],