Add python SecurityCache.GetData method (#8724)
* Initial solution * Fix regression algorithms
This commit is contained in:
@@ -134,7 +134,7 @@ class SimpleCustomFillModel(FillModel):
|
||||
return fill
|
||||
|
||||
def _get_trade_bar(self, asset, order_direction):
|
||||
trade_bar = asset.cache.get_data[TradeBar]()
|
||||
trade_bar = asset.cache.get_data(TradeBar)
|
||||
if trade_bar: return trade_bar
|
||||
|
||||
# Tick-resolution data doesn't have TradeBar, use the asset price
|
||||
|
||||
Reference in New Issue
Block a user