<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pritesh</title>
    <description>The latest articles on DEV Community by Pritesh (@pritesh_d40a1cf573a78adc5).</description>
    <link>https://dev.to/pritesh_d40a1cf573a78adc5</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3901508%2F8bd21053-9bca-410f-909e-3cf7d2127400.png</url>
      <title>DEV Community: Pritesh</title>
      <link>https://dev.to/pritesh_d40a1cf573a78adc5</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pritesh_d40a1cf573a78adc5"/>
    <language>en</language>
    <item>
      <title>FIX Protocol in Real-World Trading Systems — Lessons from Bloomberg, Kraken, and 30+ Exchange Integrations</title>
      <dc:creator>Pritesh</dc:creator>
      <pubDate>Thu, 21 May 2026 06:47:32 +0000</pubDate>
      <link>https://dev.to/pritesh_d40a1cf573a78adc5/fix-protocol-in-real-world-trading-systems-lessons-from-bloomberg-kraken-and-30-exchange-3hhe</link>
      <guid>https://dev.to/pritesh_d40a1cf573a78adc5/fix-protocol-in-real-world-trading-systems-lessons-from-bloomberg-kraken-and-30-exchange-3hhe</guid>
      <description>&lt;p&gt;Sharing my experience as senior software engineer worked with 10 years in Bloomberg, Kraken and integrated most of the exchanges world wide&lt;/p&gt;

&lt;p&gt;The Financial Information eXchange (FIX) protocol is one of the most widely used communication standards in global financial markets.&lt;/p&gt;

&lt;p&gt;It powers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pre-trade communication&lt;/li&gt;
&lt;li&gt;Trade execution&lt;/li&gt;
&lt;li&gt;Post-trade workflows&lt;/li&gt;
&lt;li&gt;Regulatory reporting&lt;/li&gt;
&lt;li&gt;Order routing&lt;/li&gt;
&lt;li&gt;Market data dissemination&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;According to QuickFIX, the open-source implementation of FIX:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The Financial Information Exchange (FIX) Protocol is a message standard developed to facilitate the electronic exchange of information related to securities transactions.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;While that definition sounds straightforward, the scale at which FIX operates in modern electronic trading is massive.&lt;/p&gt;

&lt;p&gt;Over the last 10 years working at Bloomberg and more than a year working with Kraken’s institutional trading infrastructure, I’ve worked extensively with FIX connectivity across more than 30 global exchanges and venues spanning:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Equities&lt;/li&gt;
&lt;li&gt;Futures&lt;/li&gt;
&lt;li&gt;Options&lt;/li&gt;
&lt;li&gt;FX&lt;/li&gt;
&lt;li&gt;Crypto&lt;/li&gt;
&lt;li&gt;Multi-asset execution systems&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This article explains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Why FIX became the industry standard&lt;/li&gt;
&lt;li&gt;How FIX messages are structured&lt;/li&gt;
&lt;li&gt;How production trading systems actually parse FIX&lt;/li&gt;
&lt;li&gt;How custom FIX tags are introduced&lt;/li&gt;
&lt;li&gt;Lessons learned integrating dozens of exchanges&lt;/li&gt;
&lt;li&gt;Why FIX still dominates despite newer protocols&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  The Pain Point FIX Solved
&lt;/h1&gt;

&lt;p&gt;Before FIX became mainstream, trading workflows were heavily manual.&lt;/p&gt;

&lt;p&gt;Orders were communicated through:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Phone calls&lt;/li&gt;
&lt;li&gt;Emails&lt;/li&gt;
&lt;li&gt;Proprietary terminals&lt;/li&gt;
&lt;li&gt;Human brokers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This caused major operational problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Incorrect order routing&lt;/li&gt;
&lt;li&gt;Traders placed on hold during volatile markets&lt;/li&gt;
&lt;li&gt;Delayed executions&lt;/li&gt;
&lt;li&gt;Human transcription errors&lt;/li&gt;
&lt;li&gt;Lack of auditability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As electronic markets evolved, firms needed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Standardized communication&lt;/li&gt;
&lt;li&gt;Machine-readable protocols&lt;/li&gt;
&lt;li&gt;Low-latency execution&lt;/li&gt;
&lt;li&gt;Automated confirmations&lt;/li&gt;
&lt;li&gt;Reliable session management&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;FIX solved this problem by creating a universal messaging standard between counterparties.&lt;/p&gt;

