mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-12 11:50:11 +08:00
fix exchange_bundle: period month padded
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user