mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-29 03:02:36 +08:00
MAINT: Guarantee bool dtype for can_trade.
This commit is contained in:
@@ -486,7 +486,7 @@ cdef class BarData:
|
||||
)
|
||||
for asset in assets
|
||||
]
|
||||
return pd.Series(data=tradeable, index=assets)
|
||||
return pd.Series(data=tradeable, index=assets, dtype=bool)
|
||||
|
||||
cdef bool _can_trade_for_asset(self, asset, dt, adjusted_dt, data_portal):
|
||||
cdef object session_label
|
||||
|
||||
Reference in New Issue
Block a user