How demat account works

How exactly does a demat account operate during trading and investing?

A demat account works by holding your securities electronically with a depository, allowing you to buy, sell, and manage them through your DP without handling physical certificates.