Skip to main content

Huobi Pool api lib for easy work with huobi

Project description

HuobiPoolApi

Get user accounts list

from client import Client
cl = Client(access_api_key='knt3juterjg45', secret_key='fdwr42rwefsw3r1')
cl.get_accounts()

Withdraw from huobi pool Btc in hrc20btc chain

from client import Client
cl = Client(access_api_key='knt3juterjg45', secret_key='fdwr42rwefsw3r1')
response = cl.chains_information(currency='btc')
data = response['data']
for x in data:
    if x["currency"] == "btc":
        for y in x["chains"]:
            if y["chain"] == "hrc20btc":
                fee = y["transactFeeWithdraw"]
cl.withdraw(address='0xr32rhdf234rfi3', currency='btc', amount='0.0321', fee=fee)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

HuobiPoolApi-0.0.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page