Skip to content

Commit ee17f1e

Browse files
committed
Version 0.1.12
1 parent 063bf44 commit ee17f1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hyperliquid/utils/signing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def float_to_usd_int(x: float) -> int:
225225

226226
def float_to_int(x: float, power: int) -> int:
227227
with_decimals = x * 10**power
228-
if abs(round(with_decimals) - with_decimals) >= 1e-4:
228+
if abs(round(with_decimals) - with_decimals) >= 1e-3:
229229
raise ValueError("float_to_int causes rounding", x)
230230
return round(with_decimals)
231231

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55

66
[tool.poetry]
77
name = "hyperliquid-python-sdk"
8-
version = "0.1.11"
8+
version = "0.1.12"
99
description = "SDK for Hyperliquid API trading with Python."
1010
readme = "README.md"
1111
authors = ["Hyperliquid <[email protected]>"]

0 commit comments

Comments
 (0)