Add liquidation Price to api response
This commit is contained in:
parent
ea8fda0dee
commit
26d394ca74
@ -256,6 +256,7 @@ class TradeSchema(BaseModel):
|
|||||||
|
|
||||||
leverage: Optional[float]
|
leverage: Optional[float]
|
||||||
interest_rate: Optional[float]
|
interest_rate: Optional[float]
|
||||||
|
liquidation_price: Optional[float]
|
||||||
funding_fees: Optional[float]
|
funding_fees: Optional[float]
|
||||||
trading_mode: Optional[TradingMode]
|
trading_mode: Optional[TradingMode]
|
||||||
|
|
||||||
|
@ -972,6 +972,7 @@ def test_api_status(botclient, mocker, ticker, fee, markets, is_short,
|
|||||||
'exchange': 'binance',
|
'exchange': 'binance',
|
||||||
'leverage': 1.0,
|
'leverage': 1.0,
|
||||||
'interest_rate': 0.0,
|
'interest_rate': 0.0,
|
||||||
|
'liquidation_price': None,
|
||||||
'funding_fees': None,
|
'funding_fees': None,
|
||||||
'trading_mode': ANY,
|
'trading_mode': ANY,
|
||||||
'orders': [ANY],
|
'orders': [ANY],
|
||||||
@ -1175,6 +1176,7 @@ def test_api_force_entry(botclient, mocker, fee, endpoint):
|
|||||||
'exchange': 'binance',
|
'exchange': 'binance',
|
||||||
'leverage': None,
|
'leverage': None,
|
||||||
'interest_rate': None,
|
'interest_rate': None,
|
||||||
|
'liquidation_price': None,
|
||||||
'funding_fees': None,
|
'funding_fees': None,
|
||||||
'trading_mode': 'spot',
|
'trading_mode': 'spot',
|
||||||
'orders': [],
|
'orders': [],
|
||||||
|
Loading…
Reference in New Issue
Block a user