Namespace OFT.Core
Classes
- BaseConnectorSettings
Base of the connection settings: reads Type, Description and Logo from the attributes of the settings class, copies the common settings to the connector and raises PropertyChanged. A connector derives its settings from BaseConnectorSettings<T, TSelf>.
- BaseConnectorSettings<T, TSelf>
The base class of the settings of a connector. The platform finds a public non-abstract settings class with a public parameterless constructor and creates the connector through it. A derived class must override Features, OnApplySettings(T) and CompareCredentials(TSelf), and can override CheckSupported(out string?) and SettingsTypes. Its System.ComponentModel.DisplayNameAttribute is the connector name and must be unique; System.ComponentModel.DescriptionAttribute and System.ComponentModel.CategoryAttribute set the text and the group in the "Add connection" dialog. Its public properties are shown in the connection settings and saved with the connection as JSON. Third-party connectors provide market data only; trading through them is not supported.
Added in ATAS 8.0.15.
Interfaces
- IConnectorSettings
The settings of one connection: what the connections list and the "Add connection" dialog show, the values the user edits and that are saved with the connection, and the factory of its connector. Derive from BaseConnectorSettings<T, TSelf> instead of implementing this interface directly.
- IConnectorSettingsSupportInitialization
Settings that need initialization with the data folder of the connector before they are used.
- ILoginPasswordConnectorSettings
Settings of a connection that logs in with a login and a password; the platform shows the standard login fields for it, and DisplayName falls back to the login.
Enums
- ConnectorFeatures
What a connection supports, reported by Features. Third-party connectors are market data only: they report MarketData, because trading through them is not supported.
- ConnectorSettingsTypes
How the connection settings are edited, reported by SettingsTypes. The platform compares the whole value with one of the members; do not combine them.