Interface IConnector
- Namespace
- StockSharp.BusinessEntities
- Assembly
- StockSharp.BusinessEntities.dll
The main interface providing the connection to the trading systems.
public interface IConnector : IPersistable, ILogReceiver, IMarketDataProvider, ITransactionProvider, IPositionProvider, IPortfolioProvider, ISecurityProvider, ISecurityMessageProvider, INewsProvider, ISubscriptionProvider, ITimeProvider, ILogSource, IMessageChannel, IDisposable, ICloneable<IMessageChannel>, ICloneable
- Inherited Members
- Extension Methods
Properties
CanConnect
Determines this connector is ready for establish connection.
bool CanConnect { get; }
Property Value
ConnectionState
Connection state.
ConnectionStates ConnectionState { get; }
Property Value
ExchangeBoards
List of all exchange boards, for which instruments are loaded Securities.
IEnumerable<ExchangeBoard> ExchangeBoards { get; }
Property Value
MarketDataAdapter
Market-data adapter.
IMessageAdapter MarketDataAdapter { get; }
Property Value
Securities
List of all loaded instruments. It should be called after event SecurityReceived arisen. Otherwise the empty set will be returned.
IEnumerable<Security> Securities { get; }
Property Value
TransactionAdapter
Transactional adapter.
IMessageAdapter TransactionAdapter { get; }
Property Value
Methods
Connect()
Connect to trading system.
void Connect()
Disconnect()
Disconnect from trading system.
void Disconnect()
GetSecurity(SecurityId)
Get security by identifier.
Security GetSecurity(SecurityId securityId)
Parameters
securityId
SecurityIdSecurity ID.
Returns
- Security
Security.
GetSecurityId(Security)
Get SecurityId.
SecurityId GetSecurityId(Security security)
Parameters
security
SecuritySecurity.
Returns
- SecurityId
Security ID.
SendOutMessage(Message)
Send outgoing message.
void SendOutMessage(Message message)
Parameters
message
MessageMessage.
Events
ChangePasswordResult
Change password result.
event Action<long, Exception> ChangePasswordResult
Event Type
Connected
Connected.
event Action Connected
Event Type
ConnectedEx
Connected.
event Action<IMessageAdapter> ConnectedEx
Event Type
ConnectionError
Connection error (for example, the connection was aborted by server).
event Action<Exception> ConnectionError
Event Type
ConnectionErrorEx
Connection error (for example, the connection was aborted by server).
event Action<IMessageAdapter, Exception> ConnectionErrorEx
Event Type
ConnectionLost
Connection lost.
event Action<IMessageAdapter> ConnectionLost
Event Type
ConnectionRestored
Connection restored.
event Action<IMessageAdapter> ConnectionRestored
Event Type
Disconnected
Disconnected.
event Action Disconnected
Event Type
DisconnectedEx
Disconnected.
event Action<IMessageAdapter> DisconnectedEx
Event Type
Error
Data process error.
event Action<Exception> Error
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 ITimeProvider.CurrentTimeChanged event.")]
event Action<TimeSpan> MarketTimeChanged
Event Type
NewMessage
Message processed Message.
event Action<Message> NewMessage