FIX Protocol
Documentation of FIX Protocol messages which you will need to implement in your custom project to manage session with our servers
Introduction
HFTFeed Server leverages the FIX (Financial Information eXchange) Protocol to manage sessions, stream market data, and facilitate communication between trading systems. FIX is an industry-standard messaging protocol designed for real-time electronic trading, ensuring fast, secure, and reliable data exchange.
How HFTFeed Uses FIX Protocol
HFTFeed Server utilizes FIX Protocol for the following core functionalities:
Session Management – Securely authenticates users and maintains a persistent connection.
Real-Time Market Data – Streams tick-by-tick price updates and order book changes.
Subscription Handling – Allows traders to subscribe/unsubscribe to symbols dynamically.
Low-Latency Communication – Ensures ultra-fast data transmission for high-frequency trading (HFT).
By using FIX Protocol, HFTFeed Server ensures high reliability, low latency, and seamless integration with trading systems that require precise, time-sensitive market data.
1.LOGON MESSAGE
REQUEST
8=FIX.4.4|9=76|35=A|34=1|49=SENDER|50=QUOTE|52=20250318-12:34:56.789|56=TARGET|57=QUOTE|98=0|108=30|141=Y|553=testuser|554=password123|10=XYZ|
RESPONSE
8=FIX.4.4|9=84|35=A|34=1|49=SENDER|50=QUOTE|52=20250319-09:59:32.562|56=TARGET|57=QUOTE|98=0|108=30|10=141|
2.LOGOUT MESSAGE
REQUEST
8=FIX.4.4|9=39|35=5|34=1|49=SENDER|50=QUOTE|52=20250318-12:34:56.789|56=TARGET|57=QUOTE|10=045|
RESPONSE
8=FIX.4.4|9=97|35=5|34=1|49=SENDER|50=QUOTE|52=20250319-10:04:37.725|56=TARGET|57=QUOTE|58=Session disconnected|10=056|
3.Heartbeat Message
8=FIX.4.4|9=35|35=0|34=1|49=SENDER|50=QUOTE|52=20250318-12:34:56.789|56=TARGET|57=QUOTE|10=099|
4.Market Data Subscription (Single Symbol)
8=FIX.4.4|9=75|35=V|34=1|49=SENDER|50=QUOTE|52=20250318-12:34:56.789|56=TARGET|57=QUOTE|262=1234567890123456|263=1|264=1|267=2|269=0|269=1|146=1|55=EURUSD|10=200|
5.Market Data Unsubscription (Single Symbol)
8=FIX.4.4|9=75|35=V|34=1|49=SENDER|50=QUOTE|52=20250318-12:34:56.789|56=TARGET|57=QUOTE|262=1234567890123456|263=2|264=1|267=2|269=0|269=1|146=1|55=EURUSD|10=201|
6.Market Data Subscription (Multiple Symbols)
8=FIX.4.4|9=95|35=V|34=1|49=SENDER|50=QUOTE|52=20250318-12:34:56.789|56=TARGET|57=QUOTE|262=1234567890123456|263=1|264=1|267=2|269=0|269=1|146=2|55=EURUSD|55=GBPUSD|10=202|
7.Market Data Unsubscription (Multiple Symbols)
8=FIX.4.4|9=95|35=V|34=1|49=SENDER|50=QUOTE|52=20250318-12:34:56.789|56=TARGET|57=QUOTE|262=1234567890123456|263=1|264=1|267=2|269=0|269=1|146=2|55=EURUSD|55=GBPUSD|10=202|
8.Get Symbols Request
8=FIX.4.4|9=45|35=x|34=1|49=SENDER|50=QUOTE|52=20250318-12:34:56.789|56=TARGET|57=QUOTE|320=1234567890123456|559=0|10=150|
9.Market data
8=FIX.4.4|9=126|35=W|34=1|49=SENDER|50=QUOTE|52=20250319-09:59:40.022|56=TARGET|57=QUOTE|55=3001|268=2|269=0|270=19558.675|269=1|270=19558.925|10=178|
Tips
✅ If you struggling with reading FIX messages, use https://fixparser.targetcompid.com/ which will make it more readable for you
✅ Always increment Tag 34 (MsgSeqNum) by 1 for each outgoing message! If your sequence numbers get out of sync, the counterparty might reject your messages or request a sequence reset.
✅ You can subscribe mulitple symbols in one message but HFTFeed server will send one quote per one message
✅ Heartbeat should be send every 30 seconds
✅ HFTFeed doesn't provide SSL encryption