Skip to content

账户资金

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

获取账户现金/资产信息(余额、冻结、购买力、市值、盈亏)。

请求参数

参数类型位置必填说明
acc_idstringpath业务账户 ID

请求示例

bash
curl -s "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/cash-info" | jq

响应字段

字段类型说明
balancestring现金结余
holdstring冻结资金
max_power_longstring最大购买力
total_assetstring资产净值
mvstring持仓市值
long_mvstring多头市值
short_mvstring空头市值
unrealized_profitstring/null未实现盈亏
realized_profitstring/null已实现盈亏

响应示例

json
{
  "ret_code": 0,
  "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
  }
}