← Technical Guides

Test Cboe BZX orders against a live TCP PITCH book

Connect a FIX 4.2 engine and separate Cboe BZX TCP PITCH reader, wait for the readiness Heartbeat, and reconcile fills, replacements and replay.

Select Cboe BZX in the control desk and download the participant file. Start the bridge and connect the FIX engine and PITCH decoder to their assigned local TCP ports. A free demo starts with a synthetic offer of four shares at 100.00. The FIX channel uses Cboe Titanium FIX 2.9.63 and the feed uses TCP PITCH 1.15.18 over SoupTCP 2.0. Open the BZX demo · Cboe technical specifications

Read the displayed book before trading

Open the PITCH connection and send the SoupTCP L packet using the feed credentials and session from the participant file. Request sequence 1 on a new lab. Each packet ends with a linefeed. The A login response gives the first sequence, and each S packet increments the sequence by one. Read the Time Reference, Symbol Clear, Trading Status and displayed Add Order records to build the book. Respond to silence with the SoupTCP client heartbeat. SoupTCP 2.0 protocol · Cboe PITCH 1.15.18

Match a FIX execution to PITCH

Use the supplied initiator.cfg and XML. The member session uses 8=FIX.4.2, 56=BATS, 57=TEST and its assigned CompID and SubID. Send Logon with 108=30 and wait for the first venue Heartbeat before any order. The venue waits one second after Logon to allow any Resend Request to arrive. Cboe FIX 2.9.63, pp. 10–14

Send a one-share Buy limit for NOVA at 100.00 with a fresh ClOrdID(11), 47=A for agency capacity and 9303=B for book-only routing. Supply the current UTC TransactTime(60). The private FIX session acknowledges the order with 150=0 and reports the fill with 150=2, 32=1 and 9730=R. On PITCH, an E record references the displayed sell order from the opening book, with one share executed at that order’s price. Build a BZX order · Validate a BZX order

Replace, cancel and recover

Rest a buy below the bid, then send G with the current OrigClOrdID(41) and a new price. PITCH cancels the previous visible quantity and adds it at the new price under the same displayed order ID. Send F with a fresh ClOrdID and either the working OrigClOrdID or the returned OrderID(37). The latter form does not require the symbol or side. After reconnecting PITCH, request the first missing sequence. FIX recovery uses its own Resend Request (35=2) and returns the original ExecID and PossDupFlag(43)=Y for a replayed fill. Inspect a BZX capture

In a private lab, enable Trade Cancel and TCP PITCH Trade Break to receive UCC on FIX and B on the feed. UCC links to the original FIX ExecID through ExecRefID(19). PITCH B uses the execution ID from its preceding public print. Exchange profile reference

Reconcile a fill with FIX Drop

Use the assigned drop credential and drop-copy.cfg on loopback port 19878. Send Logon with the drop session’s own SenderCompID and wait for its readiness Heartbeat. A trade preserves the original ExecID(17), order ID, quantity and price. OrigCompID(9688) and OrigSubID(9689) identify the source session. Order by Order FIX Drop also reports acknowledgements, replacements, cancellations and order rejects. Select Standard FIX Drop in a private lab for fills and optional trade breaks. Recover missed records by sending 35=2 on the drop session. Cboe FIX 2.9.63, pp. 56–57

Trip and reset the kill switch

Connect on port 19879 using purge.cfg and venue-FIX42-PURGE.xml. Keep one order working below the bid. On Purge, send 35=F with 7700=FBL, the assigned MPID in header tag 115, a current 60 and a unique 7695. Purge returns 35=8, 20=3, 150=M with the original 7695 and cancelled order count 7696. Order entry receives the cancellation and then rejects fresh orders for that MPID. Order by Order FIX Drop copies both reports. Send a valid NewOrderSingle with 7692=F on order entry to release the firm lock. A symbol or risk-group filter narrows the lockout. Risk groups use the repeating 7698/7699 structure and reset with 7692=C and the order’s 7699. Cboe FIX 2.9.63, pp. 25, 37–40

Under Cancel on Disconnect, choose continuous orders, all eligible orders, or keep orders. Closing the order transport exercises the setting. The drop port stays connected and reports each applicable cancellation in Order by Order mode. A resumable order session can request those reports after reconnecting. Cboe FIX 2.9.63, pp. 53, 58

Test pegs, directed IOC and auctions

  • Pegged orders. Send 40=P with 18=R for primary, 18=P for market or 18=M for midpoint. The lab uses its configured synthetic NBBO. Verify 9690 on a booked order. A hidden resting fill prints as PITCH P.
  • Directed routing. Enable the synthetic IEX route. Send a plain IOC with 9303=RL, 9400=DIRC, 100=I and 59=3. The lab tries local liquidity then a finite displayed away quote. Routed fills carry 9730=X, appear on FIX Drop and print as PITCH P.
  • Opening and closing auction. Select the phase in a private lab. Send a market or limit order with 9303=B and 59=2 for the open or 59=7 for the close. Read PITCH I while the book collects interest. Trigger Start cutoff and check the cancel reject. Uncross auction clears eligible interest at one collared price. Compare FIX fill 9730=C, the copied execution and the native PITCH J total.

The lab uses one BZX-listed synthetic instrument, a fixed reference NBBO and operator-driven cutoff timing. Coverage includes primary, market and midpoint peg variants, displayed-only directed IOC to one away book and the ordinary open and close. Market-maker and supplemental pegs, other routing strategies and halt or IPO auctions require additional scenarios. Cboe FIX 2.9.63, pp. 22–24, 43–48 · Cboe Auction Process 1.5.27