CSE Unofficial API
Comprehensive documentation for the unofficial Colombo Stock Exchange (CSE) API. Build powerful financial applications using real-time market data from Sri Lanka's primary stock exchange.
Unofficial Documentation: This project is a third-party effort and is not affiliated with the Colombo Stock Exchange. Use these endpoints responsibly for educational and research purposes. Do not use for high-frequency trading or extensive commercial applications without permission.
Base URL
About CSE
The Colombo Stock Exchange (CSE) is the nucleus of Sri Lanka's capital market. Established in 1985 (replacing the Share Brokers Association), it operates as a company limited by guarantee and is regulated by the Securities and Exchange Commission of Sri Lanka (SEC).
As of late 2025, the CSE lists over 286 companies representing 20 GICS industry groups, with a market capitalization exceeding Rs. 8 Trillion. It is a full member of the World Federation of Exchanges (WFE).
Market Hours
- Pre-open Session 09:00 - 09:30 AM
- Open Auction 09:30 AM
- Regular Trading 09:30 - 02:30 PM
- Time Zone GMT+5:30 (SLT)
Key Indices
-
ASPI PrimaryAll Share Price Index. measures price movements of all listed companies. Base: 1985.
-
S&P SL20 Blue ChipTracks the 20 largest and most liquid stocks, developed with S&P Dow Jones Indices.
Infrastructure
- Trading System Electronic (ATS)
- Settlement T+3 Cycle
- Depository CDS (Central Depository)
Authentication & Headers
Accessing the API does not currently require an API key. However, the server expects requests to mimic a standard browser session. Always include the following headers:
Content-Type: application/x-www-form-urlencoded User-Agent: Mozilla/5.0 ... (Standard Browser UA) Origin: https://www.cse.lk Referer: https://www.cse.lk/
Market Summary
Retrieve high-level market statistics for the current trading day.
Response Example
{
"tradeVolume": 3263762020.0,
"shareVolume": 115084307,
"turnover": 1.25E9,
"topSector": "Capital Goods"
}
Daily Market Summary
Detailed breakdown of daily market performance, including foreign/domestic splits and market capitalization.
[
[
{
"id": 22240,
"marketTurnover": 3.26E9,
"marketCap": 6.94E12,
"marketDomestic": 30003.0,
"marketForeign": 271.0
}
]
]
Market Status
Check the current operational status of the market.
{ "status": "Market Closed" }
ASPI Data
Real-time data for the All Share Price Index.
{ "value": 19826.57, "change": 21.77, "percentageChange": 0.11 }
S&P SL20 Data
Real-time data for the S&P SL20 Index.
{ "value": 5825.39, "change": -2.46 }
Sector Indices
[
{ "symbol": "EGY", "indexName": "Energy", "change": 1.2 },
{ "symbol": "BNK", "indexName": "Banks", "change": -0.5 }
]
Company Info Summary
| Parameter | Description |
|---|---|
| symbol string |
The stock symbol (e.g., LOLC.N0000). |
{
"reqLogo": { "path": "upload_logo/..." },
"reqSymbolInfo": {
"symbol": "LOLC.N0000",
"name": "L O L C HOLDINGS PLC",
"lastTradedPrice": 450.25
}
}
Trade Summary
Summary of recent trades for available securities.
{"reqTradeSummery": [{"symbol": "ABAN.N0000", "price": 579.75}]
Detailed Trades
| Parameter | Description |
|---|---|
| symbol string (optional) |
Filter by stock symbol. |
{
"reqDetailTrades": [
{
"symbol": "ABAN.N0000",
"price": 585.0,
"qty": 562,
"time": "10:45:22"
}
]
}
Chart Data
| Parameter | Description |
|---|---|
| symbol string |
Stock symbol. |
{"reqTradeSummery": {'chartData': [{'h': 562.0, 'l': 550.0, 'c': 560.0, ...}]}
Today's Share Price
[{"symbol": "ABAN.N0000", "lastTradedPrice": 579.75}]
Top Gainers
[{"symbol": "HEXP.N0000", "changePercentage": 15.86}]
Top Losers
[{"symbol": "TESS.X0000", "changePercentage": -10.0}]
Most Active
[{"symbol": "KZOO.N0000", "tradeVolume": 1102.0}]
Announcements
Collection of endpoints related to company announcements.
Announcements
/getNewListingsRelatedNoticesAnnouncements- IPOs and new listings/getBuyInBoardAnnouncements- Failed settlements/approvedAnnouncement- Regulatory approvals/getFinancialAnnouncement- Quarterly earnings/circularAnnouncement- Official circulars/directiveAnnouncement- SEC directives