Skip to main content

Account Balance

Interface Description

  • Function description: Query account assets according to account id.

  • Applicable objects: Customers who connect to Webull through the OpenApi development platform.

  • Request URL: /account/balance

  • Request method: GET

  • Frequency limit: The calling frequency of each AppId is limited to 2 times in 2 seconds.

Request Parameters

ParameterTypeRequired fieldsDescriptionExample value
account_idStringYesAccount ID20150320010101001
total_asset_currencyStringNoThe currency in which the total assets are denominated: the value refers to Currency in the dictionary value. If it is empty, it defaults to HKDHKD

Response Parameter

ParameterTypeDescriptionExample value
account_idStringAccount ID13467788
total_asset_currencyStringThe currency of the total asset denomination, the value refers to Currency in the dictionary valueHKD
total_assetStringThe total assets of the account: the currency refers to the value of the total_asset_currency field.
total_market_value=sum(positions_market_value*exchange rate)
1247724759.5266750000
total_market_valueStringThe total market value: the currency refers to the value of the total_asset_currency field.
total_asset=sum(net_liquidation_value*exchange rate)
89038914.5212380000
total_cash_balanceStringThe total amount of cash: the currency refers to the value of the total_asset_currency field.total_cash_balance=sum(cash_balance*exchange rate)1158685845.0054370000
margin_utilization_rateStringFinancing utilization: percentage.Parameters reserved.1.00
account_currency_assets[]Account_Currency_AssetAccount Asset List

The above exchange rate = the exchange rate at which the currency in Account_Currency_Asset is converted to total_asset_currency.

Account_Currency_Asset

ParameterTypeDescriptionExample value
currencyStringCurrency: refer to Currency in the dictionary for the value.
net_liquidation_value=positions_market_value+cash_balance+pending_incoming
HKD
net_liquidation_valueStringNet assets.458809435.440000
positions_market_valueStringThe market value of the position.153208546.140000
cash_balanceStringCash balance.305600889.300000
margin_powerStringFinancing buying power.305587431.940000
cash_powerStringThe buying power of the cash account.305587431.940000
pending_incomingStringIn-transit funds.0.000000
cash_frozenStringFrozen funds.13457.360000
available_withdrawalStringThe withdrawable amount.305587431.940000
interests_unpaidStringInterest to be paid.0.000000

Request Example

from webullsdktrade.api import API
from webullsdkcore.client import ApiClient
from webullsdkcore.common.region import Region

api_client = ApiClient(your_app_key, your_app_secret, Region.HK.value)
api = API(api_client)
response = api.account.get_account_balance(account_id,currency)
if response.status_code == 200:
account_balance = response.json()

Response Example

Exception Example