Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to get next trading date for an asset?

Hi,

In quantopian, I am struggling to get the next trading date for an asset. I see some functionality in zipline around TradingCalendar (more specifically the next_close method), but how can I get this working in quantopian for a certain future/stock?

For example, for a date (from get_datetime) May 12, I'd like to get May 15 if Monday is not a holiday, or May 16 if Monday is a holiday.

Thanks in advance,
Ivan