oxarchive 0.3.9__py3-none-any.whl → 0.3.10__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/__init__.py CHANGED
@@ -57,7 +57,7 @@ except ImportError:
57
57
  OxArchiveWs = None # type: ignore
58
58
  WsOptions = None # type: ignore
59
59
 
60
- __version__ = "0.3.9"
60
+ __version__ = "0.3.10"
61
61
 
62
62
  __all__ = [
63
63
  # Client
oxarchive/websocket.py CHANGED
@@ -32,6 +32,7 @@ from typing import Any, Callable, Optional, Set, Union
32
32
 
33
33
  try:
34
34
  from websockets.asyncio.client import connect as ws_connect, ClientConnection
35
+ from websockets.exceptions import ConnectionClosed
35
36
  from websockets.protocol import State as WsState
36
37
  except ImportError:
37
38
  raise ImportError(
@@ -650,7 +651,7 @@ class OxArchiveWs:
650
651
  try:
651
652
  message = await self._ws.recv()
652
653
  self._handle_message(message)
653
- except websockets.ConnectionClosed as e:
654
+ except ConnectionClosed as e:
654
655
  logger.info(f"Connection closed: {e.code} {e.reason}")
655
656
  if self._on_close:
656
657
  self._on_close(e.code, e.reason)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oxarchive
3
- Version: 0.3.9
3
+ Version: 0.3.10
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
@@ -1,14 +1,14 @@
1
- oxarchive/__init__.py,sha256=c1JP0iZrqbnOrcTSfbMHDoojzHoDmDobFv7Mvv7qk5A,2181
1
+ oxarchive/__init__.py,sha256=AQVwSQ6yMPb6Dm5mqRyLuM0gk4XvaqffLMTdUaSFhdg,2182
2
2
  oxarchive/client.py,sha256=3P0fvOcyM5BWppkVV4054NduDHKvRg-cWeluoGymmRk,3163
3
3
  oxarchive/http.py,sha256=SY_o9Ag8ADo1HI3i3uAKW1xwkYjPE75gRAjnMsddAGs,4211
4
4
  oxarchive/types.py,sha256=lM3WrATnHcxGs0fLq54Lka-FTvXqiwWe2He2Qn9SrSA,10844
5
- oxarchive/websocket.py,sha256=0w7OebFUo_4c3AnjG-9vfX9IBHKyTbvgAWUXhxFO53I,28336
5
+ oxarchive/websocket.py,sha256=MyffJxaabDBonECcJg9vF4hAQ_4thjP4DaS7MaR4uno,28381
6
6
  oxarchive/resources/__init__.py,sha256=WQ4GYQ8p3L0D2Isk4IV4h1DRpvyZlt6tOF1t_CJr6ls,385
7
7
  oxarchive/resources/funding.py,sha256=TXkZxodVQTVcVbzNG6SpMQAzf8AkLm2NYZJxnP4MNXw,3500
8
8
  oxarchive/resources/instruments.py,sha256=flD1sH6x3P3CTqV1ZwkfwbranVacmhsHn5Dhr7lGQhM,1606
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.9.dist-info/METADATA,sha256=O7olK5nYQ8HeHaxQwgvRUtayOudvTcgAYnhv1eTv-ro,11070
13
- oxarchive-0.3.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
- oxarchive-0.3.9.dist-info/RECORD,,
12
+ oxarchive-0.3.10.dist-info/METADATA,sha256=rPdO6lBAEQfApyJFllhU6vcuBEYpj7i3iLyR2-NaP9c,11071
13
+ oxarchive-0.3.10.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
+ oxarchive-0.3.10.dist-info/RECORD,,