In the Quantopian Open, leveraged ETFs are not allowed in the algorithm's universe. To help you avoid them, we created a trading guard that will prevent your algorithm from ordering these securities.
In the initialize() function, you can add in the new trading guard: set_do_not_order_list(security_lists.leveraged_etf_list). The list is maintained by Quantopian, and will be modified as securities come and go on the exchanges. It's point-in-time and becomes active in the backtester on January 23, 2015. You can read more in the documentation.
You can also pass a custom list as a parameter to set_do_not_order_list. This will prevent your algorithm from ordering any security in the tailored list.
Below is an example of an algo that checks if the trading guard is violated before placing orders.