mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 22:40:20 +08:00
4832004c33
Adds tests asserting that we resolve conflicts in accordance with the following rules when we have multiple assets holding the same symbol at the same time: If multiple SIDs exist for symbol S at time T, return the candidate SID whose start_date is highest. (200 cases) If multiple SIDs exist for symbol S at time T, the best candidate SIDs share the highest start_date, return the SID with the highest end_date. (34 cases) It is the opinion of the author (ssanderson) that we should consider this malformed input and fail here. But this is the current indended behavior of the code, and I accidentally broke it while refactoring. These will serve as regression tests until the time comes that we decide to enforce this as an error. See https://github.com/quantopian/zipline/issues/837 for more details.