Skip to content

Indices · Statistics

Indices relative strength

Normalized performance of one index against another and the change of their ratio.
GET/v1/indices/relative-strengthindicesRelativeStrength
On this page

For each of the last window sessions (20 to 252), oldest first, the percentage change of the index and of the base index since the close before the first row, and the percentage change of the ratio of the two (index over base): positive when the index outperforms. Rows exist for the sessions both indexes traded. The changes are measured from a longer lookback than the rows returned: only rows inside your plan's history window are returned, so on a plan with a short window the first row returned is not 0, and meta.coverage says when rows were withheld. An index without daily bars is listed in meta.coverage.missing and no rows are returned. Two daily-bar reads; no index values are returned.

Example request

curl -sS --get "https://api.ordermap.si/v1/indices/relative-strength" \
  -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

3 parameters, 1 required.

ParameterType and limitsDescription
symbolqueryrequiredstringat most 10 characterspattern ^[A-Za-z][A-Za-z0-9]{0,9}$Index symbol, for example NDX.
basequeryoptionalstringdefault SPXat most 10 characterspattern ^[A-Za-z][A-Za-z0-9]{0,9}$The index to measure against. Must differ from symbol.
windowqueryoptionalintegerdefault 60min 20max 252Number of sessions, 20 to 252.

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

  • dataarray<object>required4 fields inside
    • base_performance_pctnumberrequiredThe same for the base index.
    • datestringdaterequiredExchange date.
    • performance_pctnumberrequiredChange of the index since the close before the first row, in percent.
    • ratio_change_pctnumberrequiredChange of the index-over-base ratio since the same close, in percent.
  • metaobjectrequiredMeta object

Example response

{
  "data": [
    {
      "base_performance_pct": 1.62,
      "date": "2026-10-15",
      "performance_pct": 2.41,
      "ratio_change_pct": 0.78
    }
  ],
  "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.