Skip to content

Indices · Values and bars

Indices previous close

The previous trading day's bar of an index.
GET/v1/indices/previous-closeindicesPreviousClose
On this page

Open, high, low and close of the most recent completed trading day of an index, with its date.

Example request

curl -sS --get "https://api.ordermap.si/v1/indices/previous-close" \
  -H "Authorization: Bearer $ORDERMAP_API_KEY" \
  --data-urlencode symbol=SPX

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 10 characterspattern ^[A-Za-z][A-Za-z0-9]{0,9}$Index symbol, for example SPX.

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 previous trading day's bar.7 fields inside
    • closenumberrequiredClose (the previous close).
    • datestringdaterequiredTrading date of the bar.
    • highnumberrequiredHigh.
    • lownumberrequiredLow.
    • opennumberrequiredOpen.
    • start_timeintegerunix-msrequiredStart of the daily bar. Unix epoch milliseconds (UTC).
    • symbolstringrequiredIndex symbol.
  • metaobjectrequiredMeta object

Example response

{
  "data": {
    "close": 5978.9,
    "date": "2026-10-15",
    "high": 5990.4,
    "low": 5955.3,
    "open": 5961.8,
    "start_time": 1792036800000,
    "symbol": "SPX"
  },
  "meta": {
    "as_of": 1760659200123,
    "coverage": {
      "complete": true
    },
    "delay_ms": 0,
    "delayed": false,
    "request_id": "0199f0c2-5a1e-7c3b-9d4e-2b6f8a1c3d5e",
    "source": "index_feed"
  }
}

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