File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55
66[tool .poetry ]
77name = " hyperliquid-python-sdk"
8- version = " 0.18 .0"
8+ version = " 0.19 .0"
99description = " SDK for Hyperliquid API trading with Python."
1010readme = " README.md"
1111authors = [
" Hyperliquid <[email protected] >" ]
You can’t perform that action at this time.
0 commit comments