Skip to main content

FIX

DLTF operates FIX Trading Gateways which allow users to manage orders on their DLTF Account using FIX 4.4 messages.

Connection validation

In order to activate the fix protocol, you need to provide us with the public key of your certificate, which you will use every time you connect to the FIX server. Example of certificate generation:

$ openssl genrsa -out example.key 2048

$ openssl req -new -x509 -sha256 -key example.key -out example.crt -days 3650

In result you will have 2 files: example.key and example.crt. example.key must be used for encrypt TLS connection to FIX server. example.crt must be provided to DLTF for connection validation.

Environments

DLTF operates both Production and Test environments which can be connected to using FIX using the following connection parameters.

DLTF Digital ServiceIP/DNSPortDLTF CompIdClient CompIdClient SubId
Testfix.stage.dltm.quanttradingfactory.com5002STAGE_DLTF_MD<check details in client FIX settings><check details in client FIX settings>

Messages sizes

Inbound message size limit

The DLTF FIX Trading Gateways have a maximum inbound message limit of 8192 bytes. If a message is received which exceeds this size, the client will be logged off.

Outbound message size

The DLTF FIX Trading Gateway will never publish messages greater than 8192 bytes.

Recovery

The DLTF FIX Market Data Gateways do not support any FIX message recovery.

In the event of the DLTF FIX Market Data Gateway requesting a message re-send, the resent messages will be ignored.

Sequence number on logon

Client must login with the tag 141 (ResetSeqNumFlag) set to 'Y' always.

Compatibility

DLTF aims to maximise compatibility by using standard FIX messages, tags and usage conventions wherever possible.

Periodically, DLTF updates it's FIX specifications in response to changes to the core trading application. Usually these changes are to support additional features and wherever possible this will be achieved through the use of additional messages, tags in existing messages or tag values in existing tags. In order to minimise the impact of these sort of changes, DLTF recommends that the client application accepts messages with unrecognised tags and ignores those tags which it cannot interpret.

DLTF will all endeavor to contact clients prior to change to the FIX API, particularly in the case where a change is breaking (i.e. not additive in nature).

Messages Supported Messages

DLTF supports the following FIX message types.

TypeNameDescription
0HeartbeatMessage sent during quite intervals on the connection to ensure that connection is still alive.
1TestRequestMessage used to request a HeartBeat from the counterparty to allow round trip testing of the connection.
2ResendRequestMessage used to request a replay of messages from the counter party.
3RejectSent in response to a message which is structurally invalid (i.e. invalid or missing tag or ill-formed tag-value).
4SequenceResetSequenceReset.
5LogoutMessage used to terminate a FIX connection. Can be sent by the client or the DLTF FIX Gateway.
ALogonMessage used to establish a connection between a client and the DLTF FIX Gateway.
VMarketDataRequestMessage sent by the client to request market data.
WMarketDataSnapshotFullRefreshMessage sent by DLTF containing changes in market data
YMarketDataRequestRejectMessage sent in response to an invalid Market Data Request.
xtTraceSubscription

Standard Message Components

StandardHeader

TagTag NameDescriptionRequiredData Type
8BeginStringThe FIX version number identifier. Always 'FIX.4.4'YString
9BodyLengthLength of the FIX Message.YLength
35MsgTypeThe type of the message.YString
49SenderCompIDIdentifier for the sender of the message.YString
50SenderSubIDSub identifier for the sender of the message.YString
56TargetCompIDIdentifier for the receiver of the message.YString
34MsgSeqNumThe unique sequence number for the message within current FIX session.YSeqNum
43PossDupFlagAlways required for retransmitted messages, whether prompted by the sending system or as the result of a resend request. Set to 'Y' if this is a resent message.NBoolean
97PossResendNever used by DLTF.NBoolean
52SendingTimeTime message was sent.YUTCTimestamp
122OrigSendingTimeTimestamp when message was originally sent. Required for message resent as a result of a ResendRequest.NUTCTimestamp

StandardTrailer

TagTag NameDescriptionRequiredData Type
10CheckSumChecksum for message contents.YString

Instrument

TagTag NameDescriptionRequiredData Type
48SecurityIDMust contain the DLTF orderbook id.YString
22SecurityIDSourceMust contain the value '8' (Exchange Symbol)YString

