Position List
GET/api/v1.0/sim-trade/{acc_id}/positionsGet the position list (symbol, direction, quantity, cost, market value, P&L).
Parameters
| Parameter | Type | Location | Required | Description |
|---|---|---|---|---|
acc_id | string | path | Yes | Business account ID |
market | int | query | No | Market filter |
Request Example
bash
curl -s "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/positions" | jqResponse Fields
Returns data.positions[].
| Field | Type | Description |
|---|---|---|
pstn_id | string | Position ID |
pstn_type | int | 0=Long 1=Short |
market | int | Market |
symbol | string | Symbol |
stock_name | string | Name |
qty | string | Quantity |
qty_avbl | string | Available quantity |
cost_price | string | Cost price |
buy_avg_price | string | Average buy price |
cur_price | string | Current price |
mv | string | Market value |
profit | string | P&L amount |
profit_ratio | string | P&L ratio |
Response Example
json
{
"ret_code": 0,
"data": {
"positions": [
{
"pstn_id": "133969",
"pstn_type": 0,
"market": 1,
"symbol": "00700",
"stock_name": "腾讯控股",
"qty": "100",
"qty_avbl": "100",
"cost_price": "448.2",
"cur_price": "448",
"mv": "44800",
"profit": "-20",
"profit_ratio": "-0.0446"
}
]
}
}