Class DefaultFixDialect
- Namespace
- StockSharp.Fix.Dialects
- Assembly
- StockSharp.Fix.Core.dll
The default implementation of IFixDialect.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Default")]
[MediaIcon("fix_logo.svg")]
public class DefaultFixDialect : BaseFixDialect, IFixDialect, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, IDemoAdapter
- Inheritance
-
DefaultFixDialect
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the DefaultFixDialect.
Constructors
DefaultFixDialect(IdGenerator)
The default implementation of IFixDialect.
public DefaultFixDialect(IdGenerator transactionIdGenerator)
Parameters
transactionIdGeneratorIdGeneratorTransaction id generator.
Remarks
Initializes a new instance of the DefaultFixDialect.
Properties
CheckTimeFrameByRequest
Check possible time-frame by request.
public override bool CheckTimeFrameByRequest { get; }
Property Value
ConvertToLatin
Convert all non-latin text messages to latin.
public bool ConvertToLatin { get; set; }
Property Value
IsAutoReplyOnTransactonalUnsubscription
Send auto response for OrderStatusMessage and PortfolioLookupMessage unsubscribes.
public override bool IsAutoReplyOnTransactonalUnsubscription { get; }
Property Value
IsSupportMarketDataResponse
Support market-data response.
protected override bool IsSupportMarketDataResponse { get; }
Property Value
NotSupportedResultMessages
Not supported by adapter result message types.
public override IEnumerable<MessageTypes> NotSupportedResultMessages { get; set; }
Property Value
PossibleSupportedMessages
Possible supported by adapter message types.
public override IEnumerable<MessageTypeInfo> PossibleSupportedMessages { get; }
Property Value
SupportLicensing
Support of licensing features.
public override bool SupportLicensing { get; }
Property Value
Methods
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
securityIdSecurityIddataTypeDataTypeData type info.
iterationIntervalTimeSpanInterval between iterations.
Returns
- TimeSpan
Step.
IsSupportCandlesUpdates(MarketDataMessage)
Support candles subscription and live updates.
public override bool IsSupportCandlesUpdates(MarketDataMessage subscription)
Parameters
subscriptionMarketDataMessage
Returns
- bool
Check result.
OnRead(IFixReader, string, Action<Message>)
Read next message from FIX protocol.
protected override bool? OnRead(IFixReader reader, string msgType, Action<Message> messageHandler)
Parameters
readerIFixReaderThe reader of data recorded in the FIX protocol format.
msgTypestringMessage type.
messageHandlerAction<Message>Message handler.
Returns
- bool?
true, if the messages was read successfully, false to skip unknown message, null to break connection.
OnWrite(IFixWriter, Message)
Write the specified message into FIX protocol.
protected override string OnWrite(IFixWriter writer, Message message)
Parameters
writerIFixWriterThe recorder of data in the FIX protocol format.
messageMessageThe message.
Returns
- string
FixMessages value.
ReadOrderCondition(IFixReader, FixTags, Func<OrderCondition>)
To read the order condition OrderCondition.
protected virtual bool ReadOrderCondition(IFixReader reader, FixTags tag, Func<OrderCondition> getCondition)
Parameters
readerIFixReaderData reader.
tagFixTagsTag.
getConditionFunc<OrderCondition>The function returning the order condition.
Returns
- bool
Whether the data was successfully processed.
RegisterCandleType(char, Type)
Register new candle type.
public static void RegisterCandleType(char code, Type messageType)
Parameters
codecharMDEntryType value.
messageTypeTypeMessage type.
WriteOrderCondition(IFixWriter, OrderCondition)
To record data by the order condition.
protected virtual void WriteOrderCondition(IFixWriter writer, OrderCondition condition)
Parameters
writerIFixWriterFIX data writer.
conditionOrderConditionOrder condition (e.g., stop- and algo- orders parameters).