mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-04 12:45:06 +08:00
BUG: Fix bad attribute lookup on session continuous future reader.
Use `roll_style` not `roll`. Also, add test case to cover using the session bar reader `get_value`, by adding a test which uses `close`, since only `contract` was being exercised, which does not exercise the session daily bar reader.
This commit is contained in:
@@ -135,7 +135,7 @@ class ContinuousFutureSessionBarReader(SessionBarReader):
|
||||
If the given dt is not a valid market minute (in minute mode) or
|
||||
session (in daily mode) according to this reader's tradingcalendar.
|
||||
"""
|
||||
rf = self._roll_finders[continuous_future.roll]
|
||||
rf = self._roll_finders[continuous_future.roll_style]
|
||||
sid = (rf.get_contract_center(continuous_future.root_symbol,
|
||||
dt,
|
||||
continuous_future.offset))
|
||||
|
||||
Reference in New Issue
Block a user