OPEN cal start=2015-03-01, minor fixes for rc-0.1.dev7

This commit is contained in:
Victor Grau Serrat
2017-08-09 12:49:53 +02:00
parent cafd79bd0f
commit 3c8f6958fd
7 changed files with 9 additions and 13 deletions
+2 -2
View File
@@ -279,7 +279,7 @@ def ensure_crypto_benchmark_data(symbol,
None,
symbol,
get_calendar(bundle.calendar_name),
first_date,
first_date - trading_day,
last_date,
'daily',
)
@@ -491,7 +491,7 @@ def _load_cached_data(filename, first_date, last_date, now, resource_name,
if os.path.exists(path):
try:
data = from_csv(path)
data.index = pd.to_datetime(data.index).tz_localize('UTC')
data.index = pd.to_datetime(data.index, infer_datetime_format=True, errors='coerce' ).tz_localize('UTC')
if has_data_for_dates(data, first_date, last_date):
return data