InstrmtMDReqGrp

TagTag NameDescriptionRequiredData Type
146NoRelatedSymSpecifies the number of repeating symbols specified.YNumInGroup
InstrumentY

MDReqGrp

TagTag NameDescriptionRequiredData Type
267NoMDEntryTypesNumber of MDEntryType (269) fields requested.YNumInGroup
269MDEntryTypeType Market Data entry. DLTF supported values: 0 = Bid 1 = Offer DLTF only allows subscription to both bid and ask at the same time. If only 0 or 1 is specified individually for a Market Data Request, then the request will be rejected.Ychar

MDFullGrp

TagTag NameDescriptionRequiredData Type
268NoMDEntriesNumber of entries in Market Data message.YNumInGroup
269MDEntryTypeType Market Data entry.DLTF supported values: 0 = Bid 1 = OfferYchar
270MDEntryPxPrice of the Market Data Entry.NPrice
271MDEntrySizeQuantity or volume represented by the Market Data Entry.NQty
272MDEntryDateDate of Market Data Entry. This tag will only be present on the first entry in the repeating group.NUTCDateOnly
273MDEntryTimeTime of Market Data Entry. This tag will only be present on the first entry in the repeating group.NUTCTimeOnly

Message Descriptions

Heartbeat

Message sent during quite intervals on the connection to ensure that connection is still alive.

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= 0
112TestReqIDRequired when the heartbeat is the result of a Test Request message.NString
StandardTrailerY

TestRequest

Message used to request a HeartBeat from the counterparty to allow round testing trip of the connection.

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= 1
112TestReqIDIdentifier included in Test Request message to be returned in resulting HeartbeatYString
StandardTrailerY

ResendRequest

Message used to request a replay of messages from the counter party.

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= 2
7BeginSeqNoMessage sequence number of first message in range to be resentYSeqNum
16EndSeqNoMessage sequence number of last message in range to be resent. If request is for a single message BeginSeqNo (7) = EndSeqNo. If request is for all messages subsequent to a particular message, EndSeqNo = “0” (representing infinity).YSeqNum
StandardTrailerY

Reject

Sent in response to a message which is structurally invalid (i.e. invalid or missing tag or ill-formed tag-value).

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= 3
45RefSeqNumMsgSeqNum of rejected messageYSeqNum
371RefTagIDThe tag number of the FIX field being referenced.Nint
372RefMsgTypeThe MsgType of the FIX message being referenced.NString
373SessionRejectReasonCode to identify reason for a session-level Reject message.Nint
58TextWhere possible, message to explain reason for rejectionNString
StandardTrailerY

SequenceReset

SequenceReset

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= 4
123GapFillFlagIndicates that the Sequence Reset message is replacing administrative or application messages which will not be resent. Valid values: Y = Gap Fill message, MsgSeqNum field valid N = Sequence Reset, ignore MsgSeqNumNBoolean
36NewSeqNoNew sequence numberYSeqNum
StandardTrailerY

Logout

Message used to terminate a FIX connection. Can be sent by the client or the DLTF FIX Gateway.

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= 5
58TextIf DLTF logs out a client this may contain a text description for the reason for the logout.NString
StandardTrailerY

Logon

The Logon message must be the first message Client sends after establishing a TCP connection on the port agreed upon with DLTF. Client must wait for a Logon from DLTF before sending other messages and beginning gap fill operations.

Password is represented as ed25519 signature of [payload].

Payload is composed of the following fields:

MsgSeqNum SENDERCOMPID TARGETCOMPID API_KEY NONCE

The nonce is integer (recommend to use nanoseconds timestamp), always increasing value.

Example:

payload := fmt.Sprintf("%d%s%s%s%d", seqNum, sender, target, pubKeyHex, time.Now().UnixNano()) signatureRaw := ed25519.Sign(privateKey, []byte(payload)) signatureHex := hex.EncodeToString(signatureRaw)

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= A
98EncryptMethodAlways '0' - NoneYint
108HeartBtIntThe maximum time to wait before a Heartbeat message is sent in the absence of other activity on the connection. The same value is used by both parties.Yint
141ResetSeqNumFlagIndicates both sides of a FIX session should reset sequence numbersNBoolean
553UsernameAPI Token public key in HEX format. This is required on the login message sent by the clientYString
554PasswordSignature in HEX format. This is required on the login message sent by the clientYString
5025NonceTime in ms since epoch as string. (This will be used in password generation and check)YString
StandardTrailerY

