Click or drag to resize

OpenECryTrader Class

The interface IConnector implementation which provides a connection to the StockSharp.OpenECry.
Inheritance Hierarchy

Namespace:  StockSharp.OpenECry
Assembly:  StockSharp.OpenECry (in StockSharp.OpenECry.dll) Version: 4.4.14.0 (4.4.14)
Syntax
C#
public sealed class OpenECryTrader : Connector

The OpenECryTrader type exposes the following members.

Constructors
  NameDescription
Public methodOpenECryTrader
Initializes a new instance of the OpenECryTrader.
Top
Properties
  NameDescription
Public propertyAdapter
Message adapter.
(Inherited from Connector.)
Public propertyAddress
The OpenECry server API address. The default is Api.
Public propertyAutoPortfoliosSubscribe
Send subscribe messages on connect. By default is .
(Inherited from Connector.)
Public propertyCommissionManager
The commission calculating manager.
(Inherited from Connector.)
Public propertyConnectionState
Connection state.
(Inherited from Connector.)
Public propertyCreateAssociatedSecurity
Create a combined security for securities from different boards.
(Inherited from Connector.)
Public propertyCreateDepthFromLevel1
To update the order book for the instrument when the Level1ChangeMessage message appears. By default is enabled.
(Inherited from Connector.)
Public propertyCreateDepthFromOrdersLog Obsolete.
Use orders log to create market depths. Disabled by default.
(Inherited from Connector.)
Public propertyCreateTradesFromOrdersLog Obsolete.
Use orders log to create ticks. Disabled by default.
(Inherited from Connector.)
Public propertyCurrentTime
Current time, which will be passed to the Time.
(Inherited from Connector.)
Public propertyEnableOECLogging
To use the OEC library logging.
Public propertyEntityFactory
Entity factory (Security, Order etc.).
(Inherited from Connector.)
Public propertyEntityRegistry
The storage of trade objects.
(Inherited from Connector.)
Public propertyErrorCount
The number of errors passed through the Error event.
(Inherited from Connector.)
Public propertyExchangeBoards
List of all exchange boards, for which instruments are loaded Securities.
(Inherited from Connector.)
Public propertyId
The unique identifier of the source.
(Inherited from BaseLogSource.)
Public propertyInMessageChannel
Input message channel.
(Inherited from Connector.)
Public propertyInnerAdapter
Inner message adapter.
(Inherited from Connector.)
Public propertyIsDisposed (Inherited from Disposable.)
Public propertyIsRestoreSubscriptionOnReconnect
Restore subscription on reconnect.
(Inherited from Connector.)
Public propertyIsRoot
Whether the source is the root (even if Parent is not equal to ).
(Inherited from BaseLogSource.)
Public propertyLatencyManager
Orders registration delay calculation manager.
(Inherited from Connector.)
Public propertyLogin
Login.
Public propertyLogLevel
The logging level. The default is set to Inherit.
(Inherited from BaseLogSource.)
Public propertyLookupMessagesOnConnect
Send lookup messages on connect. By default is .
(Inherited from Connector.)
Public propertyMarketDataAdapter
Market-data adapter.
(Inherited from Connector.)
Public propertyMarketTimeChangedInterval
The TimeMessage message generating Interval. The default is 10 milliseconds.
(Inherited from Connector.)
Public propertyMyTrades
Get all own trades.
(Inherited from Connector.)
Public propertyName
Source name (to distinguish in log files).
(Inherited from BaseLogSource.)
Public propertyNews
All news.
(Inherited from Connector.)
Public propertyOrderCancelFails
Get all cancellation errors.
(Inherited from Connector.)
Public propertyOrderRegisterFails
Get all registration errors.
(Inherited from Connector.)
Public propertyOrders
Get all orders.
(Inherited from Connector.)
Public propertyOrdersKeepCount
The number of orders for storage. The default is 1000. If the value is set to MaxValue, then the orders will not be deleted. If the value is set to 0, then the orders will not be stored.
(Inherited from Connector.)
Public propertyOutMessageChannel
Outgoing message channel.
(Inherited from Connector.)
Public propertyOverrideSecurityData
Override previous security data by new values.
(Inherited from Connector.)
Public propertyParent
Parent.
(Inherited from BaseLogSource.)
Public propertyPassword
Password.
Public propertyPnLManager
The profit-loss manager.
(Inherited from Connector.)
Public propertyPortfolios
Get all portfolios.
(Inherited from Connector.)
Public propertyPositions
Get all positions.
(Inherited from Connector.)
Public propertyReConnectionSettings
Settings of the connection control IConnector to the trading system.
(Inherited from Connector.)
Public propertyRegisteredMarketDepths (Inherited from Connector.)
Public propertyRegisteredOrderLogs (Inherited from Connector.)
Public propertyRegisteredPortfolios
List of all portfolios, subscribed via RegisterPortfolio(Portfolio).
(Inherited from Connector.)
Public propertyRegisteredSecurities (Inherited from Connector.)
Public propertyRegisteredTrades (Inherited from Connector.)
Public propertyRemotingRequired
The required mode of connection to the terminal. The default is None.
Public propertyRiskManager
Risk control manager.
(Inherited from Connector.)
Public propertySecurities
List of all loaded instruments. It should be called after event NewSecurities arisen. Otherwise the empty set will be returned.
(Inherited from Connector.)
Public propertySecurityIdGenerator
The instrument identifiers generator Id.
(Inherited from Connector.)
Public propertySlippageManager
Slippage manager.
(Inherited from Connector.)
Public propertySnapshotRegistry
Snapshot storage registry.
(Inherited from Connector.)
Public propertyStopOrders
Get all stop-orders.
(Inherited from Connector.)
Public propertyStorageAdapter
Storage adapter.
(Inherited from Connector.)
Public propertyStorageRegistry
The storage of market data.
(Inherited from Connector.)
Public propertySubscribedCandleSeries (Inherited from Connector.)
Public propertySupportAssociatedSecurity (Inherited from Connector.)
Public propertySupportFilteredMarketDepth (Inherited from Connector.)
Public propertySupportLevel1DepthBuilder (Inherited from Connector.)
Public propertySupportOffline (Inherited from Connector.)
Public propertySupportSubscriptionTracking (Inherited from Connector.)
Public propertyTimeChange
Increment periodically MarketTimeChangedInterval value of CurrentTime.
(Inherited from Connector.)
Public propertyTrades
Get all tick trades.
(Inherited from Connector.)
Public propertyTradesKeepCount
Number of tick trades for storage. The default is 100000. If the value is set to MaxValue, the trades will not be deleted. If the value is set to 0, then the trades will not be stored.
(Inherited from Connector.)
Public propertyTransactionAdapter
Transactional adapter.
(Inherited from Connector.)
Public propertyTransactionIdGenerator
Transaction id generator.
(Inherited from Connector.)
Public propertyUpdateSecurityByDefinition
To update Security fields when the SecurityMessage message appears. By default is enabled.
(Inherited from Connector.)
Public propertyUpdateSecurityByLevel1
To update Security fields when the Level1ChangeMessage message appears. By default is enabled.
(Inherited from Connector.)
Public propertyUpdateSecurityLastQuotes
To update LastTrade, BestBid, BestAsk at each update of order book and/or trades. By default is enabled.
(Inherited from Connector.)
Public propertyUseNativeReconnect
To use the 'native' reconnection process. Enabled by default.
Public propertyUuid
Unique software ID.
Top
Methods
  NameDescription
