Skip to content

Options · Single contract

Options contract trade at time

The last trade of one contract at an instant.
GET/v1/options/contract/trade-at-timeoptionsContractTradeAtTime
On this page

The last trade at or before the given instant. trade.timestamp is when that trade occurred.

Example request

curl -sS --get "https://api.ordermap.si/v1/options/contract/trade-at-time" \
  -H "Authorization: Bearer $ORDERMAP_API_KEY" \
  --data-urlencode underlying_symbol=SPXW \
  --data-urlencode contract_type=call \
  --data-urlencode strike=5800 \
  --data-urlencode date_of_expiry=2026-10-16 \
  --data-urlencode timestamp=1792157400000

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

Parameters

5 parameters, 5 required.

ParameterType and limitsDescription
underlying_symbolqueryrequiredstringat most 8 characterspattern ^[A-Za-z][A-Za-z0-9.]{0,7}$Option root of the contract, at most six characters: SPXW (weekly and daily, PM-settled) and SPX (monthly, AM-settled) are different roots, as are NDXP and NDX, RUTW and RUT, QQQ, SPY, XSP ...
contract_typequeryrequiredstringcallputcall or put.
strikequeryrequirednumber> 0max 99999.999Strike price in dollars with at most three decimals, for example 5800 or 5812.5.
date_of_expiryqueryrequiredstringdateExpiration date of the contract, YYYY-MM-DD.
timestampqueryrequiredintegerunix-msmin 946684800000max 4102444800000The instant, Unix epoch milliseconds. Instants outside the regular session (09:30-16:15 ET) require the overnight entitlement.

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 of one contract at an instant.14 fields inside
    • contract_typestringrequiredCall or put.callput
    • date_of_expirystringdaterequiredExpiration date.
    • option_symbolstringrequiredOCC option symbol of the contract: root padded to six characters, expiration YYMMDD, C or P and the strike in thousandths over eight digits.
    • requested_timestampintegerunix-msrequiredThe instant that was asked for. Unix epoch milliseconds (UTC).
    • strikenumberrequiredStrike price in dollars.
    • tradeobject | nullrequiredThe trade.7 fields inside
      • conditionintegerrequiredSale condition code.
      • exchangeintegerrequiredExchange code of the venue that executed the trade.
      • extended_conditionsarray<integer>requiredExtended sale condition codes; empty when none apply.
      • pricenumberrequiredTrade price per contract in dollars.
      • sequenceintegerrequiredSequence number of the trade in the consolidated feed.
      • sizeintegerrequiredContracts traded.
      • timestampintegerunix-msrequiredTime of the trade. Unix epoch milliseconds (UTC).
    • underlying_symbolstringrequiredOption root of the contract.
  • metaobjectrequiredMeta object

Example response

{
  "data": {
    "option_symbol": "SPXW  261016C05800000",
    "underlying_symbol": "SPXW",
    "contract_type": "call",
    "strike": 5800,
    "date_of_expiry": "2026-10-16",
    "requested_timestamp": 1792157400000,
    "trade": {
      "timestamp": 1792157398123,
      "sequence": 1563208,
      "price": 12.4,
      "size": 25,
      "exchange": 5,
      "condition": 18,
      "extended_conditions": []
    }
  },
  "meta": {
    "as_of": 1760659200123,
    "coverage": {
      "complete": true
    },
    "delay_ms": 0,
    "delayed": false,
    "request_id": "0199f0c2-5a1e-7c3b-9d4e-2b6f8a1c3d5e",
    "source": "opra"
  }
}

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