Unofficial CSE API Docs

Live-probed documentation for https://www.cse.lk/api. Not affiliated with the Colombo Stock Exchange.

POST /marketStatus

market probe ok

Open/closed status string for session gating.

Used by UI: Market status badge / WebSocket companion

Last probe status: 200 · expect [200]

curl

curl -sS -X POST 'https://www.cse.lk/api/marketStatus' \
  -H 'Content-Type: application/json' \
  -H 'Origin: https://www.cse.lk' -H 'Referer: https://www.cse.lk/' \
  -d '{}'

Known failures

Fields

Sample

{
  "_probe": {
    "id": "marketStatus",
    "url": "https://www.cse.lk/api/marketStatus",
    "method": "POST",
    "status": 200,
    "verified_at": "2026-07-16T16:34:30.474624+00:00",
    "fingerprint": {
      "type": "object",
      "keys": [
        "status"
      ]
    }
  },
  "response": {
    "status": "Market Closed"
  }
}