Skip to content

Place Order

POST /api/v1.0/sim-trade/{acc_id}/orders

Place a simulated trade order. Limit orders require a price; orders priced above market price are filled immediately. HK stock quantities must be multiples of the board lot size.

Parameters

ParameterTypeLocationRequiredDescription
acc_idstringpathYesBusiness account ID
marketintbodyYesMarket (from market_id in account list)
symbolstringbodyYesSecurity symbol
order_typeintbodyYes1=Limit 3=Market
order_sideintbodyYes1=Buy 2=Sell 3=Short Sell 4=Buy Back
qtystringbodyYesQuantity
pricestringbodyNoPrice (required for limit orders)
textstringbodyNoRemark (≤100 bytes)

Request Example

bash
curl -s -X POST "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/orders" \
  -H "Content-Type: application/json" \
  -d '{"market":1,"symbol":"00700","order_type":1,"order_side":1,"qty":"100","price":"400"}' | jq

Response Fields

FieldTypeDescription
order_idstringOrder ID

Response Example

json
{
  "ret_code": 0,
  "data": {
    "order_id": "1270777"
  }
}