Public methodCancelOrder
Cancel the order.
(Inherited from Connector.)
Public methodCancelOrders
Cancel orders by filter.
(Inherited from Connector.)
Public methodChangePassword
Change password.
(Inherited from Connector.)
Public methodClearCache
Clear cache.
(Inherited from Connector.)
Public methodConnect
Connect to trading system.
(Inherited from Connector.)
Public methodDisconnect
Disconnect from trading system.
(Inherited from Connector.)
Public methodDispose (Inherited from Disposable.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetFilteredMarketDepth
Get filtered order book.
(Inherited from Connector.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLevel1Fields
To get a set of available fields Level1Fields, for which there is a market data for the instrument.
(Inherited from Connector.)
Public methodGetMarketDepth
To get the quotes order book.
(Inherited from Connector.)
Public methodGetPortfolio
To get the portfolio by the name. If the portfolio is not registered, it is created via CreatePortfolio(String).
(Inherited from Connector.)
Public methodGetPosition
To get the position by portfolio and instrument.
(Inherited from Connector.)
Public methodGetSecurityId
Get SecurityId.
(Inherited from Connector.)
Public methodGetSecurityValue
To get the value of market data for the instrument.
(Inherited from Connector.)
Public methodGetSessionState
Get session state for required board.
(Inherited from Connector.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeStorage
Initialize StorageAdapter.
(Inherited from Connector.)
Public methodLoad
Load settings.
(Inherited from Connector.)
Public methodLookup
Lookup securities by criteria criteria.
(Inherited from Connector.)
Public methodLookupOrders(OrderStatusMessage)
To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.
(Inherited from Connector.)
Public methodLookupOrders(Order, IMessageAdapter)
To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.
(Inherited from Connector.)
Public methodLookupPortfolios(PortfolioLookupMessage)
To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.
(Inherited from Connector.)
Public methodLookupPortfolios(Portfolio, IMessageAdapter, MessageOfflineModes)
To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.
(Inherited from Connector.)
Public methodLookupSecurities(SecurityLookupMessage)
To find instruments that match the filter criteria. Found instruments will be passed through the event LookupSecuritiesResult.
(Inherited from Connector.)
Public methodLookupSecurities(Security, IMessageAdapter, MessageOfflineModes)
To find instruments that match the filter criteria. Found instruments will be passed through the event LookupSecuritiesResult.
(Inherited from Connector.)
Public methodLookupSecurity
Lookup security by identifier.
(Inherited from Connector.)
Public methodRegisterFilteredMarketDepth
To start getting filtered quotes (order book) by the instrument. Quotes values are available through the event GetFilteredMarketDepth(Security).
(Inherited from Connector.)
Public methodRegisterMarketDepth
To start getting quotes (order book) by the instrument. Quotes values are available through the event MarketDepthsChanged.
(Inherited from Connector.)
Public methodRegisterNews
Subscribe on news.
(Inherited from Connector.)
Public methodRegisterOrder
Register new order.
(Inherited from Connector.)
Public methodRegisterOrderLog
Subscribe on order log for the security.
(Inherited from Connector.)
Public methodRegisterPortfolio
Subscribe on the portfolio changes.
(Inherited from Connector.)
Public methodRegisterSecurity
To start getting new information (for example, LastTrade or BestBid) by the instrument.
(Inherited from Connector.)
Public methodRegisterTrades
To start getting trades (tick data) by the instrument. New trades will come through the event NewTrades.
(Inherited from Connector.)
Public methodRequestNewsStory
Request news Story body. After receiving the event NewsChanged will be triggered.
(Inherited from Connector.)
Public methodReRegisterOrder(Order, Order)
Reregister the order.
(Inherited from Connector.)
Public methodReRegisterOrder(Order, Decimal, Decimal)
Reregister the order.
(Inherited from Connector.)
Public methodReRegisterOrderPair
Reregister of pair orders.
(Inherited from Connector.)
Public methodSave
Save settings.
(Inherited from Connector.)
Public methodSendInMessage
Send message.
(Inherited from Connector.)
Public methodSendMessage
To send a message to another user.
Public methodSendOutError
Send error message.
(Inherited from Connector.)
Public methodSendOutMessage
Send outgoing message.
(Inherited from Connector.)
Public methodSubscribeCandles
Subscribe to receive new candles.
(Inherited from Connector.)
Public methodSubscribeMarketData
To sign up to get market data by the instrument.
(Inherited from Connector.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseLogSource.)
Public methodUnRegisterFilteredMarketDepth
To stop getting filtered quotes by the instrument.
(Inherited from Connector.)
Public methodUnRegisterMarketDepth
To stop getting quotes by the instrument.
(Inherited from Connector.)
Public methodUnRegisterNews
Unsubscribe from news.
(Inherited from Connector.)
Public methodUnRegisterOrderLog
Unsubscribe from order log for the security.
(Inherited from Connector.)
Public methodUnRegisterPortfolio
Unsubscribe from the portfolio changes.
(Inherited from Connector.)
Public methodUnRegisterSecurity
To stop getting new information.
(Inherited from Connector.)
Public methodUnRegisterTrades
To stop getting trades (tick data) by the instrument.
(Inherited from Connector.)
Public methodUnSubscribeCandles (Inherited from Connector.)
Public methodUnSubscribeMarketData
To unsubscribe from getting market data by the instrument.
(Inherited from Connector.)
Top
Events
  NameDescription
Public eventCandleSeriesProcessing
A new value for processing occurrence event.
(Inherited from Connector.)
Public eventCandleSeriesStopped
The series processing end event.
(Inherited from Connector.)
Public eventConnected
Connected.
(Inherited from Connector.)
Public eventConnectedEx
Connected.
(Inherited from Connector.)
Public eventConnectionError
Connection error (for example, the connection was aborted by server).
(Inherited from Connector.)
Public eventConnectionErrorEx
Connection error (for example, the connection was aborted by server).
(Inherited from Connector.)
Public eventDisconnected
Disconnected.
(Inherited from Connector.)
Public eventDisconnectedEx
Disconnected.
(Inherited from Connector.)
Public eventError
Data process error.
(Inherited from Connector.)
Public eventLog
New debug message event.
(Inherited from BaseLogSource.)
Public eventLookupPortfoliosResult (Inherited from Connector.)
Public eventLookupSecuritiesResult (Inherited from Connector.)
Public eventMarketDataSubscriptionFailed
Error subscription market-data.
(Inherited from Connector.)
Public eventMarketDataSubscriptionFinished
Subscription market-data finished.
(Inherited from Connector.)
Public eventMarketDataSubscriptionSucceeded
Successful subscription market-data.
(Inherited from Connector.)
Public eventMarketDataUnSubscriptionFailed
Error unsubscription market-data.
(Inherited from Connector.)
Public eventMarketDataUnSubscriptionSucceeded
Successful unsubscription market-data.
(Inherited from Connector.)
Public eventMarketDepthChanged
Order book changed.
(Inherited from Connector.)
Public eventMarketDepthsChanged
Order books changed.
(Inherited from Connector.)
Public eventMarketTimeChanged
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.
(Inherited from Connector.)
Public eventMassOrderCanceled
Mass order cancellation event.
(Inherited from Connector.)
Public eventMassOrderCancelFailed
Mass order cancellation errors event.
(Inherited from Connector.)
Public eventNewMarketDepth
Order book received.
(Inherited from Connector.)
Public eventNewMarketDepths
Order books received.
(Inherited from Connector.)
Public eventNewMessage
Message processed Message.
(Inherited from Connector.)
Public eventNewMyTrade
Own trade received.
(Inherited from Connector.)
Public eventNewMyTrades
Own trades received.
(Inherited from Connector.)
Public eventNewNews
News received.
(Inherited from Connector.)
Public eventNewOrder
Order received.
(Inherited from Connector.)
Public eventNewOrderLogItem
Order log received.
(Inherited from Connector.)
Public eventNewOrderLogItems
Order log received.
(Inherited from Connector.)
Public eventNewOrders
Orders received.
(Inherited from Connector.)
Public eventNewPortfolio
New portfolio received.
(Inherited from Connector.)
Public eventNewPortfolios
Portfolios received.
(Inherited from Connector.)
Public eventNewPosition
New position received.
(Inherited from Connector.)
Public eventNewPositions
Positions received.
(Inherited from Connector.)
Public eventNewsChanged
News updated (news body received Story).
(Inherited from Connector.)
Public eventNewSecurities
Securities received.
(Inherited from Connector.)
Public eventNewSecurity
Security received.
(Inherited from Connector.)
Public eventNewStopOrder
Stop-order received.
(Inherited from Connector.)
Public eventNewStopOrders
Stop-orders received.
(Inherited from Connector.)
Public eventNewTrade
Tick trade received.
(Inherited from Connector.)
Public eventNewTrades
Tick trades received.
(Inherited from Connector.)
Public eventOrderCancelFailed
Order cancellation error event.
(Inherited from Connector.)
Public eventOrderChanged
Order changed (cancelled, matched).
(Inherited from Connector.)
Public eventOrderRegisterFailed
Order registration error event.
(Inherited from Connector.)
Public eventOrdersCancelFailed
Order cancellation errors event.
(Inherited from Connector.)
Public eventOrdersChanged
Orders changed (cancelled, matched).
(Inherited from Connector.)
Public eventOrdersRegisterFailed
Order registration errors event.
(Inherited from Connector.)
Public eventOrderStatusFailed
Failed order status request event.
(Inherited from Connector.)
Public eventPortfolioChanged
Portfolio changed.
(Inherited from Connector.)
Public eventPortfoliosChanged
Portfolios changed.
(Inherited from Connector.)
Public eventPositionChanged
Position changed.
(Inherited from Connector.)
Public eventPositionsChanged
Positions changed.
(Inherited from Connector.)
Public eventRestored
Connection restored.
(Inherited from Connector.)
Public eventSecuritiesChanged
Securities changed.
(Inherited from Connector.)
Public eventSecurityChanged
Security changed.
(Inherited from Connector.)
Public eventSessionStateChanged
Session changed.
(Inherited from Connector.)
Public eventStopOrderCancelFailed
Stop-order cancellation error event.
(Inherited from Connector.)
Public eventStopOrderChanged
Stop order state change event.
(Inherited from Connector.)
Public eventStopOrderRegisterFailed
Stop-order registration error event.
(Inherited from Connector.)
Public eventStopOrdersCancelFailed
Stop-order cancellation errors event.
(Inherited from Connector.)
Public eventStopOrdersChanged
Stop orders state change event.
(Inherited from Connector.)
Public eventStopOrdersRegisterFailed
Stop-order registration errors event.
(Inherited from Connector.)
Public eventTimeOut
Connection timed-out.
(Inherited from Connector.)
Public eventValuesChanged
Security changed.
(Inherited from Connector.)
Top
Extension Methods
  NameDescription
Public Extension MethodConfigure
Configure connection using ConnectorWindow.
(Defined by Extensions.)
Public Extension MethodFilterSecurities
To filter Securities by given criteria.
(Defined by TraderHelper.)
Public Extension MethodGetSecurityCriteria
To create the search criteria Security from SecurityLookupMessage.
(Defined by TraderHelper.)
Top
See Also