Skip to main content
Version: 8.6.10.4

Routing Logic Implementation

Introduction​

This document provides guidance on SpiderRock's routing algorithms — covering which algo best corresponds to a desired execution style, how market liquidity factors into that selection, and how to configure the relevant order parameters.

The examples below illustrate the range of available routing behaviors and demonstrate how to implement order parameters across the following interfaces:

  1. The SpiderRock GUI Tools / order entry tickets
  2. SRSE (SpiderRock Storage Engine – SQL Live API)
  3. The SpiderRock Client FIX Gateway

For additional information on algo parameters, contact the SpiderRock Support Desk at cs@spiderrock.net.

Table of Contents​

SectionAlgosDescription
Single or Multi-Line SweepsSpdrSweepImmediately removes existing liquidity in a single option or across an entire expiration surface
Active TakerActiveTakerTakes liquidity using a primary limit, optionally combined with a dynamic secondary limit
Active MakerPostWith, PostWthF, PostTurn, PostImpr, PostLimit, PostFlash, PostFlashI, PostFlashWPosts liquidity within the NBBO, more or less aggressively depending on the posting algo
Active Taker Paired with an Active MakerActiveTaker with a posting algoTakes and posts liquidity on the same order
Multi-Leg AlgosSeeker, Seek/Legger, LeggerWorks strike-specific spreads as a package or by legging each leg
Progression AlgosTwapAlpha, VwapAlpha, SpdrPulseWorks an order in slices at increasing levels of aggressiveness

Single or Multi-Line Sweeps​

SpdrSweep is a sweep strategy that can be used to immediately remove existing liquidity in a single option or entire expiration surfaces.

  • SpdrSweep removes liquidity only
  • A limit price is set $0.10 through the market and does not update
  • The time in force for this strategy is set to Immediate-or-cancel (IOC)
  • The execution engine synchronizes the delivery of child orders across exchanges in exchange fee, size, or price level priority depending on order size vs. visible market size
  • For example, if the order size is less than visible market size, the execution engines will typically sweep in exchange fee order. If order size is greater than visible market size, the execution engines will tend to sweep in price level priority
  • ISO orders can be supported via SpiderRock as an executing broker

GUI Tools Example​

SpdrSweep-RoutingLogic
  • User selects SpdrSweep under the Order Type drop down list
  • Other fields will auto-populate with proper settings – Under Limit Class, MktArr refers to the limit set to $0.10 through the market at time of order arrival - TIF defaults to IOC
  • User can click on MktSize to size the basket, which will populate the immediately available cumulative liquidity on the bid (for buy orders) or offer (for sell orders)

SRSE and FIX Examples​

  1. Sell single line sweep order for 100 AAPL 255 Call expiring on 10-17-2025:

    REPLACE INTO srtrade.msgoptordergateway (accnt, clientFirm, spdrActionType, groupingCode, okey_at, okey_ts, okey_tk, okey_yr, okey_mn, okey_dy, okey_xx, okey_cp, orderSide, orderSize, marketSession, orderLimitType, parentOrderHandling, parentBalanceHandling, takeLimitClass, makeLimitClass, autoHedge, riskGroupId, traderName, CHECKSUM)
    VALUES ('T.ACCNT', 'SRCORE', 'AddReplace', '1000-0000-0867-5309', 'EQT', 'NMS', 'AAPL', 2025, 10, 17, 255, 'Call', 'Sell', 100, 'RegMkt', 'MarketArrival', 'ActiveTaker', 'None', 'Simple', 'Simple', 'Spdrauto', '1000-0000-0867-5309', 'user.name', 13);
  2. Sell multi-line sweep order for 100 AAPL Calls at strikes corresponding to an absolute delta of .30 through .70 and expiring on 10-17-2025:

    REPLACE INTO srtrade.msgoptordergateway (accnt, clientFirm, spdrActionType, groupingCode, okey_at, okey_ts, okey_tk, okey_yr, okey_mn, okey_dy, okey_xx, okey_cp, orderSide, orderSize, marketSession, orderLimitType, parentOrderHandling, parentBalanceHandling, takeLimitClass, makeLimitClass, autoHedge, riskGroupId, traderName, CHECKSUM)
    (SELECT 'T.ACCNT', 'SRCORE', 'AddReplace', '2000-0000-0867-5309', okey_at, okey_ts, okey_tk, okey_yr, okey_mn, okey_dy, okey_xx, okey_cp, 'Sell', 100, 'RegMkt', 'MarketArrival', 'ActiveTaker', 'None', 'Simple', 'Simple', 'Spdrauto', '2000-0000-0867-5309', 'user.name', 13
    FROM sranalytics.msgliveimpliedquoteadj
    WHERE okey_tk = 'AAPL' AND okey_yr = 2025 AND okey_mn = 10 AND okey_dy = 17 AND ABS(de) > .30 AND ABS(de) < .7);

