Add python SecurityCache.GetData method (#8724)

* Initial solution

* Fix regression algorithms
This commit is contained in:
JosueNina
2025-04-28 09:46:31 -05:00
committed by GitHub
parent 55b21cd714
commit cc38a6410f
10 changed files with 108 additions and 12 deletions
+1 -1
View File
@@ -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