mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-29 19:15:14 +08:00
82bc2a6d3d
Fix multiple errors when attempting to generate rolls for futures which do not roll month to month, e.g. the Eurodollar. These errors were caused by logic that always incremented from contract to contract by delivery month, with errors when the next contract was not part of the quarterly roll chain and thus had not yet begun trading even though the previous contract had autoclosed. Instead, filter out these contracts and only allow contracts that have begun trading before the previous contract's autoclose. This is in lieu of a more explicit specification of quarterly rolls.