|
@@ -637,6 +637,23 @@ This action cannot be undone.
|
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+
|
|
|
|
+ if hasattr(self, 'info_commands_handler'):
|
|
|
|
+ command_action_map.update({
|
|
|
|
+ "balance": self.info_commands_handler.balance_command,
|
|
|
|
+ "positions": self.info_commands_handler.positions_command,
|
|
|
|
+ "orders": self.info_commands_handler.orders_command,
|
|
|
|
+ "stats": self.info_commands_handler.stats_command,
|
|
|
|
+ "price": self.info_commands_handler.price_command,
|
|
|
|
+ "market": self.info_commands_handler.market_command,
|
|
|
|
+ "performance": self.info_commands_handler.performance_command,
|
|
|
|
+ "daily": self.info_commands_handler.daily_command,
|
|
|
|
+ "weekly": self.info_commands_handler.weekly_command,
|
|
|
|
+ "monthly": self.info_commands_handler.monthly_command,
|
|
|
|
+ "trades": self.info_commands_handler.trades_command,
|
|
|
|
+ "risk": self.info_commands_handler.risk_command,
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
|
|
mapped_command_key = callback_data
|
|
mapped_command_key = callback_data
|
|
if callback_data.startswith('/') and not callback_data.startswith('/confirm_'):
|
|
if callback_data.startswith('/') and not callback_data.startswith('/confirm_'):
|
|
@@ -663,10 +680,6 @@ This action cannot be undone.
|
|
return
|
|
return
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
if callback_data == "/help":
|
|
if callback_data == "/help":
|
|
logger.info("Handling '/help' button callback. Guiding user to /help command.")
|
|
logger.info("Handling '/help' button callback. Guiding user to /help command.")
|
|
try:
|
|
try:
|