msgspec
msgspec copied to clipboard
Default tag
trafficstars
Description
Hi, is there any ways to default a tag? for example
bookTicker: {'u': 26218595314, 's': 'ETHUSDT', 'b': '1670.39000000', 'B': '86.53880000', 'a': '1670.40000000', 'A': '70.13720000'} # which does not has 'e' in the message
depthUpdate: {'e': 'depthUpdate', 'E': 1692526763992, 's': 'BTCUSDT', 'U': 38408158254, 'u': 38408158256, 'b': [['13062.23000000', '0.00091000']], 'a': [['26126.94000000', '0.11860000']]}
(from the binance websocket streams)