Add funding_fee export to order object

Helps debugging #9163
This commit is contained in:
Matthias
2023-10-04 06:36:31 +02:00
parent 8c633aab19
commit b2796b850b
2 changed files with 2 additions and 0 deletions

View File

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

View File

@@ -99,6 +99,7 @@ def test_rpc_trade_status(default_conf, ticker, fee, mocker) -> None:
'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, 'ft_fee_base': None,
'funding_fee': ANY,
}],
}
mocker.patch('freqtrade.rpc.telegram.Telegram', MagicMock())