Skip to content

Account Cash Info ​

GET /api/v1.0/sim-trade/{acc_id}/cash-info

Get account cash/asset information (balance, frozen amount, buying power, market value, P&L).

Parameters ​

ParameterTypeLocationRequiredDescription
acc_idstringpathYesBusiness account ID

Request Example ​

bash
curl -s "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/cash-info" -H "Authorization: Bearer <AccessToken>" | jq

Response Fields ​

FieldTypeDescription
balancestringCash balance
holdstringFrozen amount
max_power_longstringMax buying power
total_assetstringNet asset value
mvstringPosition market value
long_mvstringLong market value
short_mvstringShort market value
unrealized_profitstring/nullUnrealized P&L
realized_profitstring/nullRealized P&L

Response Example ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "balance": "1000000",
    "hold": "40072.58",
    "max_power_long": "959927.42",
    "total_asset": "1000000",
    "mv": "44800",
    "long_mv": "44800",
    "short_mv": "0",
    "unrealized_profit": null,
    "realized_profit": null
  }
}

Error response ​

HTTP status remains 200. A failed request returns ret_code != 0 and an error object.

json
{
  "ret_code": -3,
  "ret_msg": "invalid request",
  "error": {"code": "invalid_parameter", "message": "invalid request"}
}