账户资金
GET/api/v1.0/sim-trade/{acc_id}/cash-info获取账户现金/资产信息(余额、冻结、购买力、市值、盈亏)。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
acc_id | string | path | 是 | 业务账户 ID |
请求示例
bash
curl -s "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/cash-info" | jq响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
balance | string | 现金结余 |
hold | string | 冻结资金 |
max_power_long | string | 最大购买力 |
total_asset | string | 资产净值 |
mv | string | 持仓市值 |
long_mv | string | 多头市值 |
short_mv | string | 空头市值 |
unrealized_profit | string/null | 未实现盈亏 |
realized_profit | string/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
}
}