|
Lean
$LEAN_TAG$
|
Count number of subscribers for each channel (Symbol, Socket) pair More...
Public Member Functions | |
| void | Subscribe (SubscriptionDataConfig dataConfig) |
| Increment number of subscribers for current TickType More... | |
| void | Unsubscribe (SubscriptionDataConfig dataConfig) |
| Decrement number of subscribers for current TickType More... | |
| IEnumerable< Symbol > | GetSubscribedSymbols () |
| Returns subscribed symbols More... | |
| IEnumerable< Symbol > | GetSubscribedSymbols (TickType tickType) |
| Retrieves the list of unique Symbol instances that are currently subscribed for a specific TickType. More... | |
| bool | IsSubscribed (Symbol symbol, TickType tickType) |
| Checks if there is existing subscriber for current channel More... | |
| virtual void | Dispose () |
| Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Protected Member Functions | |
| abstract bool | Subscribe (IEnumerable< Symbol > symbols, TickType tickType) |
| Describes the way IDataQueueHandler implements subscription More... | |
| abstract bool | Unsubscribe (IEnumerable< Symbol > symbols, TickType tickType) |
| Describes the way IDataQueueHandler implements unsubscription More... | |
| abstract string | ChannelNameFromTickType (TickType tickType) |
| Brokerage maps TickType to real socket/api channel More... | |
Properties | |
| ConcurrentDictionary< Channel, int > | SubscribersByChannel = new ConcurrentDictionary<Channel, int>() [get] |
| Counter More... | |
Count number of subscribers for each channel (Symbol, Socket) pair
Definition at line 28 of file DataQueueHandlerSubscriptionManager.cs.
| void QuantConnect.Data.DataQueueHandlerSubscriptionManager.Subscribe | ( | SubscriptionDataConfig | dataConfig | ) |
Increment number of subscribers for current TickType
| dataConfig | defines the subscription configuration data. |
Definition at line 39 of file DataQueueHandlerSubscriptionManager.cs.
| void QuantConnect.Data.DataQueueHandlerSubscriptionManager.Unsubscribe | ( | SubscriptionDataConfig | dataConfig | ) |
Decrement number of subscribers for current TickType
| dataConfig | defines the subscription configuration data. |
Definition at line 67 of file DataQueueHandlerSubscriptionManager.cs.
| IEnumerable<Symbol> QuantConnect.Data.DataQueueHandlerSubscriptionManager.GetSubscribedSymbols | ( | ) |
Returns subscribed symbols
Definition at line 98 of file DataQueueHandlerSubscriptionManager.cs.
| IEnumerable<Symbol> QuantConnect.Data.DataQueueHandlerSubscriptionManager.GetSubscribedSymbols | ( | TickType | tickType | ) |
Retrieves the list of unique Symbol instances that are currently subscribed for a specific TickType.
| tickType | The type of tick data to filter subscriptions by. |
Definition at line 110 of file DataQueueHandlerSubscriptionManager.cs.
| bool QuantConnect.Data.DataQueueHandlerSubscriptionManager.IsSubscribed | ( | Symbol | symbol, |
| TickType | tickType | ||
| ) |
Checks if there is existing subscriber for current channel
| symbol | Symbol |
| tickType | Type of tick data |
Definition at line 126 of file DataQueueHandlerSubscriptionManager.cs.
|
virtual |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Reimplemented in QuantConnect.Brokerages.BrokerageMultiWebSocketSubscriptionManager.
Definition at line 136 of file DataQueueHandlerSubscriptionManager.cs.
|
protectedpure virtual |
Describes the way IDataQueueHandler implements subscription
| symbols | Symbols to subscribe |
| tickType | Type of tick data |
Implemented in QuantConnect.Brokerages.BrokerageMultiWebSocketSubscriptionManager, and QuantConnect.Data.EventBasedDataQueueHandlerSubscriptionManager.
|
protectedpure virtual |
Describes the way IDataQueueHandler implements unsubscription
| symbols | Symbols to unsubscribe |
| tickType | Type of tick data |
Implemented in QuantConnect.Brokerages.BrokerageMultiWebSocketSubscriptionManager, and QuantConnect.Data.EventBasedDataQueueHandlerSubscriptionManager.
|
protectedpure virtual |
Brokerage maps TickType to real socket/api channel
| tickType | Type of tick data |
Implemented in QuantConnect.Data.EventBasedDataQueueHandlerSubscriptionManager.
|
getprotected |
Counter
Definition at line 33 of file DataQueueHandlerSubscriptionManager.cs.