&lt;p&gt;Today, almost every major financial institution supports FIX in some form.&lt;/p&gt;




&lt;h1&gt;
  
  
  Firms Driving FIX Adoption
&lt;/h1&gt;

&lt;p&gt;The FIX Trading Community includes firms such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bloomberg&lt;/li&gt;
&lt;li&gt;Goldman Sachs&lt;/li&gt;
&lt;li&gt;Citi&lt;/li&gt;
&lt;li&gt;Bank of America&lt;/li&gt;
&lt;li&gt;JP Morgan&lt;/li&gt;
&lt;li&gt;Exchanges and ECNs globally&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Initially designed for equities, FIX now powers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fixed income trading&lt;/li&gt;
&lt;li&gt;FX trading&lt;/li&gt;
&lt;li&gt;Derivatives&lt;/li&gt;
&lt;li&gt;Crypto institutional execution&lt;/li&gt;
&lt;li&gt;Clearing workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even modern crypto venues expose FIX gateways for institutional clients because many hedge funds and execution algos already rely on FIX-native infrastructure.&lt;/p&gt;

&lt;p&gt;At Kraken, for example, FIX connectivity is critical for institutional order flow where reliability and deterministic behavior matter more than retail-friendly APIs.&lt;/p&gt;




&lt;h1&gt;
  
  
  What Exactly Is a FIX Message?
&lt;/h1&gt;

&lt;p&gt;At its core, FIX is just structured key-value messaging.&lt;/p&gt;

&lt;p&gt;A FIX message consists of:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Header&lt;/li&gt;
&lt;li&gt;Body&lt;/li&gt;
&lt;li&gt;Trailer&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each field contains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tag&lt;/li&gt;
&lt;li&gt;Value&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;8=FIX.4.4|35=D|55=AAPL|54=1|38=100|&lt;/p&gt;

&lt;p&gt;Where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;8 → BeginString&lt;/li&gt;
&lt;li&gt;35 → MsgType&lt;/li&gt;
&lt;li&gt;55 → Symbol&lt;/li&gt;
&lt;li&gt;54 → Side&lt;/li&gt;
&lt;li&gt;38 → Quantity&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In reality, the delimiter is a non-printable SOH character rather than "|".&lt;/p&gt;




&lt;h1&gt;
  
  
  Anatomy of a FIX Message
&lt;/h1&gt;

&lt;p&gt;A typical FIX order message looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;8=FIX.4.4
9=176
35=D
49=CLIENT1
56=EXCHANGE
34=215
52=20260521-12:01:01.001
11=ORD12345
55=BTCUSD
54=1
38=10
40=2
44=65000
59=0
10=128
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Interpretation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MsgType=D → New Order Single&lt;/li&gt;
&lt;li&gt;Side=1 → Buy&lt;/li&gt;
&lt;li&gt;OrdType=2 → Limit Order&lt;/li&gt;
&lt;li&gt;Price=65000&lt;/li&gt;
&lt;li&gt;Symbol=BTCUSD&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The trailer checksum validates message integrity.&lt;/p&gt;




&lt;h1&gt;
  
  
  Real-World FIX Is Much More Complex
&lt;/h1&gt;

&lt;p&gt;Most tutorials stop at simple examples.&lt;/p&gt;

&lt;p&gt;Production FIX systems are significantly more complicated.&lt;/p&gt;

&lt;p&gt;Over the years integrating 30+ exchanges, I encountered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Exchange-specific FIX dialects&lt;/li&gt;
&lt;li&gt;Vendor-specific extensions&lt;/li&gt;
&lt;li&gt;Custom authentication flows&lt;/li&gt;
&lt;li&gt;Proprietary risk tags&lt;/li&gt;
&lt;li&gt;Non-standard sequencing behavior&lt;/li&gt;
&lt;li&gt;Different heartbeat expectations&lt;/li&gt;
&lt;li&gt;Unique session reset semantics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even when two exchanges claim FIX 4.4 compliance, behavior can differ dramatically.&lt;/p&gt;

