forked from hyperliquid-dex/hyperliquid-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
85 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import eth_account | ||
import utils | ||
from eth_account.signers.local import LocalAccount | ||
|
||
from hyperliquid.exchange import Exchange | ||
from hyperliquid.utils import constants | ||
|
||
|
||
def main(): | ||
config = utils.get_config() | ||
account: LocalAccount = eth_account.Account.from_key(config["secret_key"]) | ||
print("Running with account address:", account.address) | ||
|
||
# Withdraw 1 usd | ||
exchange = Exchange(account, constants.TESTNET_API_URL) | ||
withdraw_result = exchange.withdraw_from_bridge(1, account.address) | ||
print(withdraw_result) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "hyperliquid-python-sdk" | ||
version = "0.1.16" | ||
version = "0.1.17" | ||
description = "SDK for Hyperliquid API trading with Python." | ||
readme = "README.md" | ||
authors = ["Hyperliquid <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters