Class BvmtFixDialect
- Namespace
- StockSharp.Bvmt
- Assembly
- StockSharp.Bvmt.dll
Tunis BVMT FIX protocol dialect.
[MediaIcon("bvmt_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "TunisBvmt", Description = "StockConnector", GroupName = "America")]
public class BvmtFixDialect : BaseFixDialect, IFixDialect, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, IDemoAdapter
- Inheritance
-
BvmtFixDialect
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
BvmtFixDialect(IdGenerator)
Initializes a new instance of the BvmtFixDialect.
public BvmtFixDialect(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
FeatureName
Feature name.
public override string FeatureName { get; }
Property Value
IsNativeIdentifiers
Identify security in messages by native identifier Native.
public override bool IsNativeIdentifiers { get; }
Property Value
IsReplaceCommandEditCurrent
Is the OrderReplaceMessage command edit a current order.
public override bool IsReplaceCommandEditCurrent { get; }
Property Value
IsSupportTransactionLog
Adapter translates orders changes on reply of OrderStatusMessage.
public override bool IsSupportTransactionLog { get; }
Property Value
LogicalAccessId
Logical access id.
public string LogicalAccessId { get; set; }
Property Value
LoginAsPortfolioName
Use Login as portfolio name.
protected override bool LoginAsPortfolioName { get; }
Property Value
OrdersQueuingMode
Order queue mode.
public OrdersQueuingMode OrdersQueuingMode { get; set; }
Property Value
PartitionId
Partition id.
public string PartitionId { get; set; }
Property Value
PossibleSupportedMessages
Possible supported by adapter message types.
public override IEnumerable<MessageTypeInfo> PossibleSupportedMessages { get; }
Property Value
SupportUnknownExecutions
Support executions processing, generated by third-party software.
public override bool SupportUnknownExecutions { get; set; }
Property Value
SupportedMarketDataTypes
Supported by adapter market data types.
public override IEnumerable<DataType> SupportedMarketDataTypes { get; set; }
Property Value
Methods
ApplyTimeInForce(ExecutionReport, ExecutionMessage, bool)
Apply time in force.
protected override bool ApplyTimeInForce(ExecutionReport report, ExecutionMessage msg, bool throwInvalid = true)
Parameters
report
ExecutionReportmsg
ExecutionMessagethrowInvalid
bool
Returns
GetExecutionTime(ExecutionReport)
Get execution time.
protected override DateTimeOffset GetExecutionTime(ExecutionReport report)
Parameters
report
ExecutionReport
Returns
GetOrderState(ExecutionReport)
Convert OrdStatus to OrderStates value.
protected override OrderStates? GetOrderState(ExecutionReport report)
Parameters
report
ExecutionReportExecutionReport value.
Returns
- OrderStates?
OrderStates value.
GetOrderType(ExecutionReport, out OrderCondition)
Get order type.
protected override OrderTypes GetOrderType(ExecutionReport report, out OrderCondition condition)
Parameters
report
ExecutionReportExecution report.
condition
OrderConditionBase order condition (for example, for stop order algo orders).
Returns
- OrderTypes
Order type.
OnRead(IFixReader, string, Action<Message>)
Read next message from FIX protocol.
protected override bool? OnRead(IFixReader reader, string msgType, Action<Message> messageHandler)
Parameters
reader
IFixReaderThe reader of data recorded in the FIX protocol format.
msgType
stringMessage type.
messageHandler
Action<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
writer
IFixWriterThe recorder of data in the FIX protocol format.
message
MessageThe message.
Returns
- string
FixMessages value.
ProcessExecutionReport(ExecutionReport, Action<Message>, Action<ExecutionReport, Action<Message>, ExecutionMessage>)
Process ExecutionReport instance.
protected override void ProcessExecutionReport(ExecutionReport report, Action<Message> messageHandler, Action<ExecutionReport, Action<Message>, ExecutionMessage> _)
Parameters
report
ExecutionReportExecutionReport instance.
messageHandler
Action<Message>Message handler.
_
Action<ExecutionReport, Action<Message>, ExecutionMessage>
ProcessExecutionReportExtraTag(FixTags, IFixReader, ExecutionReport)
Process extra tags for ExecutionReport.
protected override bool ProcessExecutionReportExtraTag(FixTags tag, IFixReader reader, ExecutionReport report)
Parameters
tag
FixTagsTag.
reader
IFixReaderThe reader of data recorded in the FIX protocol format.
report
ExecutionReportExecution report.
Returns
- bool
Result.
ReadExecutionReport(IFixReader, ExecutionReport, FastDateTimeParser, Func<FixTags, IFixReader, ExecutionReport, bool>)
Read the ExecutionReport message.
protected override bool? ReadExecutionReport(IFixReader reader, ExecutionReport report, FastDateTimeParser transactTimeParser, Func<FixTags, IFixReader, ExecutionReport, bool> extraTagProcess)
Parameters
reader
IFixReaderThe reader of data recorded in the FIX protocol format.
report
ExecutionReportExecutionReport instance.
transactTimeParser
FastDateTimeParserParser for TransactTime field.
extraTagProcess
Func<FixTags, IFixReader, ExecutionReport, bool>
Returns
- bool?
true, if the messages was read successfully, false to skip unknown message, null to break connection.
TryParseNextMsqSeqNum(string)
Try extract expected MsgSeqNum from the specified error message.
public override long? TryParseNextMsqSeqNum(string errorMessage)
Parameters
errorMessage
stringError message.