fix exchange_bundle: period month padded

This commit is contained in:
Victor Grau Serrat
2017-10-18 13:55:39 -06:00
parent 6f8fbc2b82
commit 6486744c66
+1 -1
View File
@@ -405,7 +405,7 @@ class ExchangeBundle:
periods = []
dt = sessions[0]
while dt <= sessions[-1]:
period = '{}-{}'.format(dt.year, dt.month) \
period = '{}-{:02d}'.format(dt.year, dt.month) \
if data_frequency == 'minute' else '{}'.format(dt.year)
if period not in periods: