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
- Inherited Members
- Extension Methods
Constructors
BvmtFixDialect(IdGenerator)
Initializes a new instance of the BvmtFixDialect.
public BvmtFixDialect(IdGenerator transactionIdGenerator)
Parameters
transactionIdGeneratorIdGeneratorTransaction 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
Methods
ApplyTimeInForce(ExecutionReport, ExecutionMessage, bool)
Apply time in force.
protected override bool ApplyTimeInForce(ExecutionReport report, ExecutionMessage msg, bool throwInvalid = true)
Parameters
reportExecutionReportmsgExecutionMessagethrowInvalidbool
Returns
GetExecutionTime(ExecutionReport)
Get execution time.
protected override DateTimeOffset GetExecutionTime(ExecutionReport report)
Parameters
reportExecutionReport
Returns
GetOrderState(ExecutionReport)
Convert OrdStatus to OrderStates value.
protected override OrderStates? GetOrderState(ExecutionReport report)
Parameters
reportExecutionReportExecutionReport value.
Returns
- OrderStates?
OrderStates value.
GetOrderType(ExecutionReport, out OrderCondition)
Get order type.
protected override OrderTypes GetOrderType(ExecutionReport report, out OrderCondition condition)
Parameters
reportExecutionReportExecution report.
conditionOrderConditionBase order condition (for example, for stop order algo orders).
Returns
- OrderTypes
Order type.
GetSupportedMarketDataTypes(SecurityId, DateTimeOffset?, DateTimeOffset?)
Get supported by adapter message types.
public override IEnumerable<DataType> GetSupportedMarketDataTypes(SecurityId securityId, DateTimeOffset? from, DateTimeOffset? to)
Parameters
securityIdSecurityIdfromDateTimeOffset?Start date for request. If null, then all available messages will be returned.
toDateTimeOffset?End date for request. If null, then all available messages will be returned.
Returns
- IEnumerable<DataType>
Supported by adapter market data types.
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.
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
reportExecutionReportExecutionReport instance.
messageHandlerAction<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
tagFixTagsTag.
readerIFixReaderThe reader of data recorded in the FIX protocol format.
reportExecutionReportExecution 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
readerIFixReaderThe reader of data recorded in the FIX protocol format.
reportExecutionReportExecutionReport instance.
transactTimeParserFastDateTimeParserParser for TransactTime field.
extraTagProcessFunc<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
errorMessagestringError message.