Apparently ETFs are not available in the demo account. So you need indeed a real account. Alternatively, you could use the code from Financial Hacker that needs no broker connection at all.