GainFuturesFixDialect
StockSharp.Fix.Dialects.GainFutures
获得未来 FIX 协议方言.
继承自: BaseFixDialect
构造函数
GainFuturesFixDialect
public GainFuturesFixDialect(IdGenerator transactionIdGenerator)
gainFuturesFixDialect = GainFuturesFixDialect(transactionIdGenerator)
初始化了 & ##GainFuturesFixDialect+#的新实例.
- transactionIdGenerator
- 交易ID生成器。
属性
PossibleSupportedMessages
public override IEnumerable<MessageTypeInfo> PossibleSupportedMessages { get; }
value = gainFuturesFixDialect.PossibleSupportedMessages
可能支持的信息类型 。
方法
GetSupportedMarketDataTypesAsync
public override IAsyncEnumerable<DataType> GetSupportedMarketDataTypesAsync(SecurityId securityId, DateTime? from, DateTime? to)
result = gainFuturesFixDialect.GetSupportedMarketDataTypesAsync(securityId, from, to)
获得适配器消息类型支持 。
- securityId
- SecurityId
- from
- 请求的起始日期。 如果 , 那么所有可用的信件都会被返回 。
- to
- 请求结束日期。 如果 , 那么所有可用的信件都会被退回 。
返回值: 由适配器市场数据类型支持.
InitSecId
protected override void InitSecId(SecurityMessage message, string symbol, string securityExchange, string idSource, string idValue)
gainFuturesFixDialect.InitSecId(message, symbol, securityExchange, idSource, idValue)
输入金融工具id信息.
- message
- 包含金融工具信息的信息。
- symbol
- 符号。
- securityExchange
- 金融工具交换。
- idSource
- ID来源.
- idValue
- 值值( Id value).
IsAllDownloadingSupported
public override bool IsAllDownloadingSupported(DataType dataType)
result = gainFuturesFixDialect.IsAllDownloadingSupported(dataType)
用于指定的所有金融工具下载启用。
- dataType
- 数据类型信息.
返回值: 检查结果。
OnReadAsync
protected override IAsyncEnumerable<Message> OnReadAsync(IFixReader reader, string msgType, CancellationToken cancellationToken)
result = gainFuturesFixDialect.OnReadAsync(reader, msgType, cancellationToken)
读取 FIX 协议的下一封信件 。
- reader
- 以FIX协议格式记录的数据的读取器.
- msgType
- 消息类型 。
- cancellationToken
- CancellationToken
返回值: 消息的顺序.
OnWriteAsync
protected override ValueTask<string> OnWriteAsync(IFixWriter writer, Message message, CancellationToken cancellationToken)
result = gainFuturesFixDialect.OnWriteAsync(writer, message, cancellationToken)
将指定的消息写入 FIX 协议 。
- writer
- FIX协议格式的数据记录器.
- message
- 腾讯.
- cancellationToken
- 取消的代币。
返回值: FixMessages值 。
PortfolioLookupAsync
protected override ValueTask PortfolioLookupAsync(PortfolioLookupMessage lookupMsg, CancellationToken cancellationToken)
result = gainFuturesFixDialect.PortfolioLookupAsync(lookupMsg, cancellationToken)
ProcessExecutionReportAsync
protected override IAsyncEnumerable<ExecutionMessage> ProcessExecutionReportAsync(ExecutionReport report, ExecutionMessage message, CancellationToken cancellationToken)
result = gainFuturesFixDialect.ProcessExecutionReportAsync(report, message, cancellationToken)
Process ExecutionReport instance.
- report
- ExecutionReport例.
- message
- ExecutionMessage
- cancellationToken
- CancellationToken
ProcessExecutionReportExtraTagAsync
protected override ValueTask<bool> ProcessExecutionReportExtraTagAsync(FixTags tag, IFixReader reader, ExecutionReport report, CancellationToken cancellationToken)
result = gainFuturesFixDialect.ProcessExecutionReportExtraTagAsync(tag, reader, report, cancellationToken)
处理 & #% ExecutionReport > 的额外标记 。
- tag
- 标记。
- reader
- 以FIX协议格式记录的数据的读取器.
- report
- 执行报告.
- cancellationToken
- CancellationToken
返回值: 结果。
ProcessSecurityDefinitionAsync
protected override ValueTask<bool> ProcessSecurityDefinitionAsync(FixTags tag, IFixReader reader, SecurityMessage message, CancellationToken cancellationToken)
result = gainFuturesFixDialect.ProcessSecurityDefinitionAsync(tag, reader, message, cancellationToken)
Process SecurityDefinition message.
- tag
- 标记。
- reader
- 以FIX协议格式记录的数据的读取器.
- message
- 包含金融工具信息的信息。
- cancellationToken
- CancellationToken
返回值: 处理结果。