Lean
$LEAN_TAG$
|
This interface allows interested parties to lookup or enumerate the available symbols. Data source exposes it if this feature is available. Availability of a symbol doesn't imply that it is possible to trade it. This is a data source specific interface, not broker specific. More...
Public Member Functions | |
IEnumerable< Symbol > | LookupSymbols (Symbol symbol, bool includeExpired, string securityCurrency=null) |
Method returns a collection of Symbols that are available at the data source. More... | |
bool | CanPerformSelection () |
Returns whether selection can take place or not. More... | |
This interface allows interested parties to lookup or enumerate the available symbols. Data source exposes it if this feature is available. Availability of a symbol doesn't imply that it is possible to trade it. This is a data source specific interface, not broker specific.
Definition at line 24 of file IDataQueueUniverseProvider.cs.
IEnumerable<Symbol> QuantConnect.Interfaces.IDataQueueUniverseProvider.LookupSymbols | ( | Symbol | symbol, |
bool | includeExpired, | ||
string | securityCurrency = null |
||
) |
Method returns a collection of Symbols that are available at the data source.
symbol | Symbol to lookup |
includeExpired | Include expired contracts |
securityCurrency | Expected security currency(if any) |
Implemented in QuantConnect.Lean.Engine.DataFeeds.Queues.FakeDataQueue, and QuantConnect.Lean.Engine.DataFeeds.DataQueueHandlerManager.
bool QuantConnect.Interfaces.IDataQueueUniverseProvider.CanPerformSelection | ( | ) |
Returns whether selection can take place or not.
This is useful to avoid a selection taking place during invalid times, for example IB reset times or when not connected, because if allowed selection would fail since IB isn't running and would kill the algorithm
Implemented in QuantConnect.Lean.Engine.DataFeeds.Queues.FakeDataQueue, and QuantConnect.Lean.Engine.DataFeeds.DataQueueHandlerManager.