You need a demat account linked to your bank account to apply for an IPO. However, if you plan to sell the shares after listing, you must also have a trading account.