Class BovespaFixDialect
- Namespace
- StockSharp.Fix.Dialects.Bovespa
- Assembly
- StockSharp.Fix.dll
B3 BM&F Bovespa FIX protocol dialect.
[MediaIcon("B3_logo.png")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "BrasilBolsa", GroupName = "Stock")]
public class BovespaFixDialect : BaseFixDialect, IFixDialect, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, IDemoAdapter
- Inheritance
-
BovespaFixDialect
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
BovespaFixDialect(IdGenerator)
Initializes a new instance of the BovespaFixDialect.
public BovespaFixDialect(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
FeatureName
Feature name.
public override string FeatureName { get; }
Property Value
IsPositionsEmulationRequired
Adapter required emulation PositionChangeMessage.
public override bool? IsPositionsEmulationRequired { get; }
Property Value
- bool?
Remarks
LoginAsPortfolioName
Use Login as portfolio name.
protected override bool LoginAsPortfolioName { 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
SupportedMarketDataTypes
Supported by adapter market data types.
public override IEnumerable<DataType> SupportedMarketDataTypes { get; set; }
Property Value
Methods
GetBoardCode(string, string, string)
Get board code.
protected override string GetBoardCode(string destination, string exchange, string tradingSession)
Parameters
Returns
- string
Board code.
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>, ExecutionMessage)
Process ExecutionReport instance.
protected override void ProcessExecutionReport(ExecutionReport report, Action<Message> messageHandler, ExecutionMessage message)
Parameters
report
ExecutionReportExecutionReport instance.
messageHandler
Action<Message>Message handler.
message
ExecutionMessageThe message contains information about the execution.
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.
ProcessParties(ExecutionReport)
Process Parties.
protected override void ProcessParties(ExecutionReport report)
Parameters
report
ExecutionReportExecution report.
ProcessSequenceResetExtraTag(FixTags, IFixReader, FixSeqResetMessage)
Process extra tags for FixSeqResetMessage.
protected override bool ProcessSequenceResetExtraTag(FixTags tag, IFixReader reader, FixSeqResetMessage message)
Parameters
tag
FixTagsTag.
reader
IFixReaderThe reader of data recorded in the FIX protocol format.
message
FixSeqResetMessageSequence reset message.
Returns
- bool
Result.