Stock markets facilitate the trading of equity shares among buyers and sellers, acting as a cornerstone of free-market economies. To invest in the stock market, one must open a trading and demat account through a broker, necessitating KYC documentation. Transaction costs include brokerage fees, government taxes on trades, and nominal charges for maintaining the demat account.