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
- DataType
- security
- 金融工具
UnSubscribe
public void UnSubscribe(DataType type, Security security)
matLabConnector.UnSubscribe(type, security)
取消数据订阅 。
- type
- DataType
- 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
交易收到