&lt;p&gt;The protocol is standardized.&lt;br&gt;
Implementations are not.&lt;/p&gt;

&lt;p&gt;That is where most engineering complexity begins.&lt;/p&gt;


&lt;h1&gt;
  
  
  FIX Engines and Session Management
&lt;/h1&gt;

&lt;p&gt;One of the most widely used FIX engines is QuickFIX.&lt;/p&gt;

&lt;p&gt;A simplified Python FIX application interface looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Application&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_object&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;onCreate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sessionID&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;onLogon&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sessionID&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;onLogout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sessionID&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;toAdmin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sessionID&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;toApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sessionID&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;fromAdmin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sessionID&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;fromApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sessionID&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These callbacks handle:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Session lifecycle&lt;/li&gt;
&lt;li&gt;Administrative messages&lt;/li&gt;
&lt;li&gt;Application messages&lt;/li&gt;
&lt;li&gt;Heartbeats&lt;/li&gt;
&lt;li&gt;Resend requests&lt;/li&gt;
&lt;li&gt;Sequence synchronization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;FIX sessions are stateful.&lt;/p&gt;

&lt;p&gt;This is one of the most important aspects new engineers often overlook.&lt;/p&gt;

&lt;p&gt;Every session maintains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Incoming sequence numbers&lt;/li&gt;
&lt;li&gt;Outgoing sequence numbers&lt;/li&gt;
&lt;li&gt;Heartbeat intervals&lt;/li&gt;
&lt;li&gt;Replay state&lt;/li&gt;
&lt;li&gt;Gap fills&lt;/li&gt;
&lt;li&gt;Recovery flows&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At Bloomberg, ensuring session resiliency during volatile market conditions was critical because even a temporary sequence mismatch could impact downstream order routing.&lt;/p&gt;

&lt;p&gt;At Kraken, maintaining deterministic session behavior across crypto market volatility introduced another layer of operational complexity.&lt;/p&gt;




&lt;h1&gt;
  
  
  Why Low-Latency FIX Parsers Avoid String Splits
&lt;/h1&gt;

&lt;p&gt;One major misconception is that FIX parsing is “simple”.&lt;/p&gt;

&lt;p&gt;Technically yes.&lt;br&gt;
Operationally no.&lt;/p&gt;

&lt;p&gt;In high-frequency trading systems, performance matters enormously.&lt;/p&gt;

&lt;p&gt;Naive implementations use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;|&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But low-latency trading systems avoid repeated string splitting because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It creates allocations&lt;/li&gt;
&lt;li&gt;Requires multiple passes&lt;/li&gt;
&lt;li&gt;Increases CPU cache misses&lt;/li&gt;
&lt;li&gt;Adds latency jitter&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead, production-grade systems often use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Single-pass byte parsers&lt;/li&gt;
&lt;li&gt;Zero-copy parsing&lt;/li&gt;
&lt;li&gt;Buffer reuse&lt;/li&gt;
&lt;li&gt;SIMD optimizations&lt;/li&gt;
&lt;li&gt;Custom memory pools&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At Bloomberg, low-latency parsing became especially important during high market throughput events where millions of FIX messages could flow through systems in very short intervals.&lt;/p&gt;




&lt;h1&gt;
  
  
  Repeating Groups — Where FIX Gets Interesting
&lt;/h1&gt;

&lt;p&gt;FIX supports repeating groups.&lt;/p&gt;

&lt;p&gt;These allow nested structures inside messages.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Multi-leg option strategies&lt;/li&gt;
&lt;li&gt;Basket orders&lt;/li&gt;
&lt;li&gt;Allocation instructions&lt;/li&gt;
&lt;li&gt;Multiple parties/accounts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example conceptually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;NoLegs=2
LegSymbol=BTCUSD
LegSide=1

LegSymbol=ETHUSD
LegSide=2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Repeating groups are one reason why FIX parsers become non-trivial.&lt;/p&gt;

