Fixed websocket #29

Merged
Arsen Mirzaev Tatyano-Muradovich merged 3 commits from Alex/stcs:devel into stable 2025-11-02 19:55:18 +07:00
4 changed files with 265 additions and 246 deletions
Showing only changes of commit 3ba32660ea - Show all commits

View File

@@ -1,6 +1,6 @@
import logging.config
import math
import json
# import json
import app.telegram.keyboards.inline as kbi
import database.request as rq
from app.bybit.get_functions.get_instruments_info import get_instruments_info
@@ -57,7 +57,7 @@ class TelegramMessageHandler:
async def format_execution_update(self, message, tg_id):
try:
logger.info("Execution update: %s", json.dumps(message))
# logger.info("Execution update: %s", json.dumps(message))
execution = message.get("data", [{}])[0]
exec_type = format_value(execution.get("execType"))
if exec_type == "Trade" or exec_type == "BustTrade":