Get Orders

GET/accounts/{accountId}/orders

Return all orders for the specified account.

Path Parameters

accountIdstringrequired

The account identifier.

Response

200application/json

Successful response in standard envelope.

sstring

Status indicator. ok on success.

dobject[]

Array of orders.

d[].idstring

Unique order identifier. Example: 0611857611582734336.

d[].instrumentstring

Ticker symbol. Example: AAAU.

d[].namestring

Security name. Example: Goldman Sachs Physical Gold ETF.

d[].securityTypestring

Asset class. Enum: stock; etf; option; future; crypto.

d[].sidestring

Order direction. Enum: buy; sell; sellShort; buyToCover.

d[].typestring

Order type. Enum: market; limit; stop; stopLimit.

d[].qtynumber

Requested quantity in shares.

d[].amountnumber

Requested notional value (used when quantityType is amount).

d[].quantityTypestring

How quantity is expressed. Enum: qty — shares; amount — notional value.

d[].limitPricenumber

Limit price for limit and stopLimit orders.

d[].stopPricenumber

Stop trigger price for stop and stopLimit orders.

d[].durationTypestring

Time-in-force. Enum: Day; GTC.

d[].extendHoursstring

Extended hours participation. Enum: Regular; Pre; Post; PrePost.

d[].statusstring

Current order status. Enum: Working; Filled; PartiallyFilled; Cancelled; Rejected; DoneForDay.

d[].isActiveboolean

true if the order is still open and working.

d[].filledQtynumber

Number of shares filled so far.

d[].filledAmountnumber

Total notional value filled.

d[].avgPricenumber

Average execution price.

d[].filledTimenumber

Unix timestamp (ms) of the last fill. 0 if unfilled.

d[].lastModifiednumber

Unix timestamp (ms) of the last status change.

d[].exchangestring

Exchange identifier.

d[].unitnumber

Contract unit size.

d[].messageobject

Human-readable status message from the broker.

d[].message.textstring

Message text. Example: Order Doneforday.

d[].message.typestring

Message severity. Enum: information; warning; error.

Response Example

{
  "s": "ok",
  "d": [
    {
      "id": "0611857611582734336",
      "instrument": "AAAU",
      "name": "Goldman Sachs Physical Gold ETF",
      "securityType": "etf",
      "side": "sell",
      "type": "stop",
      "qty": 1.0,
      "amount": 0.0,
      "quantityType": "qty",
      "limitPrice": 0.0,
      "stopPrice": 48.48,
      "durationType": "Day",
      "extendHours": "Regular",
      "status": "Cancelled",
      "isActive": false,
      "filledQty": 0.0,
      "filledAmount": 0.0,
      "avgPrice": 0.0,
      "filledTime": 0,
      "lastModified": 1770947022829,
      "exchange": "169",
      "unit": 1,
      "message": {
        "text": "Order Doneforday",
        "type": "information"
      }
    }
  ]
}