Skip to content

Commit 64b252e

Browse files
authored
Version 0.19.0 (#207)
1 parent a35bb3c commit 64b252e

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

examples/perp_deploy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ def main():
6060
f"{DUMMY_DEX}:TEST0": "14.0",
6161
}
6262
],
63+
{
64+
f"{DUMMY_DEX}:TEST0": "12.1",
65+
f"{DUMMY_DEX}:TEST1": "1.1",
66+
},
6367
)
6468
print("set oracle result:", set_oracle_result)
6569

examples/spot_deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def main():
9191
print(register_spot_result)
9292
# If registration is successful, a spot index will be returned. This spot index is required for
9393
# registering hyperliquidity.
94-
if register_token_result["status"] == "ok":
95-
spot = register_token_result["response"]["data"]
94+
if register_spot_result["status"] == "ok":
95+
spot = register_spot_result["response"]["data"]
9696
else:
9797
return
9898

hyperliquid/exchange.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,16 +910,19 @@ def perp_deploy_set_oracle(
910910
dex: str,
911911
oracle_pxs: Dict[str, str],
912912
all_mark_pxs: List[Dict[str, str]],
913+
external_perp_pxs: Dict[str, str],
913914
) -> Any:
914915
timestamp = get_timestamp_ms()
915916
oracle_pxs_wire = sorted(list(oracle_pxs.items()))
916917
mark_pxs_wire = [sorted(list(mark_pxs.items())) for mark_pxs in all_mark_pxs]
918+
external_perp_pxs_wire = sorted(list(external_perp_pxs.items()))
917919
action = {
918920
"type": "perpDeploy",
919921
"setOracle": {
920922
"dex": dex,
921923
"oraclePxs": oracle_pxs_wire,
922924
"markPxs": mark_pxs_wire,
925+
"externalPerpPxs": external_perp_pxs_wire,
923926
},
924927
}
925928
signature = sign_l1_action(

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.18.0"
8+
version = "0.19.0"
99
description = "SDK for Hyperliquid API trading with Python."
1010
readme = "README.md"
1111
authors = ["Hyperliquid <[email protected]>"]

0 commit comments

Comments
 (0)