Class MatLabConnector
The interface IConnector implementation which provides ability to use from MatLab scripts.
Namespace: StockSharp.MatLab
Assembly: StockSharp.MatLab.dll
Syntax
public class MatLabConnector : Disposable
Constructors
MatLabConnector()
Initializes a new instance of the MatLabConnector.
Declaration
public MatLabConnector()
Properties
RealConnector
The connection for market-data and transactions.
Declaration
public Connector RealConnector { get; }
Property Value
Type | Description |
---|---|
Connector |
Methods
AddAdapter(IMessageAdapter, String)
Add adapter.
Declaration
public void AddAdapter(IMessageAdapter adapter, string initString)
Parameters
Type | Name | Description |
---|---|---|
IMessageAdapter | adapter | Adapter. |
String | initString | Initialization string. |
DisposeManaged()
Release resources.
Declaration
protected override void DisposeManaged()
LookupSecurity(String)
To find instruments that match the filter criteria
.
Declaration
public void LookupSecurity(string criteria)
Parameters
Type | Name | Description |
---|---|---|
String | criteria | The instrument whose fields will be used as a filter. |
Events
CandleSeriesProcessing
A new value for processing occurrence event.
Declaration
public event EventHandler<CandleEventArgs> CandleSeriesProcessing
Event Type
Type | Description |
---|---|
EventHandler<CandleEventArgs> |
CandleSeriesStopped
The series processing end event.
Declaration
public event EventHandler<CandleEventArgs> CandleSeriesStopped
Event Type
Type | Description |
---|---|
EventHandler<CandleEventArgs> |
Connected
Connected.
Declaration
public event EventHandler Connected
Event Type
Type | Description |
---|---|
EventHandler |
ConnectionError
Connection error (for example, the connection was aborted by server).
Declaration
public event EventHandler<ErrorEventArgs> ConnectionError
Event Type
Type | Description |
---|---|
EventHandler<ErrorEventArgs> |
Disconnected
Disconnected.
Declaration
public event EventHandler Disconnected
Event Type
Type | Description |
---|---|
EventHandler |
Error
Data process error.
Declaration
public event EventHandler<ErrorEventArgs> Error
Event Type
Type | Description |
---|---|
EventHandler<ErrorEventArgs> |
MarketDepthChanged
Order book changed.
Declaration
public event EventHandler<MarketDepthEventArgs> MarketDepthChanged
Event Type
Type | Description |
---|---|
EventHandler<MarketDepthEventArgs> |
MarketTimeChanged
Server time changed ExchangeBoards. It passed the time difference since the last call of the event. The first time the event passes the value Zero.
Declaration
public event EventHandler MarketTimeChanged
Event Type
Type | Description |
---|---|
EventHandler |
NewMarketDepth
Order book received.
Declaration
public event EventHandler<MarketDepthEventArgs> NewMarketDepth
Event Type
Type | Description |
---|---|
EventHandler<MarketDepthEventArgs> |
NewMyTrade
Own trade received.
Declaration
public event EventHandler<MyTradeEventArgs> NewMyTrade
Event Type
Type | Description |
---|---|
EventHandler<MyTradeEventArgs> |
NewOrder
Order received.
Declaration
public event EventHandler<OrderEventArgs> NewOrder
Event Type
Type | Description |
---|---|
EventHandler<OrderEventArgs> |
NewOrderLogItem
Order log received.
Declaration
public event EventHandler<OrderLogItemEventArgs> NewOrderLogItem
Event Type
Type | Description |
---|---|
EventHandler<OrderLogItemEventArgs> |
NewPortfolio
Portfolio received.
Declaration
public event EventHandler<PortfolioEventArgs> NewPortfolio
Event Type
Type | Description |
---|---|
EventHandler<PortfolioEventArgs> |
NewPosition
Position received.
Declaration
public event EventHandler<PositionEventArgs> NewPosition
Event Type
Type | Description |
---|---|
EventHandler<PositionEventArgs> |
NewSecurity
Security received.
Declaration
public event EventHandler<SecurityEventArgs> NewSecurity
Event Type
Type | Description |
---|---|
EventHandler<SecurityEventArgs> |
NewTrade
Tick trade received.
Declaration
public event EventHandler<TradeEventArgs> NewTrade
Event Type
Type | Description |
---|---|
EventHandler<TradeEventArgs> |
OrderCancelFailed
Order cancellation error event.
Declaration
public event EventHandler<OrderFailEventArgs> OrderCancelFailed
Event Type
Type | Description |
---|---|
EventHandler<OrderFailEventArgs> |
OrderChanged
Order changed (cancelled, matched).
Declaration
public event EventHandler<OrderEventArgs> OrderChanged
Event Type
Type | Description |
---|---|
EventHandler<OrderEventArgs> |
OrderRegisterFailed
Order registration error event.
Declaration
public event EventHandler<OrderFailEventArgs> OrderRegisterFailed
Event Type
Type | Description |
---|---|
EventHandler<OrderFailEventArgs> |
PortfolioChanged
Portfolio changed.
Declaration
public event EventHandler<PortfolioEventArgs> PortfolioChanged
Event Type
Type | Description |
---|---|
EventHandler<PortfolioEventArgs> |
PositionChanged
Position changed.
Declaration
public event EventHandler<PositionEventArgs> PositionChanged
Event Type
Type | Description |
---|---|
EventHandler<PositionEventArgs> |
SecurityChanged
Security changed.
Declaration
public event EventHandler<SecurityEventArgs> SecurityChanged
Event Type
Type | Description |
---|---|
EventHandler<SecurityEventArgs> |