|
|
@@ -350,7 +350,11 @@ class KucoinUsdtSwapWs:
|
|
|
f"/contractMarket/tradeOrders:{self.symbol}",
|
|
|
]
|
|
|
for i in channels:
|
|
|
- sub_str = ujson.dumps({"topic": i, "type":"subscribe"})
|
|
|
+ sub_str = ujson.dumps({"topic": i, "type": "subscribe"})
|
|
|
+ if "/contractMarket/level2Depth50" not in i and "/contractMarket/execution" not in i:
|
|
|
+ sub_str = ujson.dumps(
|
|
|
+ {"topic": i, "type": "subscribe", "privateChannel": True, "response": True}
|
|
|
+ )
|
|
|
await _ws.send_str(sub_str)
|
|
|
while True:
|
|
|
# 接受消息
|