You can buying equity shares through an online broker. For investing and trading in shares, you need a demat account and a trading account.