IConnector

StockSharp.BusinessEntities

The main interface providing the connection to the trading systems.

Implementa: IMessageTransport, IPersistable, ILogReceiver, ILogSource, IDisposable, IMarketDataProvider, ITransactionProvider, ISecurityProvider, ISecurityMessageProvider, ISubscriptionProvider, ITimeProvider, IPortfolioProvider, IPositionProvider

Propriedades

CanConnect : bool

Determines this connector is ready for establish connection.

ConnectionState : ConnectionStates

Connection state.

ExchangeBoards : IEnumerable<ExchangeBoard>

List of all exchange boards, for which instruments are loaded Securities.

MarketDataAdapter : IMessageAdapter

Market-data adapter.

Securities : IEnumerable<Security>

List of all loaded instruments. It should be called after event SecurityReceived arisen. Otherwise the empty set will be returned.

TransactionAdapter : IMessageAdapter

Transactional adapter.

Métodos

Connect()

Connect to trading system.

Disconnect()

Disconnect from trading system.

GetSecurity(SecurityId) : Security

Get security by identifier.

securityId
Security ID.

Retorna: Security.

GetSecurityAsync(SecurityId, CancellationToken) : ValueTask<Security>

Get security by identifier.

securityId
Security ID.
cancellationToken
CancellationToken

Retorna: Security.

GetSecurityId(Security) : SecurityId

Get SecurityId.

security
Security.

Retorna: Security ID.

SendOutMessage(Message)

Send outgoing message.

message
Message.
SendOutMessageAsync(Message, CancellationToken) : ValueTask

Send outgoing message.

message
Message.
cancellationToken
CancellationToken

Eventos

ChangePasswordResult : Action<long, Exception>

Change password result.

Connected : Action

Connected.

ConnectionError : Action<Exception>

Connection error (for example, the connection was aborted by server).

ConnectionErrorEx : Action<IMessageAdapter, Exception>

Connection error (for example, the connection was aborted by server).

ConnectionLost : Action<IMessageAdapter>

Connection lost.

ConnectionRestored : Action<IMessageAdapter>

Connection restored.

Disconnected : Action

Disconnected.

Error : Action<Exception>

Data process error.