Table of Contents

Class BaseMarketDataOnlyConnectorSettings<T, TSelf>

Namespace
ATAS.DataFeedsCore
Assembly
ATAS.DataFeedsCore.dll

Base settings of a connector that supports market-data-only connections. While the user has not entered a custom connection name, the name follows the settings, for example Bybit Only Market Data.

Added in ATAS 8.0.15.

public abstract class BaseMarketDataOnlyConnectorSettings<T, TSelf> : BaseConnectorSettings<T, TSelf>, IConnectorSettings, ISupportMarketDataOnly where T : class, IDataFeedConnector, new() where TSelf : BaseMarketDataOnlyConnectorSettings<T, TSelf>

Type Parameters

T

The connector type.

TSelf

The settings type itself.

Inheritance
object
BaseMarketDataOnlyConnectorSettings<T, TSelf>
Implements
Inherited Members
Extension Methods

Constructors

BaseMarketDataOnlyConnectorSettings()

protected BaseMarketDataOnlyConnectorSettings()

Fields

OnlyMarketDataNamePart

The part added to the connection name of a market-data-only connection. Intentionally not localized: the composed value is persisted as the connection name.

Not in ATAS 8.0.15 yet: available from the next version.

protected const string OnlyMarketDataNamePart = "Only Market Data"

Field Value

string

Properties

MarketDataOnly

Gets or sets whether the connection is used for market data only.

[Browsable(false)]
public bool MarketDataOnly { get; set; }

Property Value

bool

Methods

ComposeAutoName()

Suggested connection name for the current settings state, e.g. "Binance Futures, Spot" or "Bybit Only Market Data" (PLAT-4563). Applied only while the user has not entered a custom name.

Not in ATAS 8.0.15 yet: available from the next version.

protected virtual string ComposeAutoName()

Returns

string

SetPropertyWithAutoName<TValue>(ref TValue, TValue, string)

Sets the property and refreshes the auto-generated connection name when the current name is empty or equals the name generated for the previous state; a custom user-entered name is never touched.

Not in ATAS 8.0.15 yet: available from the next version.

protected bool SetPropertyWithAutoName<TValue>(ref TValue storage, TValue newValue, string propertyName)

Parameters

storage TValue
newValue TValue
propertyName string

Returns

bool

Type Parameters

TValue