Get Account Funds
GET/api/v1.0/accounts/{acc_id}/fundsQuery the net asset value, securities market value, cash, purchasing power and other fund data of the trading business account.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
acc_id | string | Yes | Trading business account ID. |
Request Parameters
| Parameter | Type | Position | Required | Description |
|---|---|---|---|---|
currency | string | Query | Yes | Display currency of funds. Only applicable to futures accounts and comprehensive securities accounts; this parameter will be ignored for other account types. In the returned data, except for fields that clearly indicate the currency, other fund-related fields are converted with this parameter. |
Request Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/accounts/{acc_id}/funds' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse Parameters
| Field | Type | Description |
|---|---|---|
power | string | Maximum Buying Power. |
max_power_short | string | Short Buying Power. |
total_assets | string | Total Net Assets. |
securities_assets | string | Security Assets. |
funds_assets | string | Fund Assets. |
cash | string | Cash. |
market_val | string | Securities Market Value. |
long_mv | string | Long Market Value. |
short_mv | string | Short Market Value. |
pending_asset | string | Asset in Transit. |
frozen_cash | string | Funds on Hold. |
max_withdrawal | string | Maximum Withdrawal. |
currency | string | The currency used for this query. |
available_funds | string | Available funds. |
unrealized_pl | string | Unrealized gain or loss. |
realized_pl | string | Realized gain or loss. |
risk_status | string | Risk status. Values: NONE, LEVEL1-LEVEL9. |
initial_margin | string | Initial Margin. |
margin_call_margin | string | Margin-call Margin. |
maintenance_margin | string | Maintenance Margin. |
hk_cash | string | HKD Cash. |
hk_avl_withdrawal_cash | string | HKD Withdrawable Cash. |
hk_net_cash_power | string | HKD Cash Buying Power. |
us_cash | string | USD Cash. |
us_avl_withdrawal_cash | string | USD Withdrawable Cash. |
us_net_cash_power | string | USD Cash Buying Power. |
jp_cash | string | JPY Cash. |
jp_avl_withdrawal_cash | string | JPY Withdrawable Cash. |
jp_net_cash_power | string | JPY Cash Buying Power. |
cn_cash | string | CNH Cash. |
cn_avl_withdrawal_cash | string | CNH Withdrawable Cash. |
cn_net_cash_power | string | CNH Cash Buying Power. |
sg_cash | string | SGD Cash. |
sg_avl_withdrawal_cash | string | SGD Withdrawable Cash. |
sg_net_cash_power | string | SGD Cash Buying Power. |
Response Example
json
{
"s": "ok",
"d": {
"power": "12500.00",
"max_power_short": "0.00",
"total_assets": "25000.00",
"securities_assets": "18000.00",
"funds_assets": "0.00",
"cash": "7000.00",
"market_val": "18000.00",
"long_mv": "18000.00",
"short_mv": "0.00",
"pending_asset": "0.00",
"frozen_cash": "0.00",
"max_withdrawal": "7000.00",
"currency": "USD",
"available_funds": "7000.00",
"unrealized_pl": "500.00",
"realized_pl": "200.00",
"risk_status": "LEVEL2",
"initial_margin": "0.00",
"margin_call_margin": "0.00",
"maintenance_margin": "0.00",
"hk_cash": "0.00",
"hk_avl_withdrawal_cash": "0.00",
"hk_net_cash_power": "0.00",
"us_cash": "7000.00",
"us_avl_withdrawal_cash": "7000.00",
"us_net_cash_power": "12500.00",
"jp_cash": "0.00",
"jp_avl_withdrawal_cash": "0.00",
"jp_net_cash_power": "0.00",
"cn_cash": "0.00",
"cn_avl_withdrawal_cash": "0.00",
"cn_net_cash_power": "0.00",
"sg_cash": "0.00",
"sg_avl_withdrawal_cash": "0.00",
"sg_net_cash_power": "0.00"
}
}Error Response:
json
{
"s": "error",
"errcode": -1200,
"errmsg": "Error message."
}