Skip to content

Get Order Details

POST /api/v1.0/accounts/{acc_id}/orders/detail

Query the details of specified orders.

Path Parameters

ParameterTypeRequiredDescription
acc_idstringYesTrading business account ID.

Request Parameters

ParameterTypePositionRequiredDescription
exchangestringBodyYesExchange. If querying multiple orders, these orders must be in the same exchange. See Naming Dictionary
order_idslist[string]BodyYesOrder ID list. The length of order_ids should be less than 50.

Request Example

bash
curl -X POST 'https://webapi.moomoo.com/api/v1.0/accounts/{acc_id}/orders/detail' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <AccessToken>' \
  -d '{
    "exchange": "US",
    "order_ids": ["order_id_1", "order_id_2"]
  }' | jq

Response Example

json
{
  "s": "ok",
  "d": [
    {
      "side": "BUY",
      "order_type": "LIMIT",
      "order_status": "FILLED_ALL",
      "order_id": "2024030100000001",
      "code": "US.AAPL",
      "stock_name": "Apple Inc.",
      "security_type": "STOCK",
      "qty": "100",
      "price": "180.000",
      "currency": "USD",
      "create_time": 1709251200000000,
      "updated_time": 1709251210000000,
      "dealt_qty": "100",
      "dealt_avg_price": "180.000",
      "last_err_msg": "",
      "remark": "",
      "time_in_force": "DAY",
      "session": "RTH",
      "aux_price": "0.000",
      "trail_type": "NONE",
      "trail_value": "0.000",
      "trail_spread": "0.000"
    }
  ]
}

Error Response:

json
{
  "s": "error",
  "errcode": -1200,
  "errmsg": "Error message."
}