Class Extensions
- Namespace
- StockSharp.Fix.Native
- Assembly
- StockSharp.Fix.Core.dll
FIX/FAST extension methods.
public static class Extensions
- Inheritance
-
Extensions
- Inherited Members
Fields
AccruedCouponIncome
public const char AccruedCouponIncome = 's'
Field Value
AfterSplit
public const char AfterSplit = '\u009c'
Field Value
AsksCount
public const char AsksCount = 'r'
Field Value
AsksVolume
public const char AsksVolume = 'e'
Field Value
AveragePrice
public const char AveragePrice = 'G'
Field Value
AverageTrueRange
public const char AverageTrueRange = 'F'
Field Value
BeforeSplit
public const char BeforeSplit = '\u009d'
Field Value
BestAskPrice
public const char BestAskPrice = 'c'
Field Value
BestAskTime
public const char BestAskTime = 'K'
Field Value
BestAskVolume
public const char BestAskVolume = 'm'
Field Value
BestBidPrice
public const char BestBidPrice = 'b'
Field Value
BestBidTime
public const char BestBidTime = 'h'
Field Value
BestBidVolume
public const char BestBidVolume = 'j'
Field Value
Beta
Beta.
public const char Beta = '\u0097'
Field Value
BidsCount
public const char BidsCount = 'q'
Field Value
BidsVolume
public const char BidsVolume = 'w'
Field Value
BuyBackDate
public const char BuyBackDate = 'Q'
Field Value
BuyBackPrice
public const char BuyBackPrice = 'g'
Field Value
CandleHeikin
public const char CandleHeikin = '%'
Field Value
CandlePnF
public const char CandlePnF = 'x'
Field Value
CandleRange
public const char CandleRange = 'z'
Field Value
CandleRenko
public const char CandleRenko = 'R'
Field Value
CandleTick
public const char CandleTick = 'i'
Field Value
CandleTimeFrame
public const char CandleTimeFrame = 'W'
Field Value
CandleVolume
public const char CandleVolume = 'V'
Field Value
Change
public const char Change = 't'
Field Value
Commission
public const string Commission = "COMM"
Field Value
CommissionMaker
public const char CommissionMaker = '\u009f'
Field Value
CommissionTaker
public const char CommissionTaker = '\u009e'
Field Value
CouponDate
public const char CouponDate = 'l'
Field Value
CouponPeriod
public const char CouponPeriod = '?'
Field Value
CouponValue
public const char CouponValue = ')'
Field Value
CurrentRatio
public const char CurrentRatio = '~'
Field Value
DateFormat
Default UTCDateOnly format.
public const string DateFormat = "yyyyMMdd"
Field Value
Decimals
public const char Decimals = '\u009b'
Field Value
Delta
public const char Delta = '\u0081'
Field Value
Dividend
public const char Dividend = '('
Field Value
Duration
public const char Duration = 'A'
Field Value
EmptyTag
Empty tag.
public const FixTags EmptyTag = (FixTags)-1
Field Value
FloatShort
public const char FloatShort = '\u008f'
Field Value
ForwardPriceEarnings
public const char ForwardPriceEarnings = '\u0087'
Field Value
Gamma
public const char Gamma = '\u0082'
Field Value
GrossMargin
public const char GrossMargin = 'L'
Field Value
HighAskPrice
public const char HighAskPrice = '§'
Field Value
HighAskVolume
public const char HighAskVolume = '«'
Field Value
HighPrice52Week
public const char HighPrice52Week = '¯'
Field Value
HistoricalVolatility
public const char HistoricalVolatility = '\u0080'
Field Value
HistoricalVolatilityMonth
public const char HistoricalVolatilityMonth = '\u0099'
Field Value
HistoricalVolatilityWeek
public const char HistoricalVolatilityWeek = '\u0098'
Field Value
Imbalance
public const char Imbalance = '£'
Field Value
ImpliedVolatility
public const char ImpliedVolatility = '/'
Field Value
Index
public const char Index = '¢'
Field Value
IsSystem
public const char IsSystem = '\u009a'
Field Value
IssueSize
public const char IssueSize = 'k'
Field Value
LastTradeId
public const char LastTradeId = 'U'
Field Value
LastTradeOrigin
public const char LastTradeOrigin = 'T'
Field Value
LastTradePrice
public const char LastTradePrice = 'p'
Field Value
LastTradeStringId
public const char LastTradeStringId = '±'
Field Value
LastTradeTime
public const char LastTradeTime = 'P'
Field Value
LastTradeUpDown
public const char LastTradeUpDown = 'D'
Field Value
LastTradeVolume
public const char LastTradeVolume = 'v'
Field Value
LastTradeVolumeHigh
public const char LastTradeVolumeHigh = '©'
Field Value
LastTradeVolumeLow
public const char LastTradeVolumeLow = '¨'
Field Value
Level1
public const char Level1 = '*'
Field Value
Leverage
public const string Leverage = "LVRG"
Field Value
LiquidationPrice
public const string LiquidationPrice = "LP"
Field Value
LongTermDebtEquity
public const char LongTermDebtEquity = '\u0094'
Field Value
LowBidPrice
public const char LowBidPrice = '¦'
Field Value
LowBidVolume
public const char LowBidVolume = 'ª'
Field Value
LowPrice52Week
public const char LowPrice52Week = '°'
Field Value
MarginBuy
public const char MarginBuy = '<'
Field Value
MarginSell
public const char MarginSell = '>'
Field Value
MarketPriceToday
public const char MarketPriceToday = '+'
Field Value
MarketPriceYesterday
public const char MarketPriceYesterday = 'Y'
Field Value
MaxPrice
public const char MaxPrice = 'y'
Field Value
MaxVolume
public const char MaxVolume = '¥'
Field Value
MedianPrice
public const char MedianPrice = '®'
Field Value
MinPrice
public const char MinPrice = 'u'
Field Value
MinVolume
public const char MinVolume = ' '
Field Value
Multiplier
public const char Multiplier = '@'
Field Value
News
public const char News = 'n'
Field Value
OperatingMargin
public const char OperatingMargin = 'M'
Field Value
OrderLog
public const char OrderLog = 'I'
Field Value
Payout
public const char Payout = '\u008d'
Field Value
PriceBook
public const char PriceBook = '\u008a'
Field Value
PriceCash
public const char PriceCash = '\u008b'
Field Value
PriceEarnings
public const char PriceEarnings = '\u0086'
Field Value
PriceEarningsGrowth
public const char PriceEarningsGrowth = '\u0088'
Field Value
PriceFreeCash
public const char PriceFreeCash = '\u008c'
Field Value
PriceSales
public const char PriceSales = '\u0089'
Field Value
PriceStep
public const char PriceStep = '#'
Field Value
ProfitMargin
public const char ProfitMargin = '\u0096'
Field Value
QuickRatio
public const char QuickRatio = '\u0093'
Field Value
RealizedPnL
public const string RealizedPnL = "RPNL"
Field Value
ReturnOnAssets
public const char ReturnOnAssets = '\u0090'
Field Value
ReturnOnEquity
public const char ReturnOnEquity = '\u0091'
Field Value
ReturnOnInvestment
public const char ReturnOnInvestment = '\u0092'
Field Value
Rho
Rho.
public const char Rho = '\u0085'
Field Value
SharesFloat
public const char SharesFloat = 'Z'
Field Value
SharesOutstanding
public const char SharesOutstanding = '\u008e'
Field Value
ShortRatio
public const char ShortRatio = 'E'
Field Value
State
public const char State = 'f'
Field Value
StepPrice
public const char StepPrice = '$'
Field Value
StopTrailing
public const char StopTrailing = 'Z'
Field Value
TakeProfit
public const char TakeProfit = 'T'
Field Value
TakeProfitTrailing
public const char TakeProfitTrailing = 'W'
Field Value
TheorPrice
public const char TheorPrice = '\\'
Field Value
Theta
public const char Theta = '\u0084'
Field Value
TimeFormat
Default UTCTimeOnly format.
public const string TimeFormat = "hh\\:mm\\:ss\\.fff"
Field Value
TimeStampFormat
Default UTCTimestamp format.
public const string TimeStampFormat = "yyyyMMdd-HH:mm:ss.fff"
Field Value
TotalDebtEquity
public const char TotalDebtEquity = '\u0095'
Field Value
TradesCount
public const char TradesCount = 'd'
Field Value
Transactions
public const char Transactions = 'Q'
Field Value
Turnover
public const char Turnover = 'a'
Field Value
UnderlyingBestAskPrice
public const char UnderlyingBestAskPrice = ''
Field Value
UnderlyingBestBidPrice
public const char UnderlyingBestBidPrice = '¬'
Field Value
UnderlyingMinVolume
public const char UnderlyingMinVolume = '¡'
Field Value
UnderlyingPrice
public const char UnderlyingPrice = '¤'
Field Value
UnrealizedPnL
public const string UnrealizedPnL = "UPNL"
Field Value
VWAPPrev
public const char VWAPPrev = 'S'
Field Value
Vega
Vega.
public const char Vega = '\u0083'
Field Value
VolumeStep
public const char VolumeStep = '&'
Field Value
YearMonthFormat
Default MonthYear format.
public const string YearMonthFormat = "yyyyMM"
Field Value
Yield
public const char Yield = 'o'
Field Value
YieldVWAP
public const char YieldVWAP = '-'
Field Value
YieldVWAPPrev
public const char YieldVWAPPrev = 'X'
Field Value
Methods
FillLevel1(Level1ChangeMessage, char, decimal?, decimal?, string, FastDateTimeParser)
public static void FillLevel1(this Level1ChangeMessage message, char entryType, decimal? price, decimal? size, string otherValue, FastDateTimeParser dateTimeParser)
Parameters
message
Level1ChangeMessageentryType
charprice
decimal?size
decimal?otherValue
stringdateTimeParser
FastDateTimeParser
FromDialect(Type)
Convert dialect type to string.
public static string FromDialect(this Type type)
Parameters
type
TypeDialect type.
Returns
- string
String value.
FromFixOptionStyle(int)
Convert int to OptionStyles value.
public static OptionStyles FromFixOptionStyle(this int style)
Parameters
Returns
- OptionStyles
OptionStyles value.
FromFixOptionType(PutOrCall)
Convert PutOrCall to OptionTypes value.
public static OptionTypes FromFixOptionType(this PutOrCall type)
Parameters
Returns
- OptionTypes
OptionTypes value.
FromFixSettlType(int)
Convert int to SettlementTypes value.
public static SettlementTypes FromFixSettlType(this int style)
Parameters
Returns
- SettlementTypes
SettlementTypes value.
FromFixSide(char, bool)
public static Sides FromFixSide(this char side, bool required = false)
Parameters
Returns
FromFixStatus(TradSesStatus)
Convert TradSesStatus to SessionStates value.
public static SessionStates FromFixStatus(this TradSesStatus status)
Parameters
status
TradSesStatusTradSesStatus value.
Returns
- SessionStates
SessionStates value.
FromFixStatus(char)
Convert OrdStatus to OrderStates value.
public static OrderStates FromFixStatus(this char status)
Parameters
Returns
- OrderStates
OrderStates value.
FromFixStatus2(char)
Convert OrdStatus to OrderStates value.
public static OrderStates? FromFixStatus2(this char status)
Parameters
Returns
- OrderStates?
OrderStates value or null.
FromFixType(string)
Convert SecurityType to SecurityTypes value.
public static SecurityTypes? FromFixType(this string type)
Parameters
type
stringSecurityType value.
Returns
- SecurityTypes?
SecurityTypes value.
FromQuoteType(int?)
Convert QuoteType to SecurityStates value.
public static SecurityStates? FromQuoteType(this int? type)
Parameters
Returns
- SecurityStates?
SecurityStates value.
FromTickDir(char)
Convert TickDirection to bool value.
public static bool FromTickDir(this char dir)
Parameters
dir
charTickDirection value.
Returns
GetFixTimeInForce(OrderRegisterMessage)
public static char GetFixTimeInForce(this OrderRegisterMessage message)
Parameters
message
OrderRegisterMessageThe message containing the information for the order registration.
Returns
- char
FixTimeInForce value.
GetFixType(OrderMessage)
Get OrdType value.
public static char GetFixType(this OrderMessage message)
Parameters
message
OrderMessageA message containing info about the order.
Returns
GetRequestId(ISubscriptionMessage)
Get request id.
public static long GetRequestId(this ISubscriptionMessage msg)
Parameters
msg
ISubscriptionMessageSubscription.
Returns
GetSubscriptionType(ISubscriptionMessage)
public static char GetSubscriptionType(this ISubscriptionMessage msg)
Parameters
msg
ISubscriptionMessageSubscription.
Returns
- char
SubscriptionRequestType value.
InitSecId(SecurityMessage, string, string, string, string)
public static void InitSecId(this SecurityMessage message, string symbol, string board, string idSource, string idValue)
Parameters
message
SecurityMessagesymbol
stringboard
stringidSource
stringidValue
string
IsCandleEntry(char)
Check the specified type is candle.
public static bool IsCandleEntry(this char mdEntryType)
Parameters
Returns
- bool
Check result.
IsDump(ILogSource)
public static bool IsDump(this ILogSource source)
Parameters
source
ILogSource
Returns
IsMarketMaker(char?, string)
Is the order of market-maker.
public static bool IsMarketMaker(char? orderCapacity, string orderRestrictions)
Parameters
orderCapacity
char?OrderCapacity value.
orderRestrictions
stringOrderRestrictions value.
Returns
- bool
Check result.
IsSubscribe(char)
Convert SubscriptionRequestType to bool value.
public static bool IsSubscribe(this char type)
Parameters
type
charSubscriptionRequestType value.
Returns
IsSubscribe(char?)
Convert SubscriptionRequestType to bool value.
public static bool IsSubscribe(this char? type)
Parameters
type
char?SubscriptionRequestType value.
Returns
ReadFileInfo<TMessage>(IFixReader, Action<TMessage>, Func<FixTags, IFixReader, bool>)
Read RemoteFileMessage.
public static bool? ReadFileInfo<TMessage>(this IFixReader reader, Action<TMessage> messageHandler, Func<FixTags, IFixReader, bool> readTag = null) where TMessage : IFileMessage, new()
Parameters
reader
IFixReaderReader.
messageHandler
Action<TMessage>Message handler.
readTag
Func<FixTags, IFixReader, bool>Extra tag reader.
Returns
Type Parameters
TMessage
ReadHeader(IFixReader, bool, string)
Read FIX header.
public static string ReadHeader(this IFixReader reader, bool skipBeginString, string expectedVersion)
Parameters
reader
IFixReaderReader.
skipBeginString
boolSkip read BeginString.
expectedVersion
stringExpected FixVersions value.
Returns
- string
FixMessages value.
ReadMarketDataMessages(IFixReader, FastDateTimeParser, Action<MarketDataMessage>, out string, out string)
Read MarketDataMessage.
public static bool? ReadMarketDataMessages(this IFixReader reader, FastDateTimeParser dataBoundDateParser, Action<MarketDataMessage> handler, out string mdReqId, out string mdResponseId)
Parameters
reader
IFixReaderReader.
dataBoundDateParser
FastDateTimeParserTime parser.
handler
Action<MarketDataMessage>Message handler.
mdReqId
stringMDReqID value.
mdResponseId
stringMDResponseID value.
Returns
ReadMessage(IFixReader, Func<FixTags, bool>)
Read message.
public static bool ReadMessage(this IFixReader reader, Func<FixTags, bool> handler)
Parameters
reader
IFixReaderReader.
handler
Func<FixTags, bool>Tag handler.
Returns
ReadNews(IFixReader, Action<Message>, FastDateTimeParser)
Read NewsMessage.
public static bool? ReadNews(this IFixReader reader, Action<Message> messageHandler, FastDateTimeParser parser)
Parameters
reader
IFixReaderReader.
messageHandler
Action<Message>Message handler.
parser
FastDateTimeParserTime parser.
Returns
ReadOrderCondition(IFixReader, FixTags, Func<OrderCondition>)
Read OrderCondition.
public static bool ReadOrderCondition(this IFixReader reader, FixTags tag, Func<OrderCondition> getCondition)
Parameters
reader
IFixReaderReader.
tag
FixTagsTag.
getCondition
Func<OrderCondition>Handler.
Returns
ReadSecurityMessage(IFixReader, FastDateTimeParser, FastDateTimeParser, IDictionary<long, RefPair<int, int>>, Action<SecurityMessage, string, string, string, string>, Action<Exception>, Func<FixTags, IFixReader, SecurityMessage, bool>, Action<Message>, Func<string, SecurityTypes?>, out bool?, out long?, out string, out string)
Read SecurityMessage.
public static bool? ReadSecurityMessage(this IFixReader reader, FastDateTimeParser dateParser, FastDateTimeParser yearMonthParser, IDictionary<long, RefPair<int, int>> totalSecCountByRequestId, Action<SecurityMessage, string, string, string, string> initSecId, Action<Exception> errorHandler, Func<FixTags, IFixReader, SecurityMessage, bool> customTagHandler, Action<Message> messageHandler, Func<string, SecurityTypes?> getSecurityType, out bool? lastFragment2, out long? securityReqId2, out string reason, out string text2)
Parameters
reader
IFixReaderReader.
dateParser
FastDateTimeParserTime parser.
yearMonthParser
FastDateTimeParserYear month parser.
totalSecCountByRequestId
IDictionary<long, RefPair<int, int>>Total count.
initSecId
Action<SecurityMessage, string, string, string, string>Init security id.
errorHandler
Action<Exception>Error handler.
customTagHandler
Func<FixTags, IFixReader, SecurityMessage, bool>Extra tags handler.
messageHandler
Action<Message>Message handler.
getSecurityType
Func<string, SecurityTypes?>Get security type.
lastFragment2
bool?Last message.
securityReqId2
long?reason
stringtext2
string
Returns
ReadTrailer(IFixReader, out bool)
Read FIX trailer.
public static void ReadTrailer(this IFixReader reader, out bool fullRead)
Parameters
reader
IFixReaderReader.
fullRead
booltrue if the message was successfully read, othewise, returns false.
ReadUserInfoMessage(IFixReader, FastDateTimeParser, Func<FixTags, bool>, Action<Message>)
Read UserInfoMessage.
public static bool? ReadUserInfoMessage(this IFixReader reader, FastDateTimeParser dateParser, Func<FixTags, bool> handler, Action<Message> messageHandler)
Parameters
reader
IFixReaderReader.
dateParser
FastDateTimeParserTime parser.
handler
Func<FixTags, bool>Extra tags handler.
messageHandler
Action<Message>Message handler.
Returns
ReadUtc(IFixReader, FastDateTimeParser)
Read time.
public static DateTimeOffset ReadUtc(this IFixReader reader, FastDateTimeParser parser)
Parameters
reader
IFixReaderReader.
parser
FastDateTimeParserTime parser.
Returns
- DateTimeOffset
Time.
RegisterCandleType(char, Type)
Register new candle type.
public static void RegisterCandleType(char code, Type messageType)
Parameters
SetOrderType(OrderMessage, char)
Set OrdType value.
public static void SetOrderType(this OrderMessage message, char ordType)
Parameters
message
OrderMessageA message containing info about the order.
ordType
charOrdType value.
SkipMessage(IFixReader)
Skip reading message.
public static Exception SkipMessage(this IFixReader reader)
Parameters
reader
IFixReaderReader.
Returns
- Exception
Possible error.
ToCandleMessage(char)
Convert MDEntryType to CandleMessage value.
public static CandleMessage ToCandleMessage(this char entryType)
Parameters
entryType
charMDEntryType value.
Returns
- CandleMessage
CandleMessage value.
ToDataType(char, string)
Convert MDEntryType to DataType value.
public static DataType ToDataType(this char mdEntryType, string arg)
Parameters
mdEntryType
charMDEntryType value.
arg
stringMDEntryArg value.
Returns
ToDialect(string, ILogReceiver)
Convert string to dialect type.
public static Type ToDialect(this string dialect, ILogReceiver logs)
Parameters
dialect
stringString value.
logs
ILogReceiverLogs.
Returns
- Type
Dialect type.
ToFix(CurrencyTypes)
Convert Ecng.Common.CurrencyTypes to string value.
public static string ToFix(this CurrencyTypes type)
Parameters
type
CurrencyTypesEcng.Common.CurrencyTypes value.
Returns
ToFix(Level1Fields)
Convert Level1Fields to MDEntryType value.
public static char ToFix(this Level1Fields field)
Parameters
field
Level1FieldsLevel1Fields value.
Returns
- char
MDEntryType value.
ToFix(OptionStyles)
Convert OptionStyles to int value.
public static int ToFix(this OptionStyles style)
Parameters
style
OptionStylesOptionStyles value.
Returns
ToFix(OptionTypes)
Convert OptionTypes to int value.
public static int ToFix(this OptionTypes type)
Parameters
type
OptionTypesOptionTypes value.
Returns
ToFix(SecurityTypes)
Convert SecurityTypes to SecurityType value.
public static string ToFix(this SecurityTypes type)
Parameters
type
SecurityTypesSecurityTypes value.
Returns
- string
SecurityType value.
ToFix(SessionStates)
Convert SessionStates to TradSesStatus value.
public static TradSesStatus ToFix(this SessionStates state)
Parameters
state
SessionStatesSessionStates value.
Returns
- TradSesStatus
TradSesStatus value.
ToFix(SettlementTypes)
Convert SettlementTypes to int value.
public static int ToFix(this SettlementTypes type)
Parameters
type
SettlementTypesSettlementTypes value.
Returns
ToFix(Sides)
public static char ToFix(this Sides side)
Parameters
Returns
ToFix(TimeInForce)
Convert TimeInForce to FixTimeInForce value.
public static char ToFix(this TimeInForce tif)
Parameters
tif
TimeInForceTimeInForce value.
Returns
- char
FixTimeInForce value.
ToFix(KeyValuePair<Level1Fields, object>, DateTimeOffset, FastDateTimeParser)
Convert KeyValuePair<TKey, TValue> to MDEntry.
public static MDEntry ToFix(this KeyValuePair<Level1Fields, object> change, DateTimeOffset time, FastDateTimeParser dateTimeParser)
Parameters
change
KeyValuePair<Level1Fields, object>Change.
time
DateTimeOffsetTime.
dateTimeParser
FastDateTimeParserTime parser.
Returns
ToFixMDType(DataType, out string)
Convert DataType to MDEntryType value.
public static char ToFixMDType(this DataType type, out string mdEntryArg)
Parameters
type
DataTypeDataType value.
mdEntryArg
stringMDEntryArg value.
Returns
- char
MDEntryType value.
ToFixOrdStatus(ExecutionMessage)
Convert ExecutionMessage to OrdStatus value.
public static char? ToFixOrdStatus(this ExecutionMessage message)
Parameters
message
ExecutionMessageExecutionMessage value.
Returns
ToLevel1(char)
Convert MDEntryType to Level1Fields value.
public static Level1Fields ToLevel1(this char entryType)
Parameters
entryType
charMDEntryType value.
Returns
- Level1Fields
Level1Fields value.
ToMarginMode(char)
public static MarginModes ToMarginMode(this char cashMargin)
Parameters
cashMargin
char
Returns
ToNative(QuoteChangeActions)
Convert QuoteChangeActions to MDUpdateAction value.
public static char ToNative(this QuoteChangeActions action)
Parameters
action
QuoteChangeActionsQuoteChangeActions value.
Returns
- char
MDUpdateAction value.
ToNative(QuoteConditions, bool)
Convert QuoteConditions to QuoteCondition value.
public static char? ToNative(this QuoteConditions condition, bool force = false)
Parameters
condition
QuoteConditionsQuoteConditions value.
force
bool
Returns
- char?
QuoteCondition value.
ToNewsPriority(char?)
Convert Urgency to NewsPriorities value.
public static NewsPriorities? ToNewsPriority(this char? urgency)
Parameters
Returns
- NewsPriorities?
NewsPriorities value.
ToPositionEffect(char?)
Convert PositionEffect to OrderPositionEffects value.
public static OrderPositionEffects? ToPositionEffect(this char? effect)
Parameters
effect
char?PositionEffect value.
Returns
ToQuoteAction(char)
Convert MDUpdateAction to QuoteChangeActions value.
public static QuoteChangeActions ToQuoteAction(this char action)
Parameters
action
charMDUpdateAction value.
Returns
ToQuoteCondition(string)
Convert QuoteCondition to QuoteConditions value.
public static QuoteConditions ToQuoteCondition(this string condition)
Parameters
condition
stringQuoteCondition value.
Returns
- QuoteConditions
QuoteConditions value.
ToSecurityType(OrderMessage)
public static string ToSecurityType(this OrderMessage message)
Parameters
message
OrderMessageA message containing info about the order.
Returns
- string
SecurityType value.
ToTickDir(bool)
Convert bool to TickDirection value.
public static char ToTickDir(this bool dir)
Parameters
Returns
- char
TickDirection value.
ToUserRequestType(UserRequestType)
Convert UserRequestType to FixUserRequestTypes value.
public static FixUserRequestTypes ToUserRequestType(this UserRequestType type)
Parameters
type
UserRequestTypeUserRequestType value.
Returns
ToUserStatus(FixUserResponseTypes, Exception, string, UserRequestType, out string)
Convert FixUserResponseTypes to UserStatus value.
public static UserStatus ToUserStatus(this FixUserResponseTypes type, Exception error, string userName, UserRequestType requestType, out string text)
Parameters
type
FixUserResponseTypesFixUserResponseTypes value.
error
ExceptionuserName
stringrequestType
UserRequestTypetext
string
Returns
- UserStatus
UserStatus value.
TryReplaceSoh(byte)
public static byte TryReplaceSoh(this byte value)
Parameters
value
byte
Returns
WriteBuildFrom(IFixWriter, DataType)
Write BuildFrom.
public static void WriteBuildFrom(this IFixWriter writer, DataType buildFrom)
Parameters
writer
IFixWriterWriter.
buildFrom
DataType
WriteCommand<TCommandMessage>(IFixWriter, TCommandMessage, FastDateTimeParser, Action<IFixWriter, TCommandMessage>)
Write CommandMessage.
public static void WriteCommand<TCommandMessage>(this IFixWriter writer, TCommandMessage message, FastDateTimeParser parser, Action<IFixWriter, TCommandMessage> writeTags = null) where TCommandMessage : CommandMessage
Parameters
writer
IFixWriterWriter.
message
TCommandMessageMessage.
parser
FastDateTimeParserTime parser.
writeTags
Action<IFixWriter, TCommandMessage>Handler.
Type Parameters
TCommandMessage
Message type.
WriteDataType(IFixWriter, DataType)
Write DataType.
public static void WriteDataType(this IFixWriter writer, DataType dataType)
Parameters
writer
IFixWriterWriter.
dataType
DataTypeData type info.
WriteExpiryDate(IFixWriter, OrderRegisterMessage, FastDateTimeParser, TimeZoneInfo)
Write ExpireDate.
public static void WriteExpiryDate(this IFixWriter writer, OrderRegisterMessage regMsg, FastDateTimeParser parser, TimeZoneInfo timeZone)
Parameters
writer
IFixWriterWriter.
regMsg
OrderRegisterMessageThe message containing the information for the order registration.
parser
FastDateTimeParserTime parser.
timeZone
TimeZoneInfoTime zone.
WriteFile<TMessage>(IFixWriter, TMessage)
Write RemoteFileMessage.
public static void WriteFile<TMessage>(this IFixWriter writer, TMessage message) where TMessage : IFileMessage
Parameters
writer
IFixWriterWriter.
message
TMessageMessage.
Type Parameters
TMessage
WriteFixMessage(IFixWriter, IFixWriter, string, string, string, string, FastDateTimeParser, long, Action<IFixWriter>)
Write FIX message.
public static void WriteFixMessage(this IFixWriter writer, IFixWriter bodyWriter, string version, string msgType, string senderCompId, string targetCompId, FastDateTimeParser sendingTimeParser, long seqNum, Action<IFixWriter> handler)
Parameters
writer
IFixWriterWhole message writer.
bodyWriter
IFixWriterBody only writer.
version
stringVersion.
msgType
stringFixMessages value.
senderCompId
stringSender ID.
targetCompId
stringTarget ID.
sendingTimeParser
FastDateTimeParserTime parser.
seqNum
longSequence number.
handler
Action<IFixWriter>Handler.
WriteHandlInst(IFixWriter, OrderRegisterMessage, char)
Write HandlInst.
public static void WriteHandlInst(this IFixWriter writer, OrderRegisterMessage message, char defaultValue = '1')
Parameters
writer
IFixWriterWriter.
message
OrderRegisterMessageMessage.
defaultValue
charDefault value.
WriteMarketDataMessage(IFixWriter, MarketDataMessage, string, string, FastDateTimeParser, Action<IFixWriter, MarketDataMessage>)
Write MarketDataMessage.
public static void WriteMarketDataMessage(this IFixWriter writer, MarketDataMessage mdMsg, string requestId, string responseId, FastDateTimeParser dataBoundDateParser, Action<IFixWriter, MarketDataMessage> writeSecurityId)
Parameters
writer
IFixWriterWriter.
mdMsg
MarketDataMessageMessage.
requestId
stringMDReqID value.
responseId
stringMDResponseID value.
dataBoundDateParser
FastDateTimeParserTime parser.
writeSecurityId
Action<IFixWriter, MarketDataMessage>Write security id.
WriteMarketMaker(IFixWriter)
Write OrderCapacity and OrderRestrictions.
public static void WriteMarketMaker(this IFixWriter writer)
Parameters
writer
IFixWriterWriter.
WriteNews(IFixWriter, NewsMessage, FastDateTimeParser)
Write NewsMessage.
public static void WriteNews(this IFixWriter writer, NewsMessage newsMsg, FastDateTimeParser parser)
Parameters
writer
IFixWriterWriter.
newsMsg
NewsMessageMessage.
parser
FastDateTimeParserTime parser.
WriteParameters(IFixWriter, IDictionary<string, string>)
Write parameters.
public static void WriteParameters(this IFixWriter writer, IDictionary<string, string> parameters)
Parameters
writer
IFixWriterWriter.
parameters
IDictionary<string, string>Parameters.
WritePositionEffect(IFixWriter, OrderPositionEffects?)
Write PositionEffect.
public static void WritePositionEffect(this IFixWriter writer, OrderPositionEffects? effect)
Parameters
writer
IFixWriterWriter.
effect
OrderPositionEffects?OrderPositionEffects value.
WriteSecurityList(IFixWriter, FastDateTimeParser, bool, string, string, ICollection<SecurityMessage>, bool)
Write SecurityMessage list.
public static void WriteSecurityList(this IFixWriter writer, FastDateTimeParser dateParser, bool convertToLatin, string requestId, string responseId, ICollection<SecurityMessage> securityMessages, bool lastFragment)
Parameters
writer
IFixWriterWriter.
dateParser
FastDateTimeParserTime parser.
convertToLatin
boolConvert texts to latin.
requestId
stringMDReqID value.
responseId
stringMDResponseID value.
securityMessages
ICollection<SecurityMessage>Securities.
lastFragment
boolLast message.
WriteSide(IFixWriter, Sides)
Write Side.
public static void WriteSide(this IFixWriter writer, Sides side)
Parameters
writer
IFixWriterWriter.
side
SidesSide.
WriteStream(IFixWriter, IFixWriter)
Copy content.
public static void WriteStream(this IFixWriter dest, IFixWriter source)
Parameters
dest
IFixWriterDestination.
source
IFixWriterSource.
WriteSubscription(IFixWriter, ISubscriptionMessage)
Write ISubscriptionMessage.
public static void WriteSubscription(this IFixWriter writer, ISubscriptionMessage msg)
Parameters
writer
IFixWriterWriter.
msg
ISubscriptionMessageMessage.
WriteSubscriptionRequest(IFixWriter, ISubscriptionMessage, FastDateTimeParser, FixTags)
Write ISubscriptionMessage.
public static void WriteSubscriptionRequest(this IFixWriter writer, ISubscriptionMessage subscription, FastDateTimeParser parser, FixTags requestIdTag = FixTags.MDReqID)
Parameters
writer
IFixWriterWriter.
subscription
ISubscriptionMessageMessage.
parser
FastDateTimeParserTime parser.
requestIdTag
FixTagsRequest id tag.
WriteTransactTime(IFixWriter, FastDateTimeParser)
Write TransactTime.
public static void WriteTransactTime(this IFixWriter writer, FastDateTimeParser parser)
Parameters
writer
IFixWriterWriter.
parser
FastDateTimeParserTime parser.
WriteUserInfoMessage(IFixWriter, UserInfoMessage, FastDateTimeParser)
Write UserInfoMessage.
public static void WriteUserInfoMessage(this IFixWriter writer, UserInfoMessage message, FastDateTimeParser dateParser)
Parameters
writer
IFixWriterWriter.
message
UserInfoMessageMessage.
dateParser
FastDateTimeParserTime parser.
WriteUtc(IFixWriter, DateTimeOffset, FastDateTimeParser)
Write time.
public static void WriteUtc(this IFixWriter writer, DateTimeOffset dto, FastDateTimeParser parser)
Parameters
writer
IFixWriterWriter.
dto
DateTimeOffsetTime.
parser
FastDateTimeParserTime parser.