mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-01 18:37:40 +08:00
3395b33f1e
- Return a value from `verify_all_indices_unique` so that `panel` isn't unconditionally `None` in `PanelDailyBarReader`. - Fix a bug where we always set the volume of every asset to `1e9`. - Add minimal suite of tests for get_spot_value, which catch both of the above. NOTE: There are still several issues with `PanelDailyBarReader`. The docstring for `get_spot_value` claims that it will return -1 on days where an asset didn't trade, which isn't the case. It also claims that it will raise `NoDataOnDate` when a request is made outside the panel range, but it just raises a KeyError. We also still have no coverage for `load_raw_arrays`, so it's likely that there are more bugs lurking.