&lt;p&gt;The parser must understand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Group boundaries&lt;/li&gt;
&lt;li&gt;Group counts&lt;/li&gt;
&lt;li&gt;Nested tag hierarchies&lt;/li&gt;
&lt;li&gt;Dynamic schemas&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Many exchange-specific bugs emerge precisely from malformed repeating groups.&lt;/p&gt;




&lt;h1&gt;
  
  
  Custom FIX Tags in Real Trading Systems
&lt;/h1&gt;

&lt;p&gt;One of the most practical aspects of FIX engineering is custom tags.&lt;/p&gt;

&lt;p&gt;Although FIX defines standard tags, almost every exchange or broker introduces proprietary extensions.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Internal routing metadata&lt;/li&gt;
&lt;li&gt;Risk checks&lt;/li&gt;
&lt;li&gt;Account mappings&lt;/li&gt;
&lt;li&gt;Algo instructions&lt;/li&gt;
&lt;li&gt;Liquidity flags&lt;/li&gt;
&lt;li&gt;Exchange-specific behaviors&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Custom tags usually exist in higher numeric ranges:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;5000+&lt;/li&gt;
&lt;li&gt;9000+&lt;/li&gt;
&lt;li&gt;User-defined namespaces&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;9001=InternalStrategyID
9100=SmartOrderFlag
9205=RiskProfile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Across Bloomberg integrations and later crypto exchange connectivity, I frequently worked with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding custom tags&lt;/li&gt;
&lt;li&gt;Extending FIX dictionaries&lt;/li&gt;
&lt;li&gt;Supporting venue-specific semantics&lt;/li&gt;
&lt;li&gt;Mapping internal OMS fields to external FIX schemas&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This often required:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;XML FIX dictionary modifications&lt;/li&gt;
&lt;li&gt;Parser extensions&lt;/li&gt;
&lt;li&gt;Validation rule updates&lt;/li&gt;
&lt;li&gt;Backward compatibility handling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One challenge with custom tags is ensuring they do not break:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Counterparty parsers&lt;/li&gt;
&lt;li&gt;Certification environments&lt;/li&gt;
&lt;li&gt;Session-level validation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This becomes increasingly difficult when supporting dozens of venues simultaneously.&lt;/p&gt;




&lt;h1&gt;
  
  
  FIX Across Traditional Finance and Crypto
&lt;/h1&gt;

&lt;p&gt;One interesting evolution over the past decade is how crypto markets adopted institutional FIX infrastructure.&lt;/p&gt;

&lt;p&gt;Initially, crypto APIs were primarily REST and WebSocket based.&lt;/p&gt;

&lt;p&gt;But institutional participants demanded:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stable session protocols&lt;/li&gt;
&lt;li&gt;Deterministic order workflows&lt;/li&gt;
&lt;li&gt;Existing OMS compatibility&lt;/li&gt;
&lt;li&gt;Standard execution semantics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As a result, many crypto exchanges introduced FIX gateways.&lt;/p&gt;

&lt;p&gt;However, crypto FIX implementations sometimes differ significantly from traditional finance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Different sequencing models&lt;/li&gt;
&lt;li&gt;Exchange-specific order semantics&lt;/li&gt;
&lt;li&gt;Non-standard market structures&lt;/li&gt;
&lt;li&gt;Faster protocol evolution&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Working across both TradFi and crypto FIX ecosystems highlighted how adaptable the protocol remains despite being decades old.&lt;/p&gt;




&lt;h1&gt;
  
  
  Sample Order Cancel Request Using QuickFIX
&lt;/h1&gt;

&lt;p&gt;Example Python code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;quickfix&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;sendOrderCancelRequest&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;quickfix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;header&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getHeader&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quickfix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;BeginString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;FIX.4.2&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quickfix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SenderCompID&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;CLIENT&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quickfix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;TargetCompID&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;EXCHANGE&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quickfix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MsgType&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;F&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quickfix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OrigClOrdID&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;123&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quickfix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ClOrdID&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;321&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quickfix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Symbol&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;BTCUSD&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quickfix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Side&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Side_BUY&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quickfix&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Cancel My Order&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

    &lt;span class="n"&gt;Session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendToTarget&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MsgType=F → Order Cancel Request&lt;/li&gt;
