IConnector

StockSharp.BusinessEntities

取引システムへの接続を提供するメインインターフェイス。

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

プロパティ

CanConnect
public bool CanConnect { get; }
value = iConnector.CanConnect

接続の確立準備は完了です。connectorを決定します。

ConnectionState
public ConnectionStates ConnectionState { get; }
value = iConnector.ConnectionState

接続状態。

ExchangeBoards
public IEnumerable<ExchangeBoard> ExchangeBoards { get; }
value = iConnector.ExchangeBoards

金融商品が積み込まれている全ての取引所の一覧です。

MarketDataAdapter
public IMessageAdapter MarketDataAdapter { get; }
value = iConnector.MarketDataAdapter

市場データ アダプター。

Securities
public IEnumerable<Security> Securities { get; }
value = iConnector.Securities

ロードされたすべての機器のリスト。イベント@SecurityReceived arisenの後に呼び出されるべきです。それ以外の場合は空のセットが返されます。

TransactionAdapter
public IMessageAdapter TransactionAdapter { get; }
value = iConnector.TransactionAdapter

トランザクションアダプター。

メソッド

Connect
public void Connect()
iConnector.Connect()

取引システムに接続する

Disconnect
public void Disconnect()
iConnector.Disconnect()

取引システムから切断する。

GetSecurity
public Security GetSecurity(SecurityId securityId)
result = iConnector.GetSecurity(securityId)

識別子で金融商品を入手してください。

securityId
金融商品ID

戻り値: 金融商品取引

GetSecurityAsync
public ValueTask<Security> GetSecurityAsync(SecurityId securityId, CancellationToken cancellationToken)
result = iConnector.GetSecurityAsync(securityId, cancellationToken)

識別子で金融商品を入手してください。

securityId
金融商品ID
cancellationToken
担当: 佐藤 宏

戻り値: 金融商品取引

GetSecurityId
public SecurityId GetSecurityId(Security security)
result = iConnector.GetSecurityId(security)

担当: 佐藤 浩

security
金融商品取引

戻り値: 金融商品ID

SendOutMessage
public void SendOutMessage(Message message)
iConnector.SendOutMessage(message)

送信するメッセージ

message
ご挨拶
SendOutMessageAsync
public ValueTask SendOutMessageAsync(Message message, CancellationToken cancellationToken)
result = iConnector.SendOutMessageAsync(message, cancellationToken)

送信するメッセージ

message
ご挨拶
cancellationToken
担当: 佐藤 宏

イベント

ChangePasswordResult
public event Action<long, Exception> ChangePasswordResult
iConnector.ChangePasswordResult += handler

パスワード変更

Connected
public event Action Connected
iConnector.Connected += handler

接続。

ConnectedEx
public event Action<IMessageAdapter> ConnectedEx
iConnector.ConnectedEx += handler

接続。

ConnectionError
public event Action<Exception> ConnectionError
iConnector.ConnectionError += handler

接続エラー(例えば、サーバが接続を破棄した)

ConnectionErrorEx
public event Action<IMessageAdapter, Exception> ConnectionErrorEx
iConnector.ConnectionErrorEx += handler

接続エラー(例えば、サーバが接続を破棄した)

ConnectionLost
public event Action<IMessageAdapter> ConnectionLost
iConnector.ConnectionLost += handler

接続が失われました。

ConnectionRestored
public event Action<IMessageAdapter> ConnectionRestored
iConnector.ConnectionRestored += handler

接続は元通りに復元されます。

Disconnected
public event Action Disconnected
iConnector.Disconnected += handler

切断。

DisconnectedEx
public event Action<IMessageAdapter> DisconnectedEx
iConnector.DisconnectedEx += handler

切断。

Error
public event Action<Exception> Error
iConnector.Error += handler

データプロセスエラー。