Add fee_base to json output

This commit is contained in:
Matthias 2023-07-10 19:47:37 +02:00
parent c7c5c41f41
commit a0fff43648
3 changed files with 3 additions and 1 deletions

View File

@ -212,6 +212,7 @@ class Order(ModelBase):
'order_type': self.order_type,
'price': self.price,
'remaining': self.remaining,
'ft_fee_base': self.ft_fee_base,
})
return resp

View File

@ -238,6 +238,7 @@ class OrderSchema(BaseModel):
is_open: bool
order_timestamp: Optional[int]
order_filled_timestamp: Optional[int]
ft_fee_base: Optional[float]
class TradeSchema(BaseModel):

View File

@ -97,7 +97,7 @@ def test_rpc_trade_status(default_conf, ticker, fee, mocker) -> None:
'order_date': ANY, 'order_timestamp': ANY, 'order_filled_date': ANY,
'order_filled_timestamp': ANY, 'order_type': 'limit', 'price': 1.098e-05,
'is_open': False, 'pair': 'ETH/BTC', 'order_id': ANY,
'remaining': ANY, 'status': ANY, 'ft_is_entry': True,
'remaining': ANY, 'status': ANY, 'ft_is_entry': True, 'ft_fee_base': None,
}],
}
mocker.patch('freqtrade.rpc.telegram.Telegram', MagicMock())