Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How do you remove leveraged ETF?

It seems that there is no easy way to exclude leveraged ETF. Any inputs? Thanks!

1 response

See the help page:

To get a list of leveraged ETFs at a given time, call security_lists.leveraged_etf_list.current_securities(dt), where dt is the current datetime, get_datetime().

Alternatively, if you use the Q500US or Q1500US universe in pipleline, my understanding is that leveraged ETFs have been excluded.