MarketDataRequest

Message sent by the client to request market data. An individual request can be made for one or more instruments. Clients should rely on the SecurityID (tag 48) to identify the instrument each request is referencing.

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= V
262MDReqIDMust be unique, or the ID of previous Market Data Request to disable if SubscriptionRequestType = Disable previous Snapshot + Updates Request (2).YString
263SubscriptionRequestTypeSubcriptionRequestType indicates to the other party what type of response is expected. DLTF supported values: 1 - Snapshot + Updates (Subscribe) 2 - Disable previous Snapshot + Updates Request (Unsubscribe) DLTF does not support 0 - SnapshotYchar
264MarketDepthDepth of market for Book Snapshot DLTF supported values: 0 = Full Depth (DLTF supports a maximum of 20 levels of depth) 1 = Top of Book 2-20 = Report best N price tiers of data, up to 20 levels.Yint
265MDUpdateTypeRequired if SubscriptionRequestType = Snapshot + Updates (1).DLTF supported values 0 - Full Refresh.Nint
266AggregatedBookSpecifies whether or not book entries should be aggregated. Valid values: Y = one book entry per side per price N = Multiple entries per side per price allowed (Not specified) = broker optionNBoolean
MDReqGrpY
InstrmtMDReqGrpY
StandardTrailerY

MarketDataSnapshotFullRefresh

Message received by the client showing the current order book. Clients should rely on the SecurityID (tag 48) to identify the instrument each update is referencing.

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= W
262MDReqIDConditionally required if this message is in response to a Market Data Request.NString
InstrumentY
MDFullGrpY
StandardTrailerY

MarketDataRequestReject

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= Y
262MDReqIDMust refer to the MDReqID of the request.YString
281MDReqRejReasonReason for the rejection of a Market Data request.DLTF supported values: 0 = Unknown symbol 1 = Duplicate MDReqID 4 = Unsupported SubscriptionRequestType 5 = Unsupported MarketDepth 6 = Unsupported MDUpdateType 8 = Unsupported MDEntryTypeNchar
58TextFree format text string (Note: this field does not have a specified maximum length)NString
StandardTrailerY

TraceSubscription

TagTag NameDescriptionRequiredData Type
StandardHeaderYMsgType= xt
262MDReqIDUnique identifier for Market Data Request. MDReqId is restricted to a maximum of 16 lowercase hexadecimal characters [0123456789abcdef] with no leading 0 characters (this is a positive 64bit number represented in hexadecimal excluding 0). Must be unique for all current Market Data Requests. If a new Market Data Request (excluding unsubscribtion requests) is received with the same MDReqId as a current Market Data Request then the new request will be rejected as a duplicate.YString
263SubscriptionRequestTypeSubscription Request Type Valid values: 0 = Snapshot; 1 = Snapshot + Updates (Subscribe); 2 = Disable previous Snapshot + Update Request (Unsubscribe);Ychar
StandardTrailerY

Tags

