Hello! Welcome back to our course on investing.
In our last lesson, we defined and compared the three main financial instruments: stocks, bonds, and mutual funds. We established that a stock represents a share of ownership in a company. Now, let's explore the environment where these stocks are bought and sold.
This lesson addresses the learning outcome: Explain what a stock exchange is and how trading works at a high level. Understanding this mechanism is the next logical step in your journey, bridging the gap between knowing what a stock is and knowing how to eventually buy one on the Colombo Stock Exchange (CSE).
1. What is a Stock Exchange?
At its core, a stock exchange is a marketplace. It's a highly organized and regulated environment where financial instruments, primarily stocks, are traded between buyers and sellers. In the past, this was a physical place with traders shouting orders on a "trading floor," but today it's almost entirely a digital platform.
Think of it as a massive, real-time auction house for company ownership. The following video provides an excellent introduction.
How the Stock Market Works For Beginners
The video 'How the Stock Market Works For Beginners' from Finance Simply Explained gives a great analogy of the stock market as a giant digital auction.
Please watch from the beginning until 01:35. Pay attention to how it defines the stock market, the role of an exchange (like NASDAQ or the London Stock Exchange), and the concept of supply and demand setting the prices.
As the video explains, the stock exchange provides the infrastructure for companies to become "publicly traded" and for investors to buy and sell their shares.
Your specific goal is to invest in Sri Lanka, which has one national stock exchange. Let's get its formal definition from the source.
CSE - Basic Guide in Investing in Shares
This guide from the Colombo Stock Exchange (CSE) itself defines its role in the Sri Lankan market.
Please read the section titled 'About the Colombo Stock Exchange' on page 2. Focus on how it describes its responsibility to provide a 'transparent and regulated environment' and its role as a market operator.
In essence, the CSE is the sole, official marketplace for trading shares in Sri Lanka. It sets the rules, ensures fairness, and provides the technology to make trading possible.
2. The High-Level Trading Process
So, how does a trade actually happen? An individual investor doesn't connect directly to the exchange. Instead, you go through a licensed intermediary called a stockbroker.
From your background in IT, you can think of the overall structure as a client-server architecture:
- The Investor (Client): You make the decisions.
- The Broker (API/Gateway): You send your requests (orders) to the broker. The broker authenticates you, validates your request, and routes it to the exchange.
- The Stock Exchange (Server/Backend): This is the core engine that receives orders from all brokers and processes them.
This data flow diagram gives a simplified visual representation of the relationships between the customer, broker, and the exchange system.

3. How Trading Works: Orders, Matching, and Price
The "magic" of the stock exchange happens in how it determines the price and executes trades. This is driven by two key concepts: the orders placed by investors and the system that matches them.
Price Discovery: Supply and Demand
As we've touched upon, stock prices are not set by the company or the exchange. They are determined by the collective actions of all market participants.
- If buy orders (demand) outnumber sell orders (supply), the price is pushed up.
- If sell orders (supply) outnumber buy orders (demand), the price is pushed down.
This dynamic creates a constantly fluctuating market price for every stock.
Placing an Order
When you decide to buy or sell a stock, you must place an order through your broker. There are two fundamental types of orders.
How the Stock Market Works For Beginners
Let's return to the 'How the Stock Market Works For Beginners' video. This segment explains the role of an online broker and the two main order types you'll use.
Please watch from 08:25 to 09:42. Focus on the distinction between a 'market order' and a 'limit order'.
To summarize:
- Market Order: An instruction to buy or sell immediately at the current best available market price. It guarantees execution but not the exact price.
- Limit Order: An instruction to buy or sell only at a specific price or better. It gives you control over the price but does not guarantee the trade will happen.
The "Engine Room": The Automated Trading System (ATS)
Once your broker submits your order, it enters the exchange's central electronic system. The CSE, like all modern exchanges, uses an Automated Trading System (ATS). This is a sophisticated software platform that acts as the matching engine.
The ATS continuously matches buy and sell orders based on a price-time priority algorithm:
- Price Priority: The highest bid (buy order) and the lowest ask (sell order) get top priority.
- Time Priority: If there are multiple orders at the same price, the one that was entered first gets executed first.
This automated process is what allows thousands of trades to be executed every minute with speed and accuracy.
This document from the CSE describes the technology behind its trading operations. Given your IT background, this should be particularly interesting.
Please read the section 'The Automated Trading System (ATS)' on page 10. Note the features it provides, such as high-speed execution and order matching on a 'price-time priority'.
4. Practical Steps on the Colombo Stock Exchange
Let's bring this all together by looking at the specific steps for trading on the CSE. The following reading translates the abstract concepts of orders and brokers into a concrete, practical checklist.
CSE - Basic Guide in Investing in Shares
Let's refer back to the CSE's 'Basic Guide'. This section walks you through the exact information you need before placing an order.
Read the section 'Buying and Selling shares - basic steps' on page 15. Pay attention to the list of information required before placing an order and the description of 'Bought Notes' and 'Sold Notes,' which are the official confirmations of your trades.
This guide confirms everything we've discussed: you need a broker, you must choose an order type (market or limit), and after a trade, you receive a formal confirmation.
Conclusion
In this lesson, we have demystified the stock exchange and the process of trading. You now have a high-level understanding of how this crucial marketplace functions.
Key Takeaways:
- A stock exchange is a regulated marketplace (like the CSE) for trading securities.
- Trading is done through brokers, who act as intermediaries for investors.
- Prices are determined by the continuous interaction of supply and demand.
- The exchange uses an Automated Trading System (ATS) to match buy and sell orders based on price-time priority.
- The two basic order types are market orders (for speed) and limit orders (for price control).
Preview of the Next Lesson:
Now that you know how stocks are traded on an exchange, the next logical question is: how do you make money from them? In our next lesson, we will explore the two ways shareholders earn returns: dividends and capital appreciation.