(self, client: Client, message)
| 2402 | return True |
| 2403 | |
| 2404 | def handle_message(self, client: Client, message): |
| 2405 | # |
| 2406 | # { |
| 2407 | # "action": "snapshot", |
| 2408 | # "arg": {instType: 'SPOT', channel: "ticker", instId: "BTCUSDT"}, |
| 2409 | # "data": [ |
| 2410 | # { |
| 2411 | # "instId": "BTCUSDT", |
| 2412 | # "last": "21150.53", |
| 2413 | # "open24h": "20759.65", |
| 2414 | # "high24h": "21202.29", |
| 2415 | # "low24h": "20518.82", |
| 2416 | # "bestBid": "21150.500000", |
| 2417 | # "bestAsk": "21150.600000", |
| 2418 | # "baseVolume": "25402.1961", |
| 2419 | # "quoteVolume": "530452554.2156", |
| 2420 | # "ts": 1656408934044, |
| 2421 | # "labeId": 0 |
| 2422 | # } |
| 2423 | # ] |
| 2424 | # } |
| 2425 | # pong message |
| 2426 | # "pong" |
| 2427 | # |
| 2428 | # login |
| 2429 | # |
| 2430 | # {event: "login", code: 0} |
| 2431 | # |
| 2432 | # subscribe |
| 2433 | # |
| 2434 | # { |
| 2435 | # "event": "subscribe", |
| 2436 | # "arg": {instType: 'SPOT', channel: "account", instId: "default"} |
| 2437 | # } |
| 2438 | # unsubscribe |
| 2439 | # { |
| 2440 | # "op":"unsubscribe", |
| 2441 | # "args":[ |
| 2442 | # { |
| 2443 | # "instType":"USDT-FUTURES", |
| 2444 | # "channel":"ticker", |
| 2445 | # "instId":"BTCUSDT" |
| 2446 | # } |
| 2447 | # ] |
| 2448 | # } |
| 2449 | # |
| 2450 | # uta |
| 2451 | # |
| 2452 | # { |
| 2453 | # "action": "snapshot", |
| 2454 | # "arg": {"instType": "spot", topic: "ticker", symbol: "BTCUSDT"}, |
| 2455 | # "data": [ |
| 2456 | # { |
| 2457 | # "highPrice24h": "120255.61", |
| 2458 | # "lowPrice24h": "116145.88", |
| 2459 | # "openPrice24h": "118919.38", |
| 2460 | # "lastPrice": "119818.83", |
| 2461 | # "turnover24h": "215859996.272276", |
nothing calls this directly
no test coverage detected