Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Getting all available history data

Hi guys,
I know we can access previous prices like this: data.history(assets, 'close', 250, '1d')
but rather than getting just 250 days of prices, what is the most efficient way to get all available historic prices for that asset?

start_date = start of available data 02/01/2002
end_date = get_datetime()

I've tried doing something like this; np.busday_count(start_date, end_date)
and then using that count as the lookback period. But there seems to be a discrepancy between busday_count and q's data.