Viewing: Market

Market

Get market-wide data including index values, top movers, and sector performance.

GET /market/summary/?index=TASI

Free

Get market index value, volume, and market sentiment.

Endpoint

https://api.sahmk.sa/api/v1/market/summary/?index=TASI

Parameters

(*) Required

ParameterTypeExample
index stringTASI
data_mode stringdelayed

Supported values: TASI, NOMU. Default is TASI.
data_mode supports realtime, delayed. If omitted, plan default behavior is used.

200 OKapplication/json
{
  "index": "TASI",
  "is_delayed": false,
  "timestamp": "2026-08-12T12:20:00+00:00",
  "index_value": 10844.12,
  "index_change": 10.94,
  "index_change_percent": 0.1,
  "total_volume": 256387075,
  "advancing": 141,
  "declining": 112,
  "unchanged": 17,
  "market_mood": "Bullish"
}

GET /market/gainers/?limit=1&index=TASI

Free

Get top gaining stocks by percentage change.

Endpoint

https://api.sahmk.sa/api/v1/market/gainers/?limit=1&index=TASI

Parameters

(*) Required

ParameterTypeExample
index stringTASI
limit number1
data_mode stringdelayed

data_mode supports realtime, delayed. If omitted, plan default behavior is used.

200 OKapplication/json
{
  "index": "TASI",
  "is_delayed": false,
  "gainers": [
    {
      "symbol": "6040",
      "name": "شركة تبوك للتنمية الزراعية",
      "name_en": "Tabuk Agriculture Development C",
      "price": 9.13,
      "change": 0.83,
      "change_percent": 10.0,
      "volume": 4846179,
      "updated_at": "2026-08-12T13:00:00+00:00"
    }
  ],
  "count": 1
}

GET /market/losers/?limit=1&index=TASI

Free

Get top losing stocks by percentage change.

Endpoint

https://api.sahmk.sa/api/v1/market/losers/?limit=1&index=TASI

Parameters

(*) Required

ParameterTypeExample
index stringTASI
limit number1
data_mode stringdelayed

data_mode supports realtime, delayed. If omitted, plan default behavior is used.

200 OKapplication/json
{
  "index": "TASI",
  "is_delayed": false,
  "losers": [
    {
      "symbol": "4011",
      "name": "شركة لازوردي للمجوهرات",
      "name_en": "L'azurde Company for Jewelry SJSC",
      "price": 10.43,
      "change": -0.47,
      "change_percent": -4.31,
      "volume": 369026,
      "updated_at": "2026-08-12T13:00:00+00:00"
    }
  ],
  "count": 1
}

GET /market/volume/?limit=1&index=TASI

Free

Get top stocks by trading volume.

Endpoint

https://api.sahmk.sa/api/v1/market/volume/?limit=1&index=TASI

Parameters

(*) Required

ParameterTypeExample
index stringTASI
limit number1
data_mode stringdelayed

data_mode supports realtime, delayed. If omitted, plan default behavior is used.

200 OKapplication/json
{
  "index": "TASI",
  "is_delayed": false,
  "stocks": [
    {
      "symbol": "6015",
      "name": "شركة أمريكانا للمطاعم العالمية بي إل سي - شركة أجنبية",
      "name_en": "AMERICANA",
      "price": 2.38,
      "change": 0.07,
      "change_percent": 3.03,
      "volume": 22562421,
      "updated_at": "2026-08-12T13:00:00+00:00"
    }
  ],
  "count": 1
}

GET /market/value/?limit=1&index=TASI

Free

Get top stocks by trading value (SAR).

Endpoint

https://api.sahmk.sa/api/v1/market/value/?limit=1&index=TASI

Parameters

(*) Required

ParameterTypeExample
index stringTASI
limit number1
data_mode stringdelayed

data_mode supports realtime, delayed. If omitted, plan default behavior is used.

200 OKapplication/json
{
  "index": "TASI",
  "is_delayed": false,
  "stocks": [
    {
      "symbol": "2380",
      "name": "شركة رابغ للتكرير والبتروكيماويات",
      "name_en": "Rabigh Refining and Petrochemic",
      "price": 17.6,
      "change": 0.51,
      "change_percent": 2.98,
      "volume": 14502060,
      "value": 257478357.3,
      "updated_at": "2026-08-12T13:00:00+00:00"
    }
  ],
  "count": 1
}

GET /market/sectors/?index=TASI

Free

Get sector performance and statistics.

Endpoint

https://api.sahmk.sa/api/v1/market/sectors/?index=TASI

Parameters

(*) Required

ParameterTypeExample
index stringTASI
data_mode stringdelayed

data_mode supports realtime, delayed. If omitted, plan default behavior is used.

200 OKapplication/json
{
  "index": "TASI",
  "is_delayed": false,
  "sectors": [
    {
      "sector_name": "Insurance",
      "sector_name_ar": "التأمين",
      "change_percent": 1.49,
      "avg_change_percent": 0.02,
      "volume": 9819397,
      "num_stocks": 26
    }
  ],
  "count": 20
}
View Endpoint-Specific Error (invalid index)
json
{
  "error": {
    "code": "INVALID_INDEX",
    "message": "Invalid index 'XYZ'. Supported values: TASI, NOMU."
  }
}

Last updated on