You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grid_trader/example/account/get_account_asset_valuation.py

25 lines
832 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

from huobi.client.account import AccountClient
from example.api_key import *
account_client = AccountClient(api_key=g_api_key,secret_key=g_secret_key)
'''
https://huobiapi.github.io/docs/spot/v1/cn/#bd9157656f
spot现货账户,
margin逐仓杠杆账户,
otcOTC 账户,
point点卡账户,
super-margin全仓杠杆账户,
investment: C2C杠杆借出账户,
borrow: C2C杠杆借入账户
矿池账户: minepool,
ETF账户: etf,
抵押借贷账户: crypto-loans
逐仓/全仓/C2C杠杆账户margin/super-margin/borrow会在第一次划转资产时创建如果未划转过资产则不会有杠杆账户。
'''
account_type = "etf" #币币账户余额
asset_valuation = account_client.get_account_asset_valuation(account_type=account_type, valuation_currency="usd")
asset_valuation.print_object()