def trade_buy_sell(bot, update, chat_data):
chat_data["buysell"] = update.message.text
reply_msg = "Choose currency"
cancel_btn = [
KeyboardButton(KeyboardEnum.CANCEL.clean())
]
# If SELL chosen, then include button 'ALL' to sell everything
if chat_data["buysell"].upper() == KeyboardEnum.SELL.clean():
cancel_btn.insert(0, KeyboardButton(KeyboardEnum.ALL.clean()))
reply_mrk = ReplyKeyboardMarkup(build_menu(coin_buttons(), n_cols=3, footer_buttons=cancel_btn))
update.message.reply_text(reply_msg, reply_markup=reply_mrk)
return WorkflowEnum.TRADE_CURRENCY
# Show confirmation to sell all assets
telegram_kraken_bot.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录