&lt;li&gt;OrigClOrdID links the original order&lt;/li&gt;
&lt;li&gt;Session.sendToTarget handles routing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In production systems, additional logic typically exists for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Retry handling&lt;/li&gt;
&lt;li&gt;Duplicate suppression&lt;/li&gt;
&lt;li&gt;Session recovery&lt;/li&gt;
&lt;li&gt;Risk validation&lt;/li&gt;
&lt;li&gt;Audit logging&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Why FIX Still Dominates
&lt;/h1&gt;

&lt;p&gt;Despite newer protocols and APIs, FIX remains dominant because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is battle-tested&lt;/li&gt;
&lt;li&gt;Institutions already use it&lt;/li&gt;
&lt;li&gt;OMS/EMS systems depend on it&lt;/li&gt;
&lt;li&gt;It supports extensibility&lt;/li&gt;
&lt;li&gt;It works across asset classes&lt;/li&gt;
&lt;li&gt;It has mature operational tooling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even modern low-latency systems frequently use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Binary protocols internally&lt;/li&gt;
&lt;li&gt;FIX externally&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;FIX acts as the interoperability layer between institutions.&lt;/p&gt;




&lt;h1&gt;
  
  
  Final Thoughts
&lt;/h1&gt;

&lt;p&gt;FIX may appear simple at first glance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tag=value pairs&lt;/li&gt;
&lt;li&gt;SOH delimiters&lt;/li&gt;
&lt;li&gt;Standard message types&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But at scale, FIX engineering becomes deeply sophisticated.&lt;/p&gt;

&lt;p&gt;After spending:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;10 years at Bloomberg&lt;/li&gt;
&lt;li&gt;More than a year working with Kraken connectivity&lt;/li&gt;
&lt;li&gt;Integrating across 30+ exchanges globally&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I’ve seen firsthand how much engineering effort goes into:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reliable session management&lt;/li&gt;
&lt;li&gt;Low-latency parsing&lt;/li&gt;
&lt;li&gt;Exchange certification&lt;/li&gt;
&lt;li&gt;Custom tag interoperability&lt;/li&gt;
&lt;li&gt;Resiliency during volatile markets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The protocol has survived multiple generations of market evolution because it solved a fundamental problem exceptionally well:&lt;br&gt;
standardized electronic communication between trading systems.&lt;/p&gt;

&lt;p&gt;And despite its age, FIX continues to remain at the core of global electronic trading infrastructure.&lt;/p&gt;

&lt;p&gt;Thanks for reading.&lt;br&gt;
Pritesh Gaur&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>blockchain</category>
      <category>backend</category>
      <category>software</category>
    </item>
    <item>
      <title>Claude Code is Gem</title>
      <dc:creator>Pritesh</dc:creator>
      <pubDate>Tue, 28 Apr 2026 03:58:11 +0000</pubDate>
      <link>https://dev.to/pritesh_d40a1cf573a78adc5/claude-code-is-gem-ge6</link>
      <guid>https://dev.to/pritesh_d40a1cf573a78adc5/claude-code-is-gem-ge6</guid>
      <description>&lt;p&gt;If you had asked me about AI a year ago, I would’ve said it’s mostly hype. Interesting, but not something you can rely on for real engineering work. That wasn’t entirely wrong at the time — but it was definitely incomplete.&lt;/p&gt;

&lt;p&gt;I had tried LLMs back then. Used them for code, small utilities, even some writing. The results were inconsistent at best. Code would break in non-obvious ways, outputs looked fine on the surface but didn’t hold up, and overall it felt like more effort than value.&lt;/p&gt;

&lt;p&gt;That perspective probably also came from the kind of work I’ve been doing for most of my career.&lt;/p&gt;

&lt;p&gt;I’ve spent the last 10+ years working on trading systems and backend infrastructure — a big part of that at Bloomberg, and more recently working on production systems handling real financial workflows. This is the kind of environment where correctness matters a lot. You’re dealing with order routing, trade execution, reconciliation — things that can’t “mostly work.” They either work correctly, or they cause real problems.&lt;/p&gt;

