package message
- Alphabetic
- Public
- Protected
Type Members
- case class HopsGroup(hopCompIDField: Option[HopCompIDField] = None, hopSendingTimeField: Option[HopSendingTimeField] = None, hopRefIDField: Option[HopRefIDField] = None) extends SfFixGroup with SfFixRenderable with SfFixFieldsToAscii with Product with Serializable
Generated by SackFix code generator on 20160715 Source specification was read from: /quickfixj1.6.0/FIX50SP2.modified.xml
- case class SfDuplicateTagIdException(tagId: Int) extends Exception with Product with Serializable
- class SfMessage extends AnyRef
Created by Jonathan during 2016.
Created by Jonathan during 2016.
You create the header, and the body and pass both to me. When you render to a fix str I calculate the body length and the checksome. You do not worry about that. Given that the header and trailer are immutable then the checksome and body are only in the generated fix string. If you want to extract them yourselves see the helper functions in the header and trailer.
- case class SfMessageHeader(beginStringField: BeginStringField, bodyLengthField: Option[BodyLengthField] = None, msgTypeField: MsgTypeField, applVerIdField: Option[ApplVerIDField] = None, applExtIDField: Option[ApplExtIDField] = None, cstmApplVerIDField: Option[CstmApplVerIDField] = None, senderCompIDField: SenderCompIDField, targetCompIDField: TargetCompIDField, onBehalfOfCompIDField: Option[OnBehalfOfCompIDField] = None, deliverToCompIDField: Option[DeliverToCompIDField] = None, secureDataLenField: Option[SecureDataLenField] = None, secureDataField: Option[SecureDataField] = None, msgSeqNumField: MsgSeqNumField, senderSubIDField: Option[SenderSubIDField] = None, senderLocationIDField: Option[SenderLocationIDField] = None, targetSubIDField: Option[TargetSubIDField] = None, targetLocationIDField: Option[TargetLocationIDField] = None, onBehalfOfSubIDField: Option[OnBehalfOfSubIDField] = None, onBehalfOfLocationIDField: Option[OnBehalfOfLocationIDField] = None, deliverToSubIDField: Option[DeliverToSubIDField] = None, deliverToLocationIDField: Option[DeliverToLocationIDField] = None, possDupFlagField: Option[PossDupFlagField] = None, possResendField: Option[PossResendField] = None, sendingTimeField: SendingTimeField, origSendingTimeField: Option[OrigSendingTimeField] = None, xmlDataLenField: Option[XmlDataLenField] = None, xmlDataField: Option[XmlDataField] = None, messageEncodingField: Option[MessageEncodingField] = None, lastMsgSeqNumProcessedField: Option[LastMsgSeqNumProcessedField] = None, noHopsField: Option[NoHopsField] = None, sfMessageHeaderHopsGroup: Option[List[HopsGroup]] = None) extends SfFixFieldsToAscii with Product with Serializable
Created by Jonathan during 2016.
Created by Jonathan during 2016. The header is defined in places like this: http://www.fixtradingcommunity.org/FIXimate/FIXimate3.0/en/FIX.5.0SP2/body_49485052.html
Note that the body length has to be recalculated when you get the fixStr for outgoing messages which is why it is marked as an Optional member, even though it is required.
ie two use cases, for incoming messages it will be populated for outgoing messages you can leave it as a None as it will be recalculated when you call fixStr(Body)
For incoming messages you can access the original body length as msg.bodyLengthField and to determine that it is correct you can call msg.calcBodyLength(body : SfFixMessageBody)
Take a look at the test case to see it in action. Look at the sackfixsession project for how to create strongly typed full messages and read them.
- case class SfMessageTrailer(signatureLengthField: Option[SignatureLengthField] = None, signatureField: Option[SignatureField] = None, checkSumField: Option[CheckSumField] = None) extends Product with Serializable
Created by Jonathan during 2016.
Created by Jonathan during 2016.
The checksum field is NOT optional, but will be populated on incoming messages. You can leave it as None on outgoing, as when you call fixStr(headerAndBody) the checksum will be recalculated.
- class SfMissingFieldsException extends Exception
- case class SfRepeatingGroupCountException(tagId: Int, count: Int, actualCount: Int) extends Exception with Product with Serializable
Value Members
- object HopsGroup extends SfFixDecoder with Serializable
- object SfFixUtcTime
Helper function to always give the current UTC time stamp as required for FIX time fields (52: Sending time, 60: Transaction time etc.) in the LocalDateTime format already implemented.
- object SfMessageHeader extends SfFixDecoder with Serializable
- object SfMessageTrailer extends SfFixDecoder with Serializable
- object SfMissingFieldsException extends Serializable
Created by Jonathan during 2016.