unicex 0.10.0__py3-none-any.whl → 0.10.2__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.
- unicex/hyperliquid/adapter.py +2 -2
- unicex/mexc/adapter.py +1 -1
- {unicex-0.10.0.dist-info → unicex-0.10.2.dist-info}/METADATA +1 -1
- {unicex-0.10.0.dist-info → unicex-0.10.2.dist-info}/RECORD +7 -7
- {unicex-0.10.0.dist-info → unicex-0.10.2.dist-info}/WHEEL +0 -0
- {unicex-0.10.0.dist-info → unicex-0.10.2.dist-info}/licenses/LICENSE +0 -0
- {unicex-0.10.0.dist-info → unicex-0.10.2.dist-info}/top_level.txt +0 -0
unicex/hyperliquid/adapter.py
CHANGED
|
@@ -78,7 +78,7 @@ class Adapter:
|
|
|
78
78
|
Возвращает:
|
|
79
79
|
dict[str, float]: Словарь тикеров и последних цен.
|
|
80
80
|
"""
|
|
81
|
-
return {k: v for k, v in raw_data.items() if not k.startswith("@")}
|
|
81
|
+
return {k: float(v) for k, v in raw_data.items() if not k.startswith("@")}
|
|
82
82
|
|
|
83
83
|
@staticmethod
|
|
84
84
|
def ticker_24hr(raw_data: list, resolve_symbols: bool) -> TickerDailyDict:
|
|
@@ -106,7 +106,7 @@ class Adapter:
|
|
|
106
106
|
mark_px = float(item.get("markPx") or "0")
|
|
107
107
|
day_ntl_vlm = float(item.get("dayNtlVlm") or "0")
|
|
108
108
|
|
|
109
|
-
p = ((mark_px - prev_day_px) / prev_day_px * 100) if prev_day_px else 0.0
|
|
109
|
+
p = round(((mark_px - prev_day_px) / prev_day_px * 100), 2) if prev_day_px else 0.0
|
|
110
110
|
v = (day_ntl_vlm / mid_px) if mid_px else 0.0
|
|
111
111
|
q = day_ntl_vlm
|
|
112
112
|
|
unicex/mexc/adapter.py
CHANGED
|
@@ -105,7 +105,7 @@ class Adapter:
|
|
|
105
105
|
for item in raw_data["data"]:
|
|
106
106
|
symbol = item["symbol"]
|
|
107
107
|
result[symbol] = TickerDailyItem(
|
|
108
|
-
p=float(item["riseFallRate"]) * 100,
|
|
108
|
+
p=round(float(item["riseFallRate"]) * 100, 2),
|
|
109
109
|
v=float(item["volume24"]) * Adapter._get_contract_size(symbol),
|
|
110
110
|
q=float(item["amount24"]),
|
|
111
111
|
)
|
|
@@ -45,7 +45,7 @@ unicex/gateio/uni_websocket_manager.py,sha256=3KAHhgJNISTOZRBTwbZPigc8iq_IHS19Nw
|
|
|
45
45
|
unicex/gateio/user_websocket.py,sha256=4qZX9N2RjlJ-e25Eszz12OeCM17j5DdXVimBVaLj53w,129
|
|
46
46
|
unicex/gateio/websocket_manager.py,sha256=phtHbvAGQD3mtewCUxBuuD1Nj0FXN6oZrd7tnmT7c2c,25832
|
|
47
47
|
unicex/hyperliquid/__init__.py,sha256=qGTAkwfXLvknvHET_iA7Qml3jkxxxA0moU_98nGTcVU,944
|
|
48
|
-
unicex/hyperliquid/adapter.py,sha256=
|
|
48
|
+
unicex/hyperliquid/adapter.py,sha256=0aULPGDhppjbRvShbR49GNt6qmw4o_CmrFi_xGVRLHg,10612
|
|
49
49
|
unicex/hyperliquid/client.py,sha256=8YnPh_6Hj8vFYcPbMaPae6OfroFzn28VI6iL3FQfa84,84255
|
|
50
50
|
unicex/hyperliquid/exchange_info.py,sha256=OBaBpAEij2Fv6q10rbQwGzBEU-5xGkCze_slEo9Q2N0,4128
|
|
51
51
|
unicex/hyperliquid/uni_client.py,sha256=4jv2uC076PBeq-EzCKvwaEEMk_M3HpsWA6iwNepJg7E,15674
|
|
@@ -53,7 +53,7 @@ unicex/hyperliquid/uni_websocket_manager.py,sha256=AzR_8Aq98NkCA1oc2IiH02ysMOYLa
|
|
|
53
53
|
unicex/hyperliquid/user_websocket.py,sha256=BKD9ap2bx5DwpkkwwecfOTVedrZBR9eMAITgCBgg02w,134
|
|
54
54
|
unicex/hyperliquid/websocket_manager.py,sha256=GNBQT4ihk1XsTAaas8lxAfo3ASBGs_8EVrSR1_N9D-U,16820
|
|
55
55
|
unicex/mexc/__init__.py,sha256=lltANqM_2P-fmF5j8o5-pjmORPuK6C5sVjcQhuUU_R0,923
|
|
56
|
-
unicex/mexc/adapter.py,sha256=
|
|
56
|
+
unicex/mexc/adapter.py,sha256=uaJ6157wTrMuf72thIggDJHiaeRVYyH0qMIn1x5Mrp8,9820
|
|
57
57
|
unicex/mexc/client.py,sha256=oJSpz-8hvA1WMCN2B7oqI2lXEx1_VJLAn8jbzhW8mF0,30950
|
|
58
58
|
unicex/mexc/exchange_info.py,sha256=Nqzn4b791H3DLXsI6YZiY34VOZgHTG7evfRNWQnd9Nk,1329
|
|
59
59
|
unicex/mexc/uni_client.py,sha256=0unhbU3WfqrMsV_y15VnIFjwUzQLVtp1tx6spV6cHKI,9477
|
|
@@ -86,8 +86,8 @@ unicex/okx/uni_client.py,sha256=E_Wod0JSGt1K6k1mAIWnOv350pELbv-nic7g1KgOuos,8694
|
|
|
86
86
|
unicex/okx/uni_websocket_manager.py,sha256=b4f_QjA64DJmENQdIGb5IOVc7kvit7KMCdWeCmRbxGY,9326
|
|
87
87
|
unicex/okx/user_websocket.py,sha256=8c9kpm-xVa729pW93OKUGLHaE9MY0uzEpjIgNIFRF80,126
|
|
88
88
|
unicex/okx/websocket_manager.py,sha256=wROXTUDqKzOE-wDnCtXso_MC4SzfPuPols5aPg_Z3y4,26027
|
|
89
|
-
unicex-0.10.
|
|
90
|
-
unicex-0.10.
|
|
91
|
-
unicex-0.10.
|
|
92
|
-
unicex-0.10.
|
|
93
|
-
unicex-0.10.
|
|
89
|
+
unicex-0.10.2.dist-info/licenses/LICENSE,sha256=lNNK4Vqak9cXm6qVJLhbqS7iR_BMj6k7fd7XQ6l1k54,1507
|
|
90
|
+
unicex-0.10.2.dist-info/METADATA,sha256=CQGI1PQSqsc4s0FZESmt6tcOWs8xhIgirUux3YFqMyo,9146
|
|
91
|
+
unicex-0.10.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
92
|
+
unicex-0.10.2.dist-info/top_level.txt,sha256=_7rar-0OENIg4KRy6cgjWiebFYAJhjKEcMggAocGWG4,7
|
|
93
|
+
unicex-0.10.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|