This compilation of historical daily stock market price data relates to the Kenyan Nairobi Securities Exchange (NSE) for the year 2026 upto June. This data is valuable for any machine learning algorithm that needs data (training, validation, testing). This compilation builds on an earlier dataset (2008-2012) that was initially compiled as part of a research project testing 6 stocks to predict the next day price, based on the previous 5 days, using Artificial Neural Network configuration 5:21:21:1 [1],[2],[3]. The data was then enhanced as a new compilation of all stocks for the period 2007-2012[4].
This new dataset augments the NSE dataset from 2007-2012[4], 2013-2020[5], 2021[6], 2022[7], 2023-2024[8] and 2025[9]. The data was scraped from a publicly accessible website[10] licensed by NSE by exporting raw web data to spreadsheets, then cleaning it up to final CSV.
Just like previous compilations, each stock data row has 13 columns (1)Date (2)StockCode (3)StockName (4)12month LowPrice (5)12month HighPrice (6)Day LowPrice (7)Day HighPrice (8)Day FinalPrice (9)Previous traded price (10)Change in price value (11)Change in price% (12)Volume traded (13)Adjusted price. One additional CSV file is also provided to show the stock market sector, with 3 columns (1)Market sector (2)StockCode (3)StockName.
This additional dataset provides researchers with an even larger dataset (2007-2026) of stock market data.
List of data files on this dataset:
NSE_data_all_stocks_2026_upto_jun.csv
NSE_data_stock_market_sectors_2026.csv
References:
[1]Wanjawa, B. W. (2014). A Neural Network Model for Predicting Stock Market Prices at the Nairobi Securities Exchange (Dissertation, University of Nairobi),
erepository.uonbi.ac.ke
[2]Wanjawa, B. W., & Muchemi, L. (2014). ANN model to predict stock prices at stock exchange markets. arXiv preprint arXiv:1502.06434.
[3]Wanjawa, Barack (2020), “Nairobi Securities Exchange Prices 2008-2012 for 6 selected stocks”, Mendeley Data, v3,
dx.doi.org
[4]Wanjawa, Barack (2020), “Nairobi Securities Exchange All Stocks Prices 2007-2012”, Mendeley Data, v1,
dx.doi.org
[5]Wanjawa, Barack (2021), “Nairobi Securities Exchange (NSE) All Stocks Prices 2013-2020”, Mendeley Data, V2, doi: 10.17632/73rb78pmzw.2
[6]Wanjawa, Barack (2022), “Nairobi Securities Exchange (NSE) Kenya - All Stocks Prices 2021”, Mendeley Data, V5, doi: 10.17632/97hkwn5y3x.5
[7]Wanjawa, Barack (2024), “Kenya Nairobi Securities Exchange (NSE) All Stocks Prices 2022”, Mendeley Data, V2, doi: 10.17632/jmcdmnyh2s.2
[8]Wanjawa, Barack (2025), “Kenya Nairobi Securities Exchange (NSE) All Stocks Prices 2023-2024”, Mendeley Data, V3, doi: 10.17632/ss5pfw8xnk.3
[9]Wanjawa, Barack (2026), “Kenya Nairobi Securities Exchange (NSE) All Stocks Prices 2025”, Mendeley Data, V2, doi: 10.17632/2b63rx67xt.2
[10]Synergy Systems Ltd. (2026). MyStocks. Retrieved Jul. 1, 2026, from
live.mystocks.co.ke