Class Connector
- Namespace
- StockSharp.Algo
- Assembly
- StockSharp.Algo.dll
The class to create connections to trading systems.
public class Connector : BaseLogReceiver, IConnector, IPersistable, ILogReceiver, IMarketDataProvider, ITransactionProvider, IPositionProvider, IPortfolioProvider, ISecurityProvider, ISecurityMessageProvider, INewsProvider, ISubscriptionProvider, ITimeProvider, ILogSource, IMessageChannel, IDisposable, ICloneable<IMessageChannel>, ICloneable
- Inheritance
-
Connector
- Implements
- Derived
- Inherited Members
- Extension Methods
-
MarketRuleHelper.WhenPartiallyFinishedCandles<TCandle>(ISubscriptionProvider, Subscription, decimal)
Constructors
Connector()
Initializes a new instance of the Connector.
public Connector()
Connector(ISecurityStorage, IPositionStorage, IExchangeInfoProvider, IStorageRegistry, SnapshotRegistry, StorageBuffer, bool, bool)
Initializes a new instance of the Connector.
public Connector(ISecurityStorage securityStorage, IPositionStorage positionStorage, IExchangeInfoProvider exchangeInfoProvider, IStorageRegistry storageRegistry = null, SnapshotRegistry snapshotRegistry = null, StorageBuffer buffer = null, bool initAdapter = true, bool initChannels = true)
Parameters
securityStorage
ISecurityStorageSecurities meta info storage.
positionStorage
IPositionStoragePosition storage.
exchangeInfoProvider
IExchangeInfoProviderExchanges and trading boards provider.
storageRegistry
IStorageRegistryThe storage of market data.
snapshotRegistry
SnapshotRegistrySnapshot storage registry.
buffer
StorageBufferStorage buffer.
initAdapter
boolInitialize basket adapter.
initChannels
boolInitialize channels.
Properties
Adapter
Message adapter.
public BasketMessageAdapter Adapter { get; protected set; }
Property Value
BasketSecurityProcessorProvider
Basket security processors provider.
public IBasketSecurityProcessorProvider BasketSecurityProcessorProvider { get; set; }
Property Value
BoardLookup
Get global subscription on ExchangeBoard lookup. Can be null.
public Subscription BoardLookup { get; }
Property Value
Buffer
Storage buffer.
public StorageBuffer Buffer { get; }
Property Value
CanConnect
Determines this connector is ready for establish connection.
public bool CanConnect { get; }
Property Value
CheckSteps
public bool CheckSteps { get; set; }
Property Value
CommissionManager
The commission calculating manager.
public ICommissionManager CommissionManager { get; set; }
Property Value
ConnectionState
Connection state.
public ConnectionStates ConnectionState { get; }
Property Value
DataTypeLookup
Get global subscription on DataTypeInfoMessage lookup. Can be null.
public Subscription DataTypeLookup { get; }
Property Value
ErrorCount
The number of errors passed through the Error event.
public int ErrorCount { get; }
Property Value
ExchangeBoards
List of all exchange boards, for which instruments are loaded Securities.
public IEnumerable<ExchangeBoard> ExchangeBoards { get; }
Property Value
ExchangeInfoProvider
Exchanges and trading boards provider.
public IExchangeInfoProvider ExchangeInfoProvider { get; }
Property Value
InMessageChannel
Input message channel.
public IMessageChannel InMessageChannel { get; protected set; }
Property Value
InnerAdapter
Inner message adapter.
public IMessageAdapter InnerAdapter { get; set; }
Property Value
IsAutoPortfoliosSubscribe
Subscribe for new portfolios.
public bool IsAutoPortfoliosSubscribe { get; set; }
Property Value
Remarks
By default is true.
IsAutoUnSubscribeOnDisconnect
Send unsubscribe on disconnect command.
public bool IsAutoUnSubscribeOnDisconnect { get; set; }
Property Value
Remarks
By default is true.
IsRestoreSubscriptionOnNormalReconnect
Restore subscription on reconnect.
public bool IsRestoreSubscriptionOnNormalReconnect { get; set; }
Property Value
Remarks
Normal case connect/disconnect.
KeepStrategiesPositions
Process strategies positions and store it into Positions.
public bool KeepStrategiesPositions { get; set; }
Property Value
LatencyManager
Orders registration delay calculation manager.
public ILatencyManager LatencyManager { get; set; }
Property Value
LookupMessagesOnConnect
[Obsolete("Use SubscriptionsOnConnect property.")]
public ISet<MessageTypes> LookupMessagesOnConnect { get; }
Property Value
MarketDataAdapter
Market-data adapter.
public IMessageAdapter MarketDataAdapter { get; }
Property Value
MarketTimeChangedInterval
The TimeMessage message generating Interval. The default is 10 milliseconds.
public virtual TimeSpan MarketTimeChangedInterval { get; set; }
Property Value
OrderLookup
public Subscription OrderLookup { get; }
Property Value
OrdersKeepCount
The number of orders for storage. The default is 1000. If the value is set to MaxValue, then the orders will not be deleted. If the value is set to 0, then the orders will not be stored.
public int OrdersKeepCount { get; set; }
Property Value
OutMessageChannel
Outgoing message channel.
public IMessageChannel OutMessageChannel { get; protected set; }
Property Value
OverrideSecurityData
Override previous security data by new values.
public bool OverrideSecurityData { get; set; }
Property Value
PnLManager
The profit-loss manager.
public IPnLManager PnLManager { get; set; }
Property Value
PortfolioLookup
public Subscription PortfolioLookup { get; }
Property Value
Portfolios
Get all portfolios.
public virtual IEnumerable<Portfolio> Portfolios { get; }
Property Value
PositionStorage
Position storage.
public IPositionStorage PositionStorage { get; }
Property Value
Positions
Get all positions.
public IEnumerable<Position> Positions { get; }
Property Value
RiskManager
Risk control manager.
public virtual IRiskManager RiskManager { get; set; }
Property Value
Securities
List of all loaded instruments. It should be called after event SecurityReceived arisen. Otherwise the empty set will be returned.
public IEnumerable<Security> Securities { get; }
Property Value
SecurityIdGenerator
The instrument identifiers generator Id.
public SecurityIdGenerator SecurityIdGenerator { get; set; }
Property Value
SecurityLookup
public Subscription SecurityLookup { get; }
Property Value
SecurityStorage
Securities meta info storage.
public ISecurityStorage SecurityStorage { get; }
Property Value
SlippageManager
Slippage manager.
public ISlippageManager SlippageManager { get; set; }
Property Value
SnapshotRegistry
Snapshot storage registry.
public SnapshotRegistry SnapshotRegistry { get; }
Property Value
StorageAdapter
Storage adapter.
public StorageMetaInfoMessageAdapter StorageAdapter { get; }
Property Value
StorageRegistry
The storage of market data.
public IStorageRegistry StorageRegistry { get; }
Property Value
Subscriptions
Subscriptions.
public IEnumerable<Subscription> Subscriptions { get; }
Property Value
SubscriptionsOnConnect
Send subscriptions on connect.
public ISet<Subscription> SubscriptionsOnConnect { get; }
Property Value
SupportAssociatedSecurity
public bool SupportAssociatedSecurity { get; set; }
Property Value
SupportBasketSecurities
public bool SupportBasketSecurities { get; set; }
Property Value
SupportFilteredMarketDepth
public bool SupportFilteredMarketDepth { get; set; }
Property Value
SupportLevel1DepthBuilder
[Obsolete("Use MarketDataMessage.BuildFrom property.")]
public bool SupportLevel1DepthBuilder { get; set; }
Property Value
SupportSnapshots
public virtual bool SupportSnapshots { get; set; }
Property Value
TimeChange
Increment periodically MarketTimeChangedInterval value of CurrentTime.
public bool TimeChange { get; set; }
Property Value
TransactionAdapter
Transactional adapter.
public IMessageAdapter TransactionAdapter { get; }
Property Value
TransactionIdGenerator
Transaction id generator.
public IdGenerator TransactionIdGenerator { get; set; }
Property Value
UpdatePortfolioByChange
To update Portfolio fields when the PositionChangeMessage message appears. By default is enabled.
public bool UpdatePortfolioByChange { get; set; }
Property Value
UpdateSecurityByDefinition
To update Security fields when the SecurityMessage message appears. By default is enabled.
public bool UpdateSecurityByDefinition { get; set; }
Property Value
UpdateSecurityByLevel1
To update Security fields when the Level1ChangeMessage message appears. By default is enabled.
public bool UpdateSecurityByLevel1 { get; set; }
Property Value
UpdateSecurityLastQuotes
To update LastTick, BestBid, BestAsk at each update of order book and/or trades. By default is enabled.
public bool UpdateSecurityLastQuotes { get; set; }
Property Value
Methods
CancelOrder(Order)
Cancel the order.
public void CancelOrder(Order order)
Parameters
order
OrderThe order which should be canceled.
CancelOrders(bool?, Portfolio, Sides?, ExchangeBoard, Security, SecurityTypes?, long?)
Cancel orders by filter.
public void CancelOrders(bool? isStopOrder = null, Portfolio portfolio = null, Sides? direction = null, ExchangeBoard board = null, Security security = null, SecurityTypes? securityType = null, long? transactionId = null)
Parameters
isStopOrder
bool?true, if cancel only a stop orders, false - if regular orders, null - both.
portfolio
PortfolioPortfolio. If the value is equal to null, then the portfolio does not match the orders cancel filter.
direction
Sides?Order side. If the value is null, the direction does not use.
board
ExchangeBoardTrading board. If the value is equal to null, then the board does not match the orders cancel filter.
security
SecurityInstrument. If the value is equal to null, then the instrument does not match the orders cancel filter.
securityType
SecurityTypes?Security type. If the value is null, the type does not use.
transactionId
long?Order cancellation transaction id.
ChangePassword(SecureString)
Change password.
public void ChangePassword(SecureString newPassword)
Parameters
newPassword
SecureStringNew password.
ClearCache()
Clear cache.
public virtual void ClearCache()
Connect()
Connect to trading system.
public void Connect()
CreateSecurityId(string, string)
Generate Id security.
protected string CreateSecurityId(string secCode, string boardCode)
Parameters
Returns
Disconnect()
Disconnect from trading system.
public void Disconnect()
DisposeManaged()
To release allocated resources. In particular, to disconnect from the trading system via Disconnect().
protected override void DisposeManaged()
EditOrder(Order, Order)
Edit the order.
public void EditOrder(Order order, Order changes)
Parameters
FindSubscriptions(Security, DataType)
Find subscriptions for the specified security and data type.
public IEnumerable<Subscription> FindSubscriptions(Security security, DataType dataType)
Parameters
Returns
- IEnumerable<Subscription>
Subscriptions.
GetLevel1Fields(Security)
To get a set of available fields Level1Fields, for which there is a market data for the instrument.
public IEnumerable<Level1Fields> GetLevel1Fields(Security security)
Parameters
security
SecuritySecurity.
Returns
- IEnumerable<Level1Fields>
Possible fields.
GetPortfolio(string)
To get the portfolio by the code name.
public Portfolio GetPortfolio(string name)
Parameters
name
stringPortfolio code name.
Returns
GetPosition(Portfolio, Security, string, Sides?, string, string, TPlusLimits?)
To get the position by portfolio and instrument.
public Position GetPosition(Portfolio portfolio, Security security, string strategyId = "", Sides? side = null, string clientCode = "", string depoName = "", TPlusLimits? limitType = null)
Parameters
portfolio
PortfolioThe portfolio on which the position should be found.
security
SecurityThe instrument on which the position should be found.
strategyId
stringStrategy ID.
side
Sides?Side.
clientCode
stringThe client code.
depoName
stringThe depository name where the stock is located physically. By default, an empty string is passed, which means the total position by all depositories.
limitType
TPlusLimits?Limit type for Т+ market.
Returns
- Position
Position.
GetSecurity(SecurityId)
Get security by identifier.
public Security GetSecurity(SecurityId securityId)
Parameters
securityId
SecurityIdSecurity ID.
Returns
- Security
Security.
GetSecurityId(Security)
Get SecurityId.
public SecurityId GetSecurityId(Security security)
Parameters
security
SecuritySecurity.
Returns
- SecurityId
Security ID.
GetSecurityValue(Security, Level1Fields)
To get the value of market data for the instrument.
public object GetSecurityValue(Security security, Level1Fields field)
Parameters
security
SecuritySecurity.
field
Level1FieldsMarket-data field.
Returns
GetSessionState(ExchangeBoard)
Get session state for required board.
[Obsolete("Use BoardReceived event.")]
public SessionStates? GetSessionState(ExchangeBoard board)
Parameters
board
ExchangeBoardElectronic board.
Returns
- SessionStates?
Session state. If the information about session state does not exist, then null will be returned.
IsOrderEditable(Order)
Determines the specified order can be edited by EditOrder(Order, Order).
public bool? IsOrderEditable(Order order)
Parameters
order
OrderOrder.
Returns
IsOrderReplaceable(Order)
Determines the specified order can be replaced by ReRegisterOrder(Order, Order).
public bool? IsOrderReplaceable(Order order)
Parameters
order
OrderOrder.
Returns
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
LookupById(SecurityId)
To get the instrument by the identifier.
public Security LookupById(SecurityId id)
Parameters
id
SecurityIdSecurity ID.
Returns
LookupByPortfolioName(string)
To get the portfolio by the code name.
public Portfolio LookupByPortfolioName(string name)
Parameters
name
stringPortfolio code name.
Returns
OnCancelOrder(Order, long)
Cancel the order.
protected void OnCancelOrder(Order order, long transactionId)
Parameters
OnCancelOrders(long, bool?, Portfolio, Sides?, ExchangeBoard, Security, SecurityTypes?)
Cancel orders by filter.
protected void OnCancelOrders(long transactionId, bool? isStopOrder = null, Portfolio portfolio = null, Sides? direction = null, ExchangeBoard board = null, Security security = null, SecurityTypes? securityType = null)
Parameters
transactionId
longOrder cancellation transaction id.
isStopOrder
bool?true, if cancel only a stop orders, false - if regular orders, null - both.
portfolio
PortfolioPortfolio. If the value is equal to null, then the portfolio does not match the orders cancel filter.
direction
Sides?Order side. If the value is null, the direction does not use.
board
ExchangeBoardTrading board. If the value is equal to null, then the board does not match the orders cancel filter.
security
SecurityInstrument. If the value is equal to null, then the instrument does not match the orders cancel filter.
securityType
SecurityTypes?Security type. If the value is null, the type does not use.
OnConnect()
Connect to trading system.
protected virtual void OnConnect()
OnDisconnect()
Disconnect from trading system.
protected virtual void OnDisconnect()
OnEditOrder(Order, Order)
Edit the order.
protected void OnEditOrder(Order order, Order changes)
Parameters
OnProcessMessage(Message)
Process message.
protected virtual void OnProcessMessage(Message message)
Parameters
message
MessageMessage.
OnReRegisterOrder(Order, Order)
Reregister the order.
protected void OnReRegisterOrder(Order oldOrder, Order newOrder)
Parameters
OnRegisterOrder(Order)
Register new order.
protected void OnRegisterOrder(Order order)
Parameters
order
OrderRegistration details.
RaiseError(Exception)
To call the event Error.
protected void RaiseError(Exception exception)
Parameters
exception
ExceptionData processing error.
RaiseSubscriptionFailed(Subscription, Exception, bool)
protected virtual void RaiseSubscriptionFailed(Subscription subscription, Exception error, bool isSubscribe)
Parameters
subscription
Subscriptionerror
ExceptionisSubscribe
bool
ReRegisterOrder(Order, Order)
Reregister the order.
public void ReRegisterOrder(Order oldOrder, Order newOrder)
Parameters
RegisterOrder(Order)
Register new order.
public void RegisterOrder(Order order)
Parameters
order
OrderRegistration details.
RegisterPortfolio(Portfolio)
public void RegisterPortfolio(Portfolio portfolio)
Parameters
portfolio
Portfolio
RequestNewsStory(News, IMessageAdapter)
Request news Story body. After receiving the event NewsReceived will be triggered.
public void RequestNewsStory(News news, IMessageAdapter adapter = null)
Parameters
news
NewsNews.
adapter
IMessageAdapterTarget adapter. Can be null.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
SendInMessage(Message)
Send message.
public bool SendInMessage(Message message)
Parameters
message
MessageMessage.
Returns
SendOutError(Exception)
Send error message.
public void SendOutError(Exception error)
Parameters
error
ExceptionError details.
SendOutMessage(Message)
Send outgoing message.
public void SendOutMessage(Message message)
Parameters
message
MessageMessage.
Subscribe(Subscription)
Subscribe.
public void Subscribe(Subscription subscription)
Parameters
subscription
SubscriptionSubscription.
TryGetSubscriptionById(long)
Try get subscription by id.
public Subscription TryGetSubscriptionById(long subscriptionId)
Parameters
subscriptionId
longSubscription id.
Returns
- Subscription
Subscription.
UnRegisterPortfolio(Portfolio)
public void UnRegisterPortfolio(Portfolio portfolio)
Parameters
portfolio
Portfolio
UnSubscribe(Subscription)
Unsubscribe.
public void UnSubscribe(Subscription subscription)
Parameters
subscription
SubscriptionSubscription.
Events
BoardReceived
ExchangeBoard received.
public event Action<Subscription, ExchangeBoard> BoardReceived
Event Type
CandleReceived
ICandleMessage received.
public event Action<Subscription, ICandleMessage> CandleReceived
Event Type
ChangePasswordResult
Change password result.
public event Action<long, Exception> ChangePasswordResult
Event Type
Connected
Connected.
public event Action Connected
Event Type
ConnectedEx
Connected.
public event Action<IMessageAdapter> ConnectedEx
Event Type
ConnectionError
Connection error (for example, the connection was aborted by server).
public event Action<Exception> ConnectionError
Event Type
ConnectionErrorEx
Connection error (for example, the connection was aborted by server).
public event Action<IMessageAdapter, Exception> ConnectionErrorEx
Event Type
ConnectionLost
Connection lost.
public event Action<IMessageAdapter> ConnectionLost
Event Type
ConnectionRestored
Connection restored.
public event Action<IMessageAdapter> ConnectionRestored
Event Type
CurrentTimeChanged
Server time changed CurrentTime. It passed the time difference since the last call of the event. The first time the event passes the value Zero.
public event Action<TimeSpan> CurrentTimeChanged
Event Type
DataTypeReceived
DataType received.
public event Action<Subscription, DataType> DataTypeReceived
Event Type
Disconnected
Disconnected.
public event Action Disconnected
Event Type
DisconnectedEx
Disconnected.
public event Action<IMessageAdapter> DisconnectedEx
Event Type
Error
The main interface providing the connection to the trading systems.
public event Action<Exception> Error
Event Type
Level1Received
Level1ChangeMessage received.
public event Action<Subscription, Level1ChangeMessage> Level1Received
Event Type
LookupBoardsResult
Lookup result BoardLookupMessage received.
[Obsolete("Use BoardReceived and SubscriptionStopped events.")]
public event Action<BoardLookupMessage, IEnumerable<ExchangeBoard>, Exception> LookupBoardsResult
Event Type
LookupBoardsResult2
Lookup result BoardLookupMessage received.
[Obsolete("Use BoardReceived and SubscriptionStopped events.")]
public event Action<BoardLookupMessage, IEnumerable<ExchangeBoard>, IEnumerable<ExchangeBoard>, Exception> LookupBoardsResult2
Event Type
LookupPortfoliosResult
Lookup result PortfolioLookupMessage received.
public event Action<PortfolioLookupMessage, IEnumerable<Portfolio>, Exception> LookupPortfoliosResult
Event Type
LookupPortfoliosResult2
Lookup result PortfolioLookupMessage received.
[Obsolete("Use PortfolioReceived and SubscriptionStopped events.")]
public event Action<PortfolioLookupMessage, IEnumerable<Portfolio>, IEnumerable<Portfolio>, Exception> LookupPortfoliosResult2
Event Type
LookupSecuritiesResult
Lookup result SecurityLookupMessage received.
public event Action<SecurityLookupMessage, IEnumerable<Security>, Exception> LookupSecuritiesResult
Event Type
LookupSecuritiesResult2
Lookup result SecurityLookupMessage received.
[Obsolete("Use SecurityReceived and SubscriptionStopped events.")]
public event Action<SecurityLookupMessage, IEnumerable<Security>, IEnumerable<Security>, Exception> LookupSecuritiesResult2
Event Type
LookupTimeFramesResult
Lookup result DataTypeLookupMessage received.
[Obsolete("Use DataTypeReceived and SubscriptionStopped events.")]
public event Action<DataTypeLookupMessage, IEnumerable<TimeSpan>, Exception> LookupTimeFramesResult
Event Type
LookupTimeFramesResult2
Lookup result DataTypeLookupMessage received.
[Obsolete("Use DataTypeReceived and SubscriptionStopped events.")]
public event Action<DataTypeLookupMessage, IEnumerable<TimeSpan>, IEnumerable<TimeSpan>, Exception> LookupTimeFramesResult2
Event Type
MarketTimeChanged
Server time changed CurrentTime. It passed the time difference since the last call of the event. The first time the event passes the value Zero.
[Obsolete("Use CurrentTimeChanged event.")]
public event Action<TimeSpan> MarketTimeChanged
Event Type
MassOrderCancelFailed
Mass order cancellation errors event.
public event Action<long, Exception> MassOrderCancelFailed
Event Type
MassOrderCancelFailed2
Mass order cancellation errors event.
public event Action<long, Exception, DateTimeOffset> MassOrderCancelFailed2
Event Type
MassOrderCanceled
Mass order cancellation event.
public event Action<long> MassOrderCanceled
Event Type
MassOrderCanceled2
Mass order cancellation event.
public event Action<long, DateTimeOffset> MassOrderCanceled2
Event Type
NewMessage
Message processed Message.
public event Action<Message> NewMessage
Event Type
NewMyTrade
Own trade received.
[Obsolete("Use OwnTradeReceived event.")]
public event Action<MyTrade> NewMyTrade
Event Type
NewOrder
Order received.
[Obsolete("Use OrderReceived event.")]
public event Action<Order> NewOrder
Event Type
NewPortfolio
New portfolio received.
[Obsolete("Use PortfolioReceived event.")]
public event Action<Portfolio> NewPortfolio
Event Type
NewPosition
New position received.
[Obsolete("Use PositionReceived event.")]
public event Action<Position> NewPosition
Event Type
NewsReceived
News received.
public event Action<Subscription, News> NewsReceived
Event Type
OrderBookReceived
IOrderBookMessage received.
public event Action<Subscription, IOrderBookMessage> OrderBookReceived
Event Type
OrderCancelFailReceived
OrderFail cancellation event.
public event Action<Subscription, OrderFail> OrderCancelFailReceived
Event Type
OrderCancelFailed
Order cancellation error event.
[Obsolete("Use OrderCancelFailReceived event.")]
public event Action<OrderFail> OrderCancelFailed
Event Type
OrderChanged
Order changed (cancelled, matched).
[Obsolete("Use OrderReceived event.")]
public event Action<Order> OrderChanged
Event Type
OrderEditFailReceived
OrderFail edition event.
public event Action<Subscription, OrderFail> OrderEditFailReceived
Event Type
OrderEditFailed
EditOrder(Order, Order) error result event.
[Obsolete("Use OrderEditFailReceived event.")]
public event Action<long, OrderFail> OrderEditFailed
Event Type
OrderEdited
EditOrder(Order, Order) success result event.
[Obsolete("Use OrderReceived event.")]
public event Action<long, Order> OrderEdited
Event Type
OrderLogReceived
IOrderLogMessage received.
public event Action<Subscription, IOrderLogMessage> OrderLogReceived
Event Type
OrderReceived
Order received.
public event Action<Subscription, Order> OrderReceived
Event Type
OrderRegisterFailReceived
OrderFail registration event.
public event Action<Subscription, OrderFail> OrderRegisterFailReceived
Event Type
OrderRegisterFailed
Order registration error event.
[Obsolete("Use OrderRegisterFailReceived event.")]
public event Action<OrderFail> OrderRegisterFailed
Event Type
OrderStatusFailed2
Failed order status request event.
[Obsolete("Use SubscriptionFailed event.")]
public event Action<long, Exception, DateTimeOffset> OrderStatusFailed2
Event Type
OwnTradeReceived
MyTrade received.
public event Action<Subscription, MyTrade> OwnTradeReceived
Event Type
PortfolioChanged
Portfolio changed.
[Obsolete("Use PortfolioReceived event.")]
public event Action<Portfolio> PortfolioChanged
Event Type
PortfolioReceived
Portfolio received.
public event Action<Subscription, Portfolio> PortfolioReceived
Event Type
PositionChanged
Position changed.
[Obsolete("Use PositionReceived event.")]
public event Action<Position> PositionChanged
Event Type
PositionReceived
Position received.
public event Action<Subscription, Position> PositionReceived
Event Type
SecurityReceived
Security received.
public event Action<Subscription, Security> SecurityReceived
Event Type
SessionStateChanged
Session changed.
[Obsolete("Use ISubscriptionProvider.BoardReceived event.")]
public event Action<ExchangeBoard, SessionStates> SessionStateChanged
Event Type
SubscriptionFailed
Subscription is failed.
public event Action<Subscription, Exception, bool> SubscriptionFailed
Event Type
SubscriptionOnline
Subscription is online.
public event Action<Subscription> SubscriptionOnline
Event Type
SubscriptionReceived
Value received.
public event Action<Subscription, object> SubscriptionReceived
Event Type
SubscriptionStarted
Subscription is started.
public event Action<Subscription> SubscriptionStarted
Event Type
SubscriptionStopped
Subscription is stopped.
public event Action<Subscription, Exception> SubscriptionStopped
Event Type
TickTradeReceived
ITickTradeMessage received.
public event Action<Subscription, ITickTradeMessage> TickTradeReceived
Event Type
ValuesChanged
Security changed.
public event Action<Security, IEnumerable<KeyValuePair<Level1Fields, object>>, DateTimeOffset, DateTimeOffset> ValuesChanged