mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add quote currency to entry/exit msgs
This commit is contained in:
parent
079330ac64
commit
20b2f25067
|
@ -1022,6 +1022,7 @@ class FreqtradeBot(LoggingMixin):
|
|||
'stake_amount': trade.stake_amount,
|
||||
'stake_currency': self.config['stake_currency'],
|
||||
'base_currency': self.exchange.get_pair_base_currency(trade.pair),
|
||||
'quote_currency': self.exchange.get_pair_quote_currency(trade.pair),
|
||||
'fiat_currency': self.config.get('fiat_display_currency', None),
|
||||
'amount': order.safe_amount_after_fee if fill else (order.amount or trade.amount),
|
||||
'open_date': trade.open_date_utc or datetime.now(timezone.utc),
|
||||
|
@ -1055,6 +1056,7 @@ class FreqtradeBot(LoggingMixin):
|
|||
'open_rate': trade.open_rate,
|
||||
'stake_currency': self.config['stake_currency'],
|
||||
'base_currency': self.exchange.get_pair_base_currency(trade.pair),
|
||||
'quote_currency': self.exchange.get_pair_quote_currency(trade.pair),
|
||||
'fiat_currency': self.config.get('fiat_display_currency', None),
|
||||
'amount': trade.amount,
|
||||
'open_date': trade.open_date,
|
||||
|
@ -1814,6 +1816,7 @@ class FreqtradeBot(LoggingMixin):
|
|||
'stake_amount': trade.stake_amount,
|
||||
'stake_currency': self.config['stake_currency'],
|
||||
'base_currency': self.exchange.get_pair_base_currency(trade.pair),
|
||||
'quote_currency': self.exchange.get_pair_quote_currency(trade.pair),
|
||||
'fiat_currency': self.config.get('fiat_display_currency'),
|
||||
'sub_trade': sub_trade,
|
||||
'cumulative_profit': trade.realized_profit,
|
||||
|
@ -1865,6 +1868,7 @@ class FreqtradeBot(LoggingMixin):
|
|||
'close_date': trade.close_date or datetime.now(timezone.utc),
|
||||
'stake_currency': self.config['stake_currency'],
|
||||
'base_currency': self.exchange.get_pair_base_currency(trade.pair),
|
||||
'quote_currency': self.exchange.get_pair_quote_currency(trade.pair),
|
||||
'fiat_currency': self.config.get('fiat_display_currency', None),
|
||||
'reason': reason,
|
||||
'sub_trade': sub_trade,
|
||||
|
|
|
@ -51,6 +51,7 @@ class __RPCEntryExitMsgBase(RPCSendMsgBase):
|
|||
exchange: str
|
||||
pair: str
|
||||
base_currency: str
|
||||
quote_currency: str
|
||||
leverage: Optional[float]
|
||||
direction: str
|
||||
limit: float
|
||||
|
|
Loading…
Reference in New Issue
Block a user