Fixed websocket #29
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user