Class MatLabConnector
- Namespace
- StockSharp.MatLab
- Assembly
- StockSharp.MatLab.dll
The interface IConnector implementation which provides ability to use from MatLab scripts.
public class MatLabConnector : Disposable, IDisposable
- Inheritance
-
MatLabConnector
- Implements
- Inherited Members
- Extension Methods
Constructors
MatLabConnector()
Initializes a new instance of the MatLabConnector.
public MatLabConnector()
Properties
RealConnector
The connection for market-data and transactions.
public Connector RealConnector { get; }
Property Value
Methods
AddAdapter(IMessageAdapter, string)
Add adapter.
public void AddAdapter(IMessageAdapter adapter, string initString)
Parameters
adapter
IMessageAdapterAdapter.
initString
stringInitialization string.
DisposeManaged()
Release resources.
protected override void DisposeManaged()
LookupSecurity(string)
To find instruments that match the filter criteria
.
public void LookupSecurity(string criteria)
Parameters
criteria
stringThe instrument whose fields will be used as a filter.
Subscribe(DataType, Security)
Subscribe to data.
public void Subscribe(DataType type, Security security)
Parameters
UnSubscribe(DataType, Security)
Unsubscribe from data.
public void UnSubscribe(DataType type, Security security)
Parameters
Events
CandleReceived
Candle received.
public event EventHandler<SubscriptionEventArgs<ICandleMessage>> CandleReceived
Event Type
Connected
Connected.
public event EventHandler Connected
Event Type
ConnectionError
Connection error (for example, the connection was aborted by server).
public event EventHandler<ErrorEventArgs> ConnectionError
Event Type
CurrentTimeChanged
Server time changed CurrentTime. It passed the time difference since the last call of the event. The first time the event passes the value Zero.
public event EventHandler CurrentTimeChanged
Event Type
Disconnected
Disconnected.
public event EventHandler Disconnected
Event Type
Error
Data process error.
public event EventHandler<ErrorEventArgs> Error
Event Type
OrderBookReceived
Order book received.
public event EventHandler<SubscriptionEventArgs<IOrderBookMessage>> OrderBookReceived
Event Type
OrderFailReceived
Order registration error received.
public event EventHandler<SubscriptionEventArgs<OrderFail>> OrderFailReceived
Event Type
OrderLogReceived
Order log received.
public event EventHandler<SubscriptionEventArgs<IOrderLogMessage>> OrderLogReceived
Event Type
OrderReceived
Order received.
public event EventHandler<SubscriptionEventArgs<Order>> OrderReceived
Event Type
OwnTradeReceived
Own trade received.
public event EventHandler<SubscriptionEventArgs<MyTrade>> OwnTradeReceived
Event Type
PortfolioReceived
Portfolio received.
public event EventHandler<SubscriptionEventArgs<Portfolio>> PortfolioReceived
Event Type
PositionReceived
Position received.
public event EventHandler<SubscriptionEventArgs<Position>> PositionReceived
Event Type
SecurityReceived
Security received.
public event EventHandler<SubscriptionEventArgs<Security>> SecurityReceived
Event Type
SubscriptionChanged
Subscription changed.
public event EventHandler<SubscriptionEventArgs<SubscriptionStates>> SubscriptionChanged
Event Type
TickReceived
Tick trade received.
public event EventHandler<SubscriptionEventArgs<ITickTradeMessage>> TickReceived