Telegram: /status now shows what exchange is used to make the trade

This commit is contained in:
Samuel Husso 2018-03-07 10:19:43 +02:00
parent 45909d8422
commit 018dd4cf6a
2 changed files with 3 additions and 0 deletions

View File

@ -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))

View File

@ -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),