Alpha Streams improvements (#5876)
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled

* Alpha Streams improvements

- Warmup added securities so we can trigger an order right away
- Fix bug where AddSecurity returned a security which was not the one
  being used
- Fix bug where EWAS PCM would remove from a dictionary while iterating
  over it

* Fix unit tests

* Add QCAlgorithm.GetLastKnownPrices API

- Add new GetLastKnownPrices that will return the last known data point
  for all subscribed data types.
- Fix for MHDB GetDataTimeZone which was using an invalid entry key
  format for custom data.
- Fix for using GetLastKnownPrice/s to seed a security during creation,
  when it's not added in the Algorithm.Securities collection

* Adding more unit tests for GetLastKnownPrice

* Address reviews

- Refactor GetLastKnownPrice/s to perform a single history request for
  all data types
This commit is contained in:
Martin-Molinero
2021-08-27 13:50:45 -03:00
committed by GitHub
parent dc433493b7
commit 933e5ce6ca
13 changed files with 263 additions and 169 deletions
+1 -2
View File
@@ -268,8 +268,7 @@ namespace QuantConnect.Algorithm
extendedMarketHours: true);
var security = Securities.CreateSecurity(symbol, config, leverage, addToSymbolCache: false);
AddToUserDefinedUniverse(security, new List<SubscriptionDataConfig> { config });
return security;
return AddToUserDefinedUniverse(security, new List<SubscriptionDataConfig> { config });
}
/// <summary>