Account List
GET/api/v1.0/sim-trade/accountsGet the list of simulated trading accounts for the current logged-in user. Accounts are automatically created on the first call. The returned account_id is used as a path parameter for all subsequent trading endpoints.
Parameters
No input parameters. User ID is automatically passed via the login session header.
Request Example
bash
curl -s "https://webapi.moomoo.com/api/v1.0/sim-trade/accounts" | jqResponse Fields
Returns data.accounts[], each element representing a simulated account.
| Field | Type | Description |
|---|---|---|
account_id | string | Business account ID (used as acc_id in subsequent endpoints) |
broker_id | int | Broker ID |
market_id | int | Market ID (1=HK 2=US 3=US_OPTION 9=HKCC 18=CA) |
intra_account_id | int | Internal account number |
account_type | int | Account type |
account_title | string | Account title |
Response Example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"accounts": [
{
"account_id": "80303779",
"broker_id": 0,
"market_id": 1,
"intra_account_id": 0,
"account_type": 0,
"account_title": "港股模拟账户"
}
]
}
}