We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063bf44 commit ee17f1eCopy full SHA for ee17f1e
hyperliquid/utils/signing.py
@@ -225,7 +225,7 @@ def float_to_usd_int(x: float) -> int:
225
226
def float_to_int(x: float, power: int) -> int:
227
with_decimals = x * 10**power
228
- if abs(round(with_decimals) - with_decimals) >= 1e-4:
+ if abs(round(with_decimals) - with_decimals) >= 1e-3:
229
raise ValueError("float_to_int causes rounding", x)
230
return round(with_decimals)
231
pyproject.toml
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
5
6
[tool.poetry]
7
name = "hyperliquid-python-sdk"
8
-version = "0.1.11"
+version = "0.1.12"
9
description = "SDK for Hyperliquid API trading with Python."
10
readme = "README.md"
11
authors = ["Hyperliquid <[email protected]>"]
0 commit comments