IConnector
The main interface providing the connection to the trading systems.
実装: IMessageTransport, IPersistable, ILogReceiver, ILogSource, IDisposable, IMarketDataProvider, ITransactionProvider, ISecurityProvider, ISecurityMessageProvider, ISubscriptionProvider, ITimeProvider, IPortfolioProvider, IPositionProvider
プロパティ
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.
メソッド
Connect()
Connect to trading system.
Disconnect()
Disconnect from trading system.
GetSecurity(SecurityId) : Security
Get security by identifier.
- securityId
- Security ID.
戻り値: Security.
GetSecurityAsync(SecurityId, CancellationToken) : ValueTask<Security>
Get security by identifier.
- securityId
- Security ID.
- cancellationToken
- CancellationToken
戻り値: Security.
SendOutMessageAsync(Message, CancellationToken) : ValueTask
Send outgoing message.
- message
- Message.
- cancellationToken
- CancellationToken
イベント
ChangePasswordResult : Action<long, Exception>
Change password result.
ConnectedEx : Action<IMessageAdapter>
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.
DisconnectedEx : Action<IMessageAdapter>
Disconnected.