Active Taker​

ActiveTaker, NoPost is a strategy that can help clients optimize their taking aggression. Users can implement a primary volatility or delta-adjusted limit only, or a primary limit in combination with a secondary limit that is dynamically reacting to market micro dynamics. Secondary limits can be expressed in alpha probabilities or volatility surface offsets.

What are the secondary dynamic limits?​

  • Alpha probabilities are a numerical estimate of short-term profitability. A probability of 50% represents a 50% chance to get filled at mid-market or better when measured a few minutes post fill, assuming the trade is delta neutral. Higher probabilities are considered to be passive settings since they score high quality events that occur less frequently in the market. The lower probabilities are, the more aggressively orders will interact with the market. Users can increase trading velocity or fill rates on the fly by dialing down the probabilities, hence statistically pay the market slightly more than mid-market if dialing to a number below 50%.
  • Volatility surfaces can also be leveraged as a secondary dynamic limit. Our surfaces are well calibrated through bid/ask channels and are arbitrage-free providing realistic implied mid-market values in real time. Users can express a dynamic limit as an offset to our surface. A positive offset indicates a calibration that is more aggressive than the surface, conversely a negative number indicates a calibration that is less aggressive than our surface.

GUI Tools Example​

  • In the example below, user is buying NFLX 27-MAR-2020 325.00 and 327.50 calls
  • Using the 325 strike, the market is 15.80 at 18.25
  • User has set a top limit vol at 85.75, which corresponds to a price of 18.088
  • User has also set a take probability at 50%, which corresponds to a price of 16.834 (at time of the screen capture). Note that the engine continually computes the corresponding price to the probability level. So the 50% limit in this example is in effect very dynamic.
  • Since the take probability limit is tighter than the user-defined vol limit, the effective limit will be the take probability (rounded to 16.80).
  • This means that if there was an offer coming in the market at 16.80, the SpiderRock engine would trigger and IOC order to buy this 16.80 offer.
  • Users have access to the probability dial and can modify the aggressiveness of an order by simply changing the probability settings to desired level.
ActiveTaker-RoutingLogic

SRSE and FIX Examples​

Active Taker order using a probability of .6 (or 60%). In this example, a user would be looking to remove liquidity if someone placed an offer through the middle of the market.

REPLACE INTO srtrade.msgoptordergateway (accnt, clientFirm, spdrActionType, groupingCode, riskGroupId, marketSession, okey_at, okey_ts, okey_tk, okey_yr, okey_mn, okey_dy, okey_xx, okey_cp, orderSide, orderSize, orderLimitType, orderVolLimit, parentOrderHandling, parentBalanceHandling, takeLimitClass, takeAlphaType, takeProbability, autoHedge, traderName, CHECKSUM)
VALUES ('T.ACCNT', 'SRCORE', 'AddReplace', '0001-0000-0867-5309', '0001-0000-0867-5309', 'RegMkt', 'EQT', 'NMS', 'SPY', 2025, 10, 17, 665, 'Call', 'Buy', 100, 'Vol', .1173, 'ActiveTaker', 'None', 'Probability', 'Static', .60, 'Spdrauto', 'user.name', 13);

