oxarchive 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
oxarchive/types.py
CHANGED
|
@@ -261,12 +261,17 @@ class WsError(BaseModel):
|
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
class WsData(BaseModel):
|
|
264
|
-
"""Real-time data message from server.
|
|
264
|
+
"""Real-time data message from server.
|
|
265
|
+
|
|
266
|
+
Note: The `data` field can be either a dict (for orderbook) or a list (for trades).
|
|
267
|
+
- Orderbook: dict with 'levels', 'time', etc.
|
|
268
|
+
- Trades: list of trade objects with 'coin', 'side', 'px', 'sz', etc.
|
|
269
|
+
"""
|
|
265
270
|
|
|
266
271
|
type: Literal["data"]
|
|
267
272
|
channel: WsChannel
|
|
268
273
|
coin: str
|
|
269
|
-
data: dict[str, Any]
|
|
274
|
+
data: Union[dict[str, Any], list[dict[str, Any]]]
|
|
270
275
|
|
|
271
276
|
|
|
272
277
|
# =============================================================================
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
oxarchive/__init__.py,sha256=QqBnxRIGEBXE2wHdmynznUEBoJsePN_xObo_v79lPZI,2181
|
|
2
2
|
oxarchive/client.py,sha256=3P0fvOcyM5BWppkVV4054NduDHKvRg-cWeluoGymmRk,3163
|
|
3
3
|
oxarchive/http.py,sha256=LJgw488_nNb14ixRoDv5ChuhUvyzTGtQ4aTSdEEwXww,3577
|
|
4
|
-
oxarchive/types.py,sha256=
|
|
4
|
+
oxarchive/types.py,sha256=8PD5LV5YSx-FdrPehvqALCLykfjdDmxNfqo_vPB3JkY,10686
|
|
5
5
|
oxarchive/websocket.py,sha256=BM6CmUbRdYptNnlicmAVPKBdqlyZBSI1l5iUt_OzWwo,25126
|
|
6
6
|
oxarchive/resources/__init__.py,sha256=WQ4GYQ8p3L0D2Isk4IV4h1DRpvyZlt6tOF1t_CJr6ls,385
|
|
7
7
|
oxarchive/resources/funding.py,sha256=TXkZxodVQTVcVbzNG6SpMQAzf8AkLm2NYZJxnP4MNXw,3500
|
|
@@ -9,6 +9,6 @@ oxarchive/resources/instruments.py,sha256=flD1sH6x3P3CTqV1ZwkfwbranVacmhsHn5Dhr7
|
|
|
9
9
|
oxarchive/resources/openinterest.py,sha256=h13yLA72LpfryUf8IqF6W7uE4ObYY2Qbc-auv4LtPqc,3552
|
|
10
10
|
oxarchive/resources/orderbook.py,sha256=o_DTdpzKrZvHL9YXm8cGGUugPM8uUa6r9O_72r1ByV0,4557
|
|
11
11
|
oxarchive/resources/trades.py,sha256=XCi2rXA2hxaTt0KNlWw8f7W0hzAvNWyT7DaivMz_rHw,10012
|
|
12
|
-
oxarchive-0.3.
|
|
13
|
-
oxarchive-0.3.
|
|
14
|
-
oxarchive-0.3.
|
|
12
|
+
oxarchive-0.3.1.dist-info/METADATA,sha256=rMdddr7UhWAF5XjykaItJ7o9KG2-Hh9lADtMtqepBFM,8749
|
|
13
|
+
oxarchive-0.3.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
14
|
+
oxarchive-0.3.1.dist-info/RECORD,,
|
|
File without changes
|