def trade_cmd(bot, update):
reply_msg = "Buy or sell?"
buttons = [
KeyboardButton(KeyboardEnum.BUY.clean()),
KeyboardButton(KeyboardEnum.SELL.clean())
]
cancel_btn = [
KeyboardButton(KeyboardEnum.CANCEL.clean())
]
reply_mrk = ReplyKeyboardMarkup(build_menu(buttons, n_cols=2, footer_buttons=cancel_btn))
update.message.reply_text(reply_msg, reply_markup=reply_mrk)
return WorkflowEnum.TRADE_BUY_SELL
# Save if BUY or SELL order and choose the currency to trade
telegram_kraken_bot.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录