forked from aevoxyz/aevo-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwithdraw_example.py
More file actions
29 lines (21 loc) · 761 Bytes
/
withdraw_example.py
File metadata and controls
29 lines (21 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import asyncio
from loguru import logger
from aevo import AevoClient
async def main():
# The following values which are used for authentication on private endpoints, can be retrieved from the Aevo UI
aevo = AevoClient(
wallet_private_key="", # SET VALUE
wallet_address="", # SET VALUE
api_key="", # SET VALUE
api_secret="", # SET VALUE
env="testnet",
)
if not aevo.wallet_private_key:
raise Exception(
"Wallet private key is not set. Please set the wallet private key in the AevoClient constructor."
)
logger.info("Initiating withdrawal...")
response = aevo.withdraw(amount=10.5)
logger.info(response)
if __name__ == "__main__":
asyncio.run(main())