Replace RestShap with HttpClient (#9143)
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Syntax Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled

* Replace RestShap with HttpClient

* Address peer review

* Minor fixes
This commit is contained in:
Jhonathan Abreu
2025-12-22 09:50:25 -04:00
committed by GitHub
parent 661356e33e
commit ef1cf8e4df
13 changed files with 311 additions and 788 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ class HistoryAlgorithm(QCAlgorithm):
self.add_equity("SPY", Resolution.DAILY)
IBM = self.add_data(CustomDataEquity, "IBM", Resolution.DAILY)
# specifying the exchange will allow the history methods that accept a number of bars to return to work properly
IBM.Exchange = EquityExchange()
IBM.exchange = EquityExchange()
# we can get history in initialize to set up indicators and such
self.daily_sma = SimpleMovingAverage(14)
@@ -96,7 +96,7 @@ class HistoryAlgorithm(QCAlgorithm):
self.assert_history_count("History(CustomDataEquity, self.securities.keys(), 14)", all_custom_data, 14 * 2)
# NOTE: Using different resolutions require that they are properly implemented in your data type. If your
# custom data source has different resolutions, it would need to be implemented in the GetSource and
# custom data source has different resolutions, it would need to be implemented in the GetSource and
# Reader methods properly.
#custom_data_history = self.history(CustomDataEquity, "IBM", timedelta(7), Resolution.MINUTE)
#custom_data_history = self.history(CustomDataEquity, "IBM", 14, Resolution.MINUTE)