Skip to content

Stocks · Prices, tape and indicators

Stocks last trade

The most recent trade of a stock.
GET/v1/stocks/last-tradestocksLastTrade
On this page

The last consolidated trade with price, size, exchange, conditions and timestamps. meta.delayed is true when the entitlement is delayed.

Example request

curl -sS --get "https://api.ordermap.si/v1/stocks/last-trade" \
  -H "Authorization: Bearer $ORDERMAP_API_KEY" \
  --data-urlencode symbol=AAPL

Set ORDERMAP_API_KEY to your key. Replace the dates with a recent trading date.

Parameters

1 parameter, 1 required.

ParameterType and limitsDescription
symbolqueryrequiredstringat most 11 characterspattern ^[A-Za-z]{1,6}(\.[A-Za-z0-9]{1,4})?$Ticker symbol, for example AAPL.

Response

StatusMeaningBody
200Successful response.Schema below
400Invalid, unknown or repeated parameters, or an invalid cursor.Error object
401Missing or invalid API key.Error object
403The plan, dataset release or account state does not allow this request.Error object
422The request is valid but no data exists for it.Error object
429Rate limit, burst limit or cooldown; wait Retry-After seconds.Retry-AfterError object
500Internal error.Error object
503Data temporarily unavailable; retry after Retry-After seconds.Retry-AfterError object
504The request timed out.Error object

Authenticated responses carry the X-RateLimit-* headers (see rate limits); 429 and 503 add Retry-After.

200 response body

  • dataobjectrequiredThe last trade.13 fields inside
    • conditionsarray<integer>requiredTrade condition codes.
    • correctioninteger | nullrequiredCorrection indicator; null for a regular trade.
    • exchangeintegerrequiredNumeric id of the executing exchange.
    • participant_timestampinteger | nullunix-msrequiredTime the exchange stamped the trade. Unix epoch milliseconds (UTC).
    • pricenumberrequiredTrade price.
    • sequence_numberintegerrequiredConsolidated sequence number.
    • sizenumberrequiredTrade size in shares.
    • symbolstringrequiredTicker symbol.
    • tapeinteger | nullrequiredConsolidated tape (1 = NYSE, 2 = NYSE American, 3 = Nasdaq).
    • timestampintegerunix-msrequiredTime the consolidated feed stamped the trade. Unix epoch milliseconds (UTC).
    • trade_idstringrequiredExchange trade id.
    • trf_idinteger | nullrequiredTrade reporting facility id for off-exchange trades.
    • trf_timestampinteger | nullunix-msrequiredTime the facility stamped an off-exchange trade. Unix epoch milliseconds (UTC).
  • metaobjectrequiredMeta object

Example response

{
  "data": {
    "conditions": [
      12,
      37
    ],
    "correction": 0,
    "exchange": 11,
    "participant_timestamp": 1760659200120,
    "price": 231.42,
    "sequence_number": 1563,
    "size": 100,
    "symbol": "AAPL",
    "tape": 3,
    "timestamp": 1760659200123,
    "trade_id": "52983525029461",
    "trf_id": null,
    "trf_timestamp": null
  },
  "meta": {
    "as_of": 1760659200123,
    "coverage": {
      "complete": true
    },
    "delay_ms": 0,
    "delayed": false,
    "request_id": "0199f0c2-5a1e-7c3b-9d4e-2b6f8a1c3d5e",
    "source": "sip"
  }
}

Values are illustrative. Missing values are null, never 0.