1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# distribute eth from okx
from okx import Funding
api_key = "<YOUR-API-KEY>"
secret_key = "<YOUR-SECRET-KEY>"
passphrase = "<YOUR-PASSPHRASE>"
fundingAPI = Funding.FundingAPI(api_key, secret_key, passphrase, False, flag)
# withdraw eth in ether
withdraw_eth = "1"
# withdraw to zkSync lite
res = fundingAPI.withdrawal("ETH", withdraw_eth, "4", address, "0.0002", "ETH-zkSync Lite")
# withdraw to ethereum mainnet
res = fundingAPI.withdrawal("ETH", withdraw_eth, "4", address, "0.001456")