Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
TALIB Key Errors

I've been getting key errors with some equities when using TALIB functions. Most recently, with GDX. Are there any equities not in the TALIB database? If so, how would I avoid these errors when trading based on a set_universe?

1 response

Most likely there is an issue with stocks being added/removed from the universe. I would use a try/except to catch any key errors, then you can log them if you'd like to investigate further. If you still have issues post an algo with the code that's giving you issues, that will make it much easier to figure out exactly what the issue is.