TagTag NameTypeDescription
1AccountStringAccount mnemonic as agreed between buy and sell sides, e.g. broker and institution or investor/intermediary and fund manager.
6AvgPxPriceNot supported by DLTF - always 0
7BeginSeqNoSeqNumMessage sequence number of first message in range to be resent
8BeginStringStringIdentifies beginning of new message and protocol version. ALWAYS FIRST FIELD IN MESSAGE. (Always unencrypted). Valid values: * FIX.4.4
9BodyLengthLengthMessage length, in bytes, forward to the CheckSum field. ALWAYS SECOND FIELD IN MESSAGE. (Always unencrypted)
10CheckSumStringThree byte, simple checksum (see Volume 2: “Checksum Calculation” for description). ALWAYS LAST FIELD IN MESSAGE; i.e. serves, with the trailing <SOH>, as the end-of-message delimiter. Always defined as three characters. (Always unencrypted)
16EndSeqNoSeqNumMessage sequence number of last message in range to be resent. If request is for a single message BeginSeqNo (7) = EndSeqNo. If request is for all messages subsequent to a particular message, EndSeqNo = “0” (representing infinity).
22SecurityIDSourceStringIdentifies class or source of the SecurityID (48) value. Required if SecurityID is specified. DLTF Supported values are: 8 = Exchange Symbol
34MsgSeqNumSeqNumInteger message sequence number.
35MsgTypeStringDefines message type ALWAYS THIRD FIELD IN MESSAGE. (Always unencrypted) Valid values: *** Note the use of lower case letters *** 0 = Heartbeat 1 = Test Request 2 = Resend Request 3 = Reject 4 = Sequence Reset 5 = Logout A = Logon V = Market Data Request W = Market Data-Snapshot/Full Refresh Y = Market Data Request Reject
36NewSeqNoSeqNumNew sequence number
43PossDupFlagBooleanIndicates possible retransmission of message with this sequence number Valid values: Y = Possible duplicate N = Original transmission
45RefSeqNumSeqNumReference message sequence number
48SecurityIDStringDLTF Security identifier. Requires SecurityIDSource=8.
49SenderCompIDStringAssigned value used to identify firm sending message.
50SenderSubIDStringAssigned value used to sub identify firm sending message.
52SendingTimeUTCTimestampTime of message transmission (always expressed in UTC (Universal Time Coordinated, also known as “GMT”)
56TargetCompIDStringAssigned value used to identify receiving firm.
58TextStringFree format text string (Note: this field does not have a specified maximum length)
89SignaturedataElectronic signature
93SignatureLengthLengthNumber of bytes in signature field.
95RawDataLengthLengthNumber of bytes in raw data field.
96RawDatadataUnformatted raw data, can include bitmaps, word processor documents, etc.
97PossResendBooleanIndicates that message may contain information that has been sent under another sequence number.Valid Values: Y=Possible resend N=Original transmission DLTF will never populate this tag with any value other than 'N' on messages sent by DLTF. DLTF will ignore this tag on any messages received by DLTF and the treat the message as having been sent with PossResend='N'.
98EncryptMethodintMethod of encryption. Valid values: 0 = None / other DLTF does not support encryption at the FIX layer. All messages are sent over an SSL encrypted connection. Supported values:
108HeartBtIntintHeartbeat interval (seconds)
112TestReqIDStringIdentifier included in Test Request message to be returned in resulting Heartbeat
122OrigSendingTimeUTCTimestampOriginal time of message transmission (always expressed in UTC (Universal Time Coordinated, also known as “GMT”) when transmitting orders as the result of a resend request.
123GapFillFlagBooleanIndicates that the Sequence Reset message is replacing administrative or application messages which will not be resent. Valid values: Y = Gap Fill message, MsgSeqNum field valid N = Sequence Reset, ignore MsgSeqNum
141ResetSeqNumFlagBooleanIndicates that the both sides of the FIX session should reset sequence numbers. Valid values: Y = Yes, reset sequence numbers N = No
146NoRelatedSymNumInGroupSpecifies the number of repeating symbols specified.
262MDReqIDStringUnique identifier for Market Data Request. MDReqId is restricted to a maximum of 16 lowercase hexadecimal characters [0123456789abcdef] with no leading 0 characters (this is a positive 64bit number represented in hexadecimal excluding 0). Must be unique for all current Market Data Requests. If a new Market Data Request (excluding unsubscribtion requests) is received with the same MDReqId as a current Market Data Request then the new request will be rejected as a duplicate.
263SubscriptionRequestTypecharSubscription Request Type Valid values: 0 = Snapshot; 1 = Snapshot + Updates (Subscribe); 2 = Disable previous Snapshot + Update Request (Unsubscribe);
264MarketDepthintDepth of market for Book Snapshot. DLTF supported values: 0 = Full Depth (DLTF supports a maximum of 20 levels of depth) 1 = Top of Book 2-20 = Report best N price tiers of data, up to 20 levels.
265MDUpdateTypeintSpecifies the type of Market Data update. DLTF supported values: 0 = Full Refresh
266AggregatedBookBooleanSpecifies whether or not book entries should be aggregated. Valid values: Y = one book entry per side per price N = Multiple entries per side per price allowed (Not specified) = broker option
267NoMDEntryTypesNumInGroupNumber of MDEntryType (269) fields requested.
268NoMDEntriesNumInGroupNumber of entries in Market Data message.
269MDEntryTypecharType Market Data entry. DLTF supported values: 0 = Bid 1 = Offer
270MDEntryPxPricePrice of the Market Data Entry.
271MDEntrySizeQtyQuantity or volume represented by the Market Data Entry.
272MDEntryDateUTCDateOnlyDate of Market Data Entry.
273MDEntryTimeUTCTimeOnlyTime of Market Data Entry.
281MDReqRejReasoncharReason for the rejection of a Market Data request. Valid values: 0 = Unknown symbol 1 = Duplicate MDReqID 2 = Insufficient Bandwidth 3 = Insufficient Permissions 4 = Unsupported SubscriptionRequestType 5 = Unsupported MarketDepth 6 = Unsupported MDUpdateType 7 = Unsupported AggregatedBook 8 = Unsupported MDEntryType 9 = Unsupported TradingSessionID A = Unsupported Scope B = Unsupported OpenCloseSettleFlag C = Unsupported MDImplicitDelete
354EncodedTextLenLengthUnused by DLTF. Byte length of encoded (non-ASCII characters) EncodedText (355) field.
355EncodedTextdataUnused by DLTF. Encoded (non-ASCII characters) representation of the Text (58) field in the encoded format specified via the MessageEncoding (347) field. If used, the ASCII (English) representation should also be specified in the Text field.
371RefTagIDintThe tag number of the FIX field being referenced.
372RefMsgTypeStringThe MsgType (35) of the FIX message being referenced.
373SessionRejectReasonintCode to identify reason for a session-level Reject message. Valid values: 0 = Invalid tag number 1 = Required tag missing 2 = Tag not defined for this message type 3 = Undefined Tag 4 = Tag specified without a value 5 = Value is incorrect (out of range) for this tag 6 = Incorrect data format for value 7 = Decryption problem 8 = Signature problem 9 = CompID problem 10 = SendingTime accuracy problem 11 = Invalid MsgType 12 = XML Validation error 13 = Tag appears more than once 14 = Tag specified out of required order 15 = Repeating group fields out of order 16 = Incorrect NumInGroup count for repeating group 17 = Non “data” value includes field delimiter (SOH character) 99 = Other
383MaxMessageSizeLengthMaximum number of bytes supported for a single message.
384NoMsgTypesNumInGroupNumber of MsgTypes (35) in repeating group.
385MsgDirectioncharSpecifies the direction of the messsage.Valid values: S = Send R = Receive
464TestMessageIndicatorBooleanNot supported by DLTF.
553UsernameStringDLTF username. This is required on the login message sent by the client
554PasswordStringDLTF Password or passphrase. This is required on the login message sent by the client
789NextExpectedMsgSeqNumSeqNumNot supported by DLTF.

Data Types

Data TypeDescription
Booleanchar field containing one of two values: 'Y' = True/Yes 'N' = False/No
charChar value, can include any alphanumeric character or punctuation except the delimiter. All char fields are case sensitive (i.e. l != L).
dataBinary (non-ASCII) data.
intSequence of digits without commas or decimals and optional sign character (ASCII characters - and 0 - 9). The sign character utilizes one byte (i.e. positive int is 99999 while negative int is -99999). Note that int values may contain leading zeros (e.g. 00023 = 23).
LengthRepresenting the length in bytes. Value must be positive.
NumInGroupValue that represents the number of repeating values in a group.
PriceValue representing a price. Note the number of decimal places may vary.
QtyValue capable of storing either a whole number (no decimal places) of shares (securities denominated in whole units) or a decimal value containing decimal places for non-share quantity asset classes (securities denominated in fractional units).
SeqNumRepresenting a message sequence number. Value must be positive.
StringAlpha-numeric free format strings; can include any character or punctuation except the delimiter. All char fields are case sensitive (i.e. dltf != DLTF).
UTCTimestampRepresenting Time/date combination represented in UTC (Universal Time Coordinated, also known as GMT ) only accepted in this format : YYYYMMDD-HH:MM:SS (whole seconds). For example 20120321-17:15:03.