mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-11 21:03:40 +08:00
BUG: lookup_expired_futures needs to coerce dts into pd.Timestamp
This commit is contained in:
@@ -667,7 +667,11 @@ class AssetFinder(object):
|
||||
return [contracts[sid] for sid in sids]
|
||||
|
||||
def lookup_expired_futures(self, start, end):
|
||||
if not isinstance(start, pd.Timestamp):
|
||||
start = pd.Timestamp(start)
|
||||
start = start.value
|
||||
if not isinstance(end, pd.Timestamp):
|
||||
end = pd.Timestamp(end)
|
||||
end = end.value
|
||||
|
||||
fc_cols = self.futures_contracts.c
|
||||
|
||||
Reference in New Issue
Block a user