mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 12:19:43 +08:00
44140d2de7
The test factory was creating non-market days. i.e. the date range spanned the weekend. Using pandas' BDay frequency so that only business days are created. This specific date range doesn't have holidays, so not accounting for holidays in the factory. Also, widens the range of the trading calendar to cover the test dates generated by the factory which include 1990. Previously the trading calendar began with 2002, meaning that holiday and weekend adjustments with the data exercised by the factory did not trigger when run with data in 1990. This does increase the memory footprint of the tradingcalendar module. However, only by a couple MB, so taking the hit there to enable correct behavior.