MCPcopy Create free account
hub / github.com/ccxt/ccxt / handle_message

Method handle_message

python/ccxt/pro/bitget.py:2404–2530  ·  view source on GitHub ↗
(self, client: Client, message)

Source from the content-addressed store, hash-verified

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",

Callers

nothing calls this directly

Calls 11

handle_error_messageMethod · 0.95
handle_pongMethod · 0.95
handle_authenticateMethod · 0.95
handle_ohlcvMethod · 0.95
handle_order_bookMethod · 0.95
safe_stringMethod · 0.80
safe_valueMethod · 0.80
safe_value_2Method · 0.80
findMethod · 0.80

Tested by

no test coverage detected