Active Maker​

PostOnly, PostAbc: These strategies enable clients to post liquidity between the NBBO more or less aggressively depending on the type of posting strategy they select. They can be used in conjunction with a user-defined volatility or delta-adjusted limit only, or in combination with a secondary limit that is dynamically reacting to market micro dynamics. Such secondary limits can be expressed in alpha probabilities or volatility surface offsets.

Types of Posting Algos with GUI, SRSE, and FIX Examples​

PostWith​

This posting algo enables orders to post on the NBBO if the order price is greater than the NBBO. This algo continues to post on the bid (if buying) or offer (if selling) until the market fades; it will fade with the rest of the market once the order is alone at that price.

PostOnly / PostWith order in the Ticket Blotter

PostWthF​

This posting algo functions similarly to PostWith. It will post an order on the NBBO if the order price is greater than the NBBO. Unlike PostWith however, PostWthF takes into account the size ratio between the bid and offer size. The order will post on the weak side of the market as long as the relationship between the weak and the strong NBBO size is a ratio of at least 1 to 4. If the weak side becomes "weaker" (ratio becomes 1 to 5 or smaller) the order will be pulled from the market. The order will not go back into the market until the size ratio returns to 1 to 4 or something stronger.

PostOnly / PostWthF order in the Ticket Blotter

PostTurn​

This posting algo will allow a user to improve the NBBO. If the limit price of an order is greater than the NBBO, this algo will improve the NBBO by a single price increment. The algo will not improve the NBBO again unless someone joins with 100% of the posted size.

PostOnly / PostTurn order in the Ticket Blotter

PostImpr​

This posting algo will allow a user to improve the NBBO. Similarly to PostTurn, if the limit price of an order is greater than the NBBO, this algo will improve by a single price increment. However, this posting algo will improve itself every 30 seconds if there is room to do so. This will continue until the limit price is reached.

PostOnly / PostImpr order in the Ticket Blotter

PostLimit​

This posting algo will allow a user to post at their limit price.

PostOnly / PostLimit order in the Ticket Blotter

PostFlash​

This posting algo will flash at the limit price of an order (as long as the limit price is within the NBBO prices). The order will post for half of a second, which is fast enough to not impact the NBBO nor our surface calculations and let fast systems trade with the order. The order will go dark (no child orders) for a random time of 15 seconds up to 2 minutes. At the end of the timer the order will flash the market again.

PostOnly / PostFlash order in the Ticket Blotter

PostFlashI​

This posting algo functions similarly to PostFlash. However, instead of posting immediately at the limit price, the order will first flash one price increment better than the NBBO. With each subsequent flash, the algo will further improve. This will continue until the algo has reached the user limit. Like PostFlash, the order will post for half of a second and then go dark (no child orders) for a random time of 15 seconds up to 2 minutes. At the end of the timer, the order will flash the market again.

PostOnly / PostFlashI order in the Ticket Blotter

PostFlashW​

Similarly to both flash algos above, this posting algo will flash at the order limit price (as long as the limit price is within the NBBO prices). The order will post for half of a second. However, instead of going dark like PostFlash and PostFlashI, this algo will post on the NBBO like PostWith. When the timer goes off, the order will flash at the price limit again.

PostOnly / PostFlashW order in the Ticket Blotter

Active Taker Paired with an Active Maker​

ActiveTaker, PostAbc can be combined and will work in conjunction with each other. Similarly to separate taking and making orders, users can leverage a user-defined primary limit combined with a secondary dynamic limit.

GUI, SRSE, and FIX Examples​

  1. ActiveTaker / PostLimit order working with a user-defined vol limit combined with a secondary limit based on the SpiderRock volatility surface:

    ActiveTaker / PostLimit order with Surface limit class in the Ticket Blotter
  2. ActiveTaker / PostLimit order working with a user-defined vol limit combined with a secondary limit based on Probabilities for both the making (.50) and taking (.50) sides.

    ActiveTaker / PostLimit order with Probability limit class in the Ticket Blotter

