← Technical Guides

Trace an IEX order from the top of book to its execution report

Use IEX Equities FIX 3.12 and TOPS 1.66 to compare a synthetic quote, a crossing limit order, its private fill and the next public quote.

An IEX client has two different views of a trade. The order gateway reports what happened to the member’s order. The TOPS feed shows the displayed best bid and offer for the instrument. A useful acceptance test records both views while preserving their independent sequence numbers. IEX Equities FIX specification · IEX TOPS specification

Read a quote before sending an order

Use a synthetic book with a bid of 99.90 for 100 shares and an offer of 100.10 for 50. On the market-data connection, read a TOPS Quote Update (Q). TOPS prices are signed integers in units of one ten-thousandth of a dollar. The encoded offer price is 1001000. Reading the offer size at the bid-size offset would produce a plausible number and an incorrect order decision. Section Quote Update Message in the feed manual gives each field’s byte offset. TOPS 1.66, pp. 16–18

Cross the displayed offer

On the separate order-entry session, send a FIX 4.2 NewOrderSingle (35=D) for the same symbol. For this case use a fresh client order ID, buy (54=1), limit (40=2), ten shares (38=10), a price of 100.10 (44=100.10), IEX-only handling (18=i), agency capacity (47=A) and Day (59=0). Keep the connection identities and sequence supplied for your lab. The Builder calculates the length and checksum after edits. IEX order builder · IEX order validator

With the initial displayed offer intact and the lab configured to match the order, expect ten shares at 100.10. Match the private ExecutionReport (35=8) to the order using ClOrdID (11), and check LastShares (32), LastPx (31), CumQty (14) and LeavesQty (151). With no other activity the next public quote should still offer 100.10, now for 40 shares. TOPS does not carry the client order ID. Correlate the instrument, price and size change. A busy trading feed can include other participants’ orders between those observations. IEX FIX 3.12, execution reports

Diagnose a missing update

In a capture, map the order service to its TCP port and TOPS to the destination UDP port. The IEX Transport Protocol header includes the first message sequence number, message count and payload length. A segment can carry several length-prefixed messages. Advance the expected sequence by the number of messages. A zero-message heartbeat leaves that sequence unchanged. FIX MsgSeqNum (34) advances independently on the private session. A gap on one channel gives no evidence that the other missed a message. IEX packet capture · IEX Transport 1.26, pp. 5–7

The lab exercises a synthetic, continuous book. A TOPS quote describes the displayed best prices and aggregate sizes. It cannot establish an individual order’s queue position or expose hidden liquidity. Use the profile coverage and the exchange’s own testing process for routed orders, auctions and certification. Follow the DEEP and gap recovery walkthrough to restore a missing sequence. Exchange profile coverage · Venue simulator