MatLabConnector
StockSharp.MatLab
インターフェイス IConnector の実装は MatLabスクリプトから使用できる機能を提供します。
継承元: Disposable
コンストラクター
MatLabConnector
public MatLabConnector()
matLabConnector = MatLabConnector()
MatLabConnector の新規インスタンスを初期化します。
プロパティ
RealConnector
public Connector RealConnector { get; }
value = matLabConnector.RealConnector
市場データと取引の接続。
メソッド
AddAdapter
public void AddAdapter(IMessageAdapter adapter, string initString)
matLabConnector.AddAdapter(adapter, initString)
アダプターを追加します。
- adapter
- アダプター。
- initString
- 初期化文字列。
LookupSecurity
public void LookupSecurity(string criteria)
matLabConnector.LookupSecurity(criteria)
フィルターに一致する器具を見つけるため。
- criteria
- フィールドがフィルタとして使用される機器。
Subscribe
public void Subscribe(DataType type, Security security)
matLabConnector.Subscribe(type, security)
データの登録
- type
- 担当: 佐藤 宏
- security
- 金融商品取引
UnSubscribe
public void UnSubscribe(DataType type, Security security)
matLabConnector.UnSubscribe(type, security)
データを退会する
- type
- 担当: 佐藤 宏
- security
- 金融商品取引
イベント
CandleReceived
public event EventHandler<SubscriptionEventArgs<ICandleMessage>> CandleReceived
matLabConnector.CandleReceived += handler
キャンドルが届きました。
ConnectionError
public event EventHandler<ErrorEventArgs> ConnectionError
matLabConnector.ConnectionError += handler
接続エラー(例えば、サーバが接続を破棄した)
CurrentTimeChanged
public event EventHandler CurrentTimeChanged
matLabConnector.CurrentTimeChanged += handler
サーバ時刻は@CurrentTimeに変更しました。イベントの最終呼び出し以来、時間差が経過しました。イベントがゼロ値を通過する最初の時刻です。
OrderBookReceived
public event EventHandler<SubscriptionEventArgs<IOrderBookMessage>> OrderBookReceived
matLabConnector.OrderBookReceived += handler
注文書が届きました。
OrderFailReceived
public event EventHandler<SubscriptionEventArgs<OrderFail>> OrderFailReceived
matLabConnector.OrderFailReceived += handler
注文登録エラーが受信されました。
OrderLogReceived
public event EventHandler<SubscriptionEventArgs<IOrderLogMessage>> OrderLogReceived
matLabConnector.OrderLogReceived += handler
注文ログが受信されました。
OrderReceived
public event EventHandler<SubscriptionEventArgs<Order>> OrderReceived
matLabConnector.OrderReceived += handler
注文が受け取られた。
OwnTradeReceived
public event EventHandler<SubscriptionEventArgs<MyTrade>> OwnTradeReceived
matLabConnector.OwnTradeReceived += handler
独自の取引が受け取られた。
PortfolioReceived
public event EventHandler<SubscriptionEventArgs<Portfolio>> PortfolioReceived
matLabConnector.PortfolioReceived += handler
ポートフォリオが受け取られた。
PositionReceived
public event EventHandler<SubscriptionEventArgs<Position>> PositionReceived
matLabConnector.PositionReceived += handler
受取される位置。
SecurityReceived
public event EventHandler<SubscriptionEventArgs<Security>> SecurityReceived
matLabConnector.SecurityReceived += handler
金融商品が受領しました。
SubscriptionChanged
public event EventHandler<SubscriptionEventArgs<SubscriptionStates>> SubscriptionChanged
matLabConnector.SubscriptionChanged += handler
サブスクリプションの変更。
TickReceived
public event EventHandler<SubscriptionEventArgs<ITickTradeMessage>> TickReceived
matLabConnector.TickReceived += handler
ティックトレードが受け取られた。