All your investment holdings located at Demat account, not in a trading account. So even after the broker goes bankrupt, your holdings are safe with Demat account.