Display all trade info in buttons

First step to fix tests for changed forcesell code
This commit is contained in:
Ron Klinkien
2022-03-30 12:28:30 +02:00
parent 29d6725fb7
commit 3ed7f3f2df
2 changed files with 29 additions and 11 deletions

View File

@@ -919,7 +919,7 @@ class Telegram(RPCHandler):
trades = []
for trade in statlist:
trades.append(f"{trade[0]} {trade[1]} {trade[3]}")
trades.append(f"{trade[0]} {trade[1]} {trade[2]} {trade[3]}")
trade_buttons = [
InlineKeyboardButton(text=trade, callback_data=trade) for trade in trades]
@@ -994,7 +994,7 @@ class Telegram(RPCHandler):
buttons_aligned.append([InlineKeyboardButton(text='Cancel', callback_data='cancel')])
self._send_msg(msg="Which pair?",
keyboard=buttons_aligned)
keyboard=buttons_aligned)
@authorized_only
def _trades(self, update: Update, context: CallbackContext) -> None: