Class FastMessageAdapter
- Namespace
- StockSharp.Fix
- Assembly
- StockSharp.FAST.dll
FAST message adapter.
[MediaIcon("Fix_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Fast", Description = "FixConnector")]
[MessageAdapterCategory(MessageAdapterCategories.Stock|MessageAdapterCategories.FX|MessageAdapterCategories.RealTime|MessageAdapterCategories.Paid|MessageAdapterCategories.Ticks|MessageAdapterCategories.Candles|MessageAdapterCategories.Level1|MessageAdapterCategories.OrderLog|MessageAdapterCategories.Transactions|MessageAdapterCategories.Futures|MessageAdapterCategories.Options)]
public class FastMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged
- Inheritance
-
FastMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
FastMessageAdapter(IdGenerator)
Initializes a new instance of the FastMessageAdapter.
public FastMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
AssociatedBoards
The adapter can process subscription only with instruments associated with the specified board.
public override string[] AssociatedBoards { get; }
Property Value
- string[]
CandlesBuildFrom
Possible options for candles building.
public override IEnumerable<Level1Fields> CandlesBuildFrom { get; }
Property Value
Categories
Message adapter categories.
public override MessageAdapterCategories Categories { get; }
Property Value
CheckTimeFrameByRequest
Check possible time-frame by request.
public override bool CheckTimeFrameByRequest { get; }
Property Value
Dialect
The FAST dialect. The default is SpectraFastDialect.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Dialect", Description = "FixDialectProtocol", GroupName = "Session", Order = 0)]
public Type Dialect { get; set; }
Property Value
DialectSettings
FAST settings.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Settings", Description = "DialectSettings", GroupName = "Session", Order = 1)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public IFastDialect DialectSettings { get; }
Property Value
EnqueueSubscriptions
Enqueue subscriptions.
public override bool EnqueueSubscriptions { get; set; }
Property Value
Remarks
Do not send new request before received confirmation for previous.
FeatureName
Feature name.
public override string FeatureName { get; }
Property Value
GenerateOrderBookFromLevel1
Generate QuoteChangeMessage from Level1ChangeMessage.
public override bool GenerateOrderBookFromLevel1 { get; set; }
Property Value
Icon
Icon.
public override Uri Icon { get; }
Property Value
IsAutoReplyOnTransactonalUnsubscription
Send auto response for OrderStatusMessage and PortfolioLookupMessage unsubscribes.
public override bool IsAutoReplyOnTransactonalUnsubscription { get; }
Property Value
IsFullCandlesOnly
Translates CandleMessage as only fully filled.
public override bool IsFullCandlesOnly { get; }
Property Value
IsNativeIdentifiers
Identify security in messages by native identifier Native.
public override bool IsNativeIdentifiers { get; }
Property Value
IsNativeIdentifiersPersistable
Native identifier can be stored.
public override bool IsNativeIdentifiersPersistable { get; }
Property Value
IsPositionsEmulationRequired
Adapter required emulation PositionChangeMessage.
public override bool? IsPositionsEmulationRequired { get; }
Property Value
- bool?
Remarks
IsReplaceCommandEditCurrent
Is the OrderReplaceMessage command edit a current order.
public override bool IsReplaceCommandEditCurrent { get; }
Property Value
IsSecurityNewsOnly
Adapter provides news related with specified security.
public override bool IsSecurityNewsOnly { get; }
Property Value
IsSupportExecutionsPnL
Adapter fills PnL.
public override bool IsSupportExecutionsPnL { get; }
Property Value
IsSupportOrderBookIncrements
Adapter translates incremental order books.
public override bool IsSupportOrderBookIncrements { get; }
Property Value
IsSupportPartialDownloading
Support partial downloading.
public override bool IsSupportPartialDownloading { get; }
Property Value
IsSupportSubscriptions
Support any subscriptions (ticks, order books etc.).
public override bool IsSupportSubscriptions { get; }
Property Value
IsSupportTransactionLog
Adapter translates orders changes on reply of OrderStatusMessage.
public override bool IsSupportTransactionLog { get; }
Property Value
IterationInterval
Interval between iterations.
public override TimeSpan IterationInterval { get; }
Property Value
LookupTimeout
Lookup timeout.
public override TimeSpan? LookupTimeout { get; }
Property Value
OrderConditionType
Type of OrderCondition.
public override Type OrderConditionType { get; }
Property Value
Remarks
If the connection does not support the order type Conditional, it will be returned null.
PossibleSupportedMessages
Possible supported by adapter message types.
public override IEnumerable<MessageTypeInfo> PossibleSupportedMessages { get; }
Property Value
SecurityExtendedFields
Names of extended security fields in SecurityMessage.
public override IEnumerable<Tuple<string, Type>> SecurityExtendedFields { get; }
Property Value
SettingsFile
Settings file.
[Display(ResourceType = typeof(LocalizedStrings), Name = "SettingsFile", Description = "SettingsFile", GroupName = "Session", Order = 2)]
public string SettingsFile { get; set; }
Property Value
StorageName
The storage name, associated with the adapter.
public override string StorageName { get; }
Property Value
SupportedInMessages
Supported by adapter message types.
public override IEnumerable<MessageTypes> SupportedInMessages { get; set; }
Property Value
SupportedMarketDataTypes
Supported by adapter market data types.
public override IEnumerable<DataType> SupportedMarketDataTypes { get; }
Property Value
SupportedOrderBookDepths
Available options for MaxDepth.
public override IEnumerable<int> SupportedOrderBookDepths { get; }
Property Value
SupportedResultMessages
Supported by adapter result message types.
public override IEnumerable<MessageTypes> SupportedResultMessages { get; }
Property Value
UseChannels
Use channels for in and out messages.
public override bool UseChannels { get; }
Property Value
Methods
CreateOrderLogMarketDepthBuilder(SecurityId)
Create market depth builder.
public override IOrderLogMarketDepthBuilder CreateOrderLogMarketDepthBuilder(SecurityId securityId)
Parameters
securityId
SecurityIdSecurity ID.
Returns
- IOrderLogMarketDepthBuilder
Order log to market depth builder.
GetCandleArgs(Type, SecurityId, DateTimeOffset?, DateTimeOffset?)
Get possible args for the specified candle type and instrument.
public override IEnumerable<object> GetCandleArgs(Type candleType, SecurityId securityId, DateTimeOffset? from, DateTimeOffset? to)
Parameters
candleType
TypeThe type of the message CandleMessage.
securityId
SecurityIdSecurity ID.
from
DateTimeOffset?The initial date from which you need to get data.
to
DateTimeOffset?The final date by which you need to get data.
Returns
- IEnumerable<object>
Possible args.
GetHistoryStepSize(SecurityId, DataType, out TimeSpan)
Get maximum size step allowed for historical download.
public override TimeSpan GetHistoryStepSize(SecurityId securityId, DataType dataType, out TimeSpan iterationInterval)
Parameters
securityId
SecurityIddataType
DataTypeData type info.
iterationInterval
TimeSpanInterval between iterations.
Returns
- TimeSpan
Step.
GetMaxCount(DataType)
Get maximum possible items count per single subscription request.
public override int? GetMaxCount(DataType dataType)
Parameters
dataType
DataTypeData type info.
Returns
- int?
Max items count.
GetSupportedDataTypes(SecurityId)
Get supported data types for the specified SecurityId.
public override IEnumerable<DataType> GetSupportedDataTypes(SecurityId securityId)
Parameters
securityId
SecurityId
Returns
- IEnumerable<DataType>
Supported data types.
IsAllDownloadingSupported(DataType)
Is for the specified dataType
all securities downloading enabled.
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
dataType
DataTypeData type info.
Returns
- bool
Check result.
IsSecurityRequired(DataType)
Support filtering subscriptions (subscribe/unsubscribe for specified security).
public override bool IsSecurityRequired(DataType dataType)
Parameters
dataType
DataTypeData type info.
Returns
- bool
Check result.
IsSupportCandlesPriceLevels(MarketDataMessage)
Support candles PriceLevels.
public override bool IsSupportCandlesPriceLevels(MarketDataMessage subscription)
Parameters
subscription
MarketDataMessage
Returns
- bool
Check result.
IsSupportCandlesUpdates(MarketDataMessage)
Support candles subscription and live updates.
public override bool IsSupportCandlesUpdates(MarketDataMessage subscription)
Parameters
subscription
MarketDataMessage
Returns
- bool
Check result.
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()