Multi-Leg Algos​

Seeker, Seek/Legger, Legger are multi-leg strategies used by clients who are interested in trading strike-specific spreads.

Seeker​

Sending orders to the Complex Order Books (COB) via Seeker allows a multi-leg order to trade as a package, with no leg risk. For example, sending a call spread with a size of 10 means that 10 packages of the call spread are being sent to the COB.

Seek/Legger, Legger​

These two order types work multi-leg orders by legging each leg in the exchange order books to seek price improvement. These order types introduce leg risk that is assumed by the user. Our engines will post orders at a level that will allow our system to take the other leg (by sending IOC orders) if the posted leg is filled. Our system will also only post size based on the amount of take size available on the other leg.

To mitigate leg risk, the user can use Exposure and Slippage. Exposure limits the size to a maximum size amount (based on a % of total order size). Slippage represents the worst amount that a user is willing to pay in order to complete a legged package. The slippage amount (in pennies) only comes into play if the order is legged. Being legged means that part of the order (the posted leg) gets filled and our system missed the completion of the other leg when sending an IOC. This can occur when the market is moving fast. Slippage gives room to chase a single leg if needed. Once that leg fills and the package unit is whole, the order continues to work at the original order price.

With any of our multi-leg strategies, the user can choose a posting algo to work a multi-leg order. If the user does not select a posting strategy and is using Seeker/Leg or Legger then the order will only take liquidity when both legs are available at the user price. The SpiderRock Probabilities and Volatility Surface can also be leveraged as secondary limits.

GUI and SRSE Examples​

  1. Seeker

    Seeker order in the Ticket Blotter MultiLeg tab
  2. Seeker/Legger

    Seek/Leg order in the Ticket Blotter MultiLeg tab
  3. Legger

    Legger order in the Ticket Blotter MultiLeg tab

Progression Algos​

TwapAlpha, VwapAlpha, SpdrPulse are progression algos. Rather than being a separate routing behavior, a progression algo adds a schedule on top of the taking and posting algos described above: it splits the parent order into quantity slices and works each slice at increasing levels of aggressiveness, starting with passive posting and escalating toward taking.

This section summarizes how they work. For full details, more examples, and the complete parameter reference, see Progression Algos.

How the Algos Differ​

AlgoMoves to the Next SliceAvailable For
TwapAlphaWhen the slice's target time has elapsed, so the order works for its full durationEquities, options, futures, and multi-leg orders
VwapAlphaWhen the slice has filled and market volume has reached the participation targetEquities and futures
SpdrPulseImmediately after the previous slice fills (default slice duration is 30 seconds)Equities, options, futures, and multi-leg orders

TwapAlphaC and VwapAlphaC are equity variations that also send any remaining balance into the closing auction.

For a detailed side-by-side comparison, including default order parameters, see the Progression Algo Summary.

How Each Slice Escalates​

Each slice works through the following modes, using the ActiveMaker and ActiveTaker algos described above:

ModeActiveMakingActiveTaking
PassivePostLimit, slightly better than fair mid-marketTakes at a 50% or higher alpha probability
ModeratePostImprove, stepping up to slightly worse than fair mid-marketTakes at a 40% (options) or 49% (stock and futures) probability
AggressivePostImprove, stepping up to the full parent limit (add-liquidity only)Same as moderate mode
Try Take—Crosses the market, up to the full parent limit
Legger (multi-leg only, optional)—Takes in the individual leg markets

Multi-leg orders working in the complex order books do not take liquidity in passive or moderate mode.

GUI, SRSE, and FIX Examples​

A progression algo is selected with the progressRule field in SRSE (FIX tag 5054), alongside the order's routing settings. The GUI example shows where TwapAlpha is selected on the order ticket. The SRSE and FIX examples buy 100 SPY puts over 1 hour in 6 slices, working each slice with ActiveTaker / PostLimit; the Market limit lets the order cross the market to complete by the end of the hour.

TwapAlpha order in the Ticket Blotter