&lt;p&gt;So when early LLM outputs looked fragile, it was hard to take them seriously.&lt;/p&gt;

&lt;p&gt;Things have changed since then.&lt;/p&gt;

&lt;p&gt;Part of it is obvious — models and tooling have improved significantly. But the bigger shift, at least for me, was learning how to actually use them properly. That part doesn’t get enough attention. Using LLMs effectively is a skill, and in 2026, it’s becoming a pretty fundamental one.&lt;/p&gt;

&lt;p&gt;One thing upfront — I don’t put my name on AI-generated content without being clear about it. This is written by me. I use LLMs as tools, not replacements.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Got Here
&lt;/h2&gt;

&lt;p&gt;I generally like understanding how systems work — not just using them, but figuring out where they break and how to make them better. That’s been consistent across my work as well.&lt;/p&gt;

&lt;p&gt;At Bloomberg, I worked on exchange connectivity and order routing systems, including handling protocols like FIX and building systems that operate across regions. Later, I moved into decision support and portfolio systems, working with both C++ and backend services to generate trade ideas and improve execution efficiency.&lt;/p&gt;

&lt;p&gt;More recently, I’ve been working on Python-based distributed systems, building and maintaining services, optimizing databases, and dealing with batch processes that interact with exchanges and internal systems. A lot of this involves Kafka, RabbitMQ, CI/CD pipelines, and Kubernetes-based deployments.&lt;/p&gt;

&lt;p&gt;Across all of this, one thing is consistent — systems need to be reliable, observable, and maintainable.&lt;/p&gt;

&lt;p&gt;So naturally, I approached LLMs the same way.&lt;/p&gt;

&lt;p&gt;Initial experience wasn’t great. Tried multiple tools — different models, coding assistants — none of it really worked for me. In hindsight, the issue wasn’t the tools. It was how I was using them.&lt;/p&gt;

&lt;p&gt;Later, when I started working in an environment where LLM usage was encouraged, I gave it another serious shot. Picked up a subscription and started building something non-trivial — not just scripts, but a proper application.&lt;/p&gt;

&lt;p&gt;Day one felt promising. Things were moving fast.&lt;/p&gt;

&lt;p&gt;Day two was reality.&lt;/p&gt;

&lt;p&gt;The system “worked,” but only superficially. No proper validation, no tests, no guarantees. That’s when my usual engineering instincts kicked in — if this were a trading system, I wouldn’t ship it like this.&lt;/p&gt;

&lt;p&gt;I had to restart multiple times before I got into a workflow that was actually sustainable.&lt;/p&gt;

&lt;p&gt;Over time, things improved. I was able to iterate faster, refactor with less friction, and even work in areas outside my usual stack more comfortably. That’s when it clicked — the value isn’t just in generation, it’s in how you structure the interaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Core Lesson — Context Matters More Than Prompts
&lt;/h2&gt;

&lt;p&gt;Earlier, there was a lot of focus on prompt engineering. It made sense — small wording changes used to have a big impact.&lt;/p&gt;

&lt;p&gt;That’s less true now.&lt;/p&gt;

&lt;p&gt;Modern models are much better at interpreting intent. What matters more is context — what information you give, how much of it, and how structured it is.&lt;/p&gt;

&lt;p&gt;This became very obvious when I started using LLMs for systems that actually resembled real-world complexity.&lt;/p&gt;

&lt;p&gt;For example, while working on services that involved event-driven architectures using Kafka and RabbitMQ, I tried feeding the model full architecture docs, feature plans, and code structure all at once.&lt;/p&gt;

&lt;p&gt;The result? It lost focus.&lt;/p&gt;

&lt;p&gt;It would try to do too much, or pick up the wrong signals from the context. In one case, I asked it to implement a small feature, and it started building parts of the system that weren’t even in scope yet.&lt;/p&gt;

&lt;p&gt;That’s when I started limiting context intentionally — only what’s required for that specific task.&lt;/p&gt;

