Telegram: /status now shows what exchange is used to make the trade
This commit is contained in:
parent
45909d8422
commit
018dd4cf6a
@ -82,6 +82,7 @@ def init(config: dict) -> None:
|
|||||||
'apiKey': exchange_config.get('key'),
|
'apiKey': exchange_config.get('key'),
|
||||||
'secret': exchange_config.get('secret'),
|
'secret': exchange_config.get('secret'),
|
||||||
})
|
})
|
||||||
|
logger.info('Using Exchange %s', name.capitalize())
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise OperationalException('Exchange {} is not supported'.format(name))
|
raise OperationalException('Exchange {} is not supported'.format(name))
|
||||||
|
|
||||||
|
@ -146,6 +146,7 @@ def _status(bot: Bot, update: Update) -> None:
|
|||||||
round(trade.close_profit * 100, 2)
|
round(trade.close_profit * 100, 2)
|
||||||
) if trade.close_profit else None
|
) if trade.close_profit else None
|
||||||
message = """
|
message = """
|
||||||
|
*Exchange:* `{exchange}`
|
||||||
*Trade ID:* `{trade_id}`
|
*Trade ID:* `{trade_id}`
|
||||||
*Current Pair:* [{pair}]({pair_url})
|
*Current Pair:* [{pair}]({pair_url})
|
||||||
*Open Since:* `{date}`
|
*Open Since:* `{date}`
|
||||||
@ -158,6 +159,7 @@ def _status(bot: Bot, update: Update) -> None:
|
|||||||
*Open Order:* `{open_order}`
|
*Open Order:* `{open_order}`
|
||||||
*Total Open Trades:* `{total_trades}`
|
*Total Open Trades:* `{total_trades}`
|
||||||
""".format(
|
""".format(
|
||||||
|
exchange=trade.exchange,
|
||||||
trade_id=trade.id,
|
trade_id=trade.id,
|
||||||
pair=trade.pair,
|
pair=trade.pair,
|
||||||
pair_url=exchange.get_pair_detail_url(trade.pair),
|
pair_url=exchange.get_pair_detail_url(trade.pair),
|
||||||
|
Loading…
Reference in New Issue
Block a user