oxarchive 0.3.0__tar.gz → 0.3.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oxarchive
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Official Python SDK for 0xarchive - Hyperliquid Historical Data API
5
5
  Project-URL: Homepage, https://0xarchive.io
6
6
  Project-URL: Documentation, https://0xarchive.io/docs/sdks
@@ -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
  # =============================================================================
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "oxarchive"
7
- version = "0.3.0"
7
+ version = "0.3.1"
8
8
  description = "Official Python SDK for 0xarchive - Hyperliquid Historical Data API"
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes
File without changes
File without changes