&lt;p&gt;The difference was immediate.&lt;/p&gt;

&lt;p&gt;It’s similar to how we design distributed systems — you don’t want every component to know everything. You want clear boundaries and well-defined responsibilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Works Better in Practice
&lt;/h2&gt;

&lt;p&gt;A few things that made a noticeable difference for me:&lt;/p&gt;

&lt;p&gt;Treat context as a limited resource&lt;br&gt;
Keep documentation structured and minimal&lt;br&gt;
Separate high-level design from implementation details&lt;br&gt;
Point to actual code instead of duplicating logic&lt;br&gt;
Break work into smaller, well-defined steps&lt;/p&gt;

&lt;p&gt;This is very similar to how we already think about system design — modularity, separation of concerns, clear interfaces.&lt;/p&gt;

&lt;p&gt;Also, if you have specific expectations — testing practices, deployment patterns, coding standards — they need to be explicitly defined. Otherwise, the model will fill in the gaps, and not always in the way you want.&lt;/p&gt;

&lt;h2&gt;
  
  
  When Things Stop Working
&lt;/h2&gt;

&lt;p&gt;One pattern I’ve seen repeatedly — people assume the model suddenly got worse.&lt;/p&gt;

&lt;p&gt;In most cases, something changed:&lt;/p&gt;

&lt;p&gt;Model behavior&lt;br&gt;
Tooling&lt;br&gt;
Context&lt;br&gt;
Your own inputs&lt;/p&gt;

&lt;p&gt;In distributed systems, we’re used to debugging issues by looking at changes in the system — deployments, configs, dependencies. The same thinking applies here.&lt;/p&gt;

&lt;p&gt;These models are not deterministic. Same input can give different outputs.&lt;/p&gt;

&lt;p&gt;Instead of reacting to bad output, it’s more useful to debug the process:&lt;/p&gt;

&lt;p&gt;Was the context too large?&lt;br&gt;
Were instructions ambiguous?&lt;br&gt;
Was there conflicting information?&lt;/p&gt;

&lt;p&gt;One useful shift — instead of asking “what went wrong,” ask “why did this happen and how do we fix the process.” That framing tends to produce much better results.&lt;/p&gt;

&lt;p&gt;Practical Takeaways&lt;/p&gt;

&lt;h2&gt;
  
  
  A few things that consistently helped:
&lt;/h2&gt;

&lt;p&gt;Context Management&lt;/p&gt;

&lt;p&gt;Keep core docs small and focused&lt;br&gt;
Avoid duplication&lt;br&gt;
Regularly clean up outdated information&lt;/p&gt;

&lt;h2&gt;
  
  
  Execution
&lt;/h2&gt;

&lt;p&gt;Use LLMs to generate reusable solutions, not repetitive work&lt;br&gt;
Iterate in cycles — generate → review → refine&lt;br&gt;
Reset quickly when something isn’t working instead of forcing it&lt;/p&gt;

&lt;h2&gt;
  
  
  Working with Larger Systems
&lt;/h2&gt;

&lt;p&gt;Break problems into smaller units&lt;br&gt;
Use separate contexts where possible&lt;br&gt;
Don’t try to solve everything in one session&lt;br&gt;
Final Thought&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The biggest shift for me was realizing this isn’t about “better prompts.” It’s about designing better workflows.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once you start treating LLMs like part of a system — with constraints, inputs, and feedback loops — they become far more useful.&lt;/p&gt;

&lt;p&gt;And honestly, this fits quite naturally with how we already think about building reliable systems.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>softwareengineering</category>
      <category>tooling</category>
    </item>
    <item>
      <title>Claude Code is Gem</title>
      <dc:creator>Pritesh</dc:creator>
      <pubDate>Tue, 28 Apr 2026 03:46:26 +0000</pubDate>
      <link>https://dev.to/pritesh_d40a1cf573a78adc5/claude-code-is-gem-1i6c</link>
      <guid>https://dev.to/pritesh_d40a1cf573a78adc5/claude-code-is-gem-1i6c</guid>
      <description></description>
    </item>
  </channel>
</rss>
