- Alice has a Max Quote Quantity of 10 BTC and a Quantity Limit of 10 BTC (Quantity Limit ≤ Max Quote Quantity, so the risk bypass applies)
- A margin hold is placed in Alice’s account based on the Max Quote Quantity
- Alice enters double-sided quotes for each BTC_USD option order book or ~1600 orders
- Bob sends an order that fills Alice for 9 BTC
- Bob sends a second order that fills Alice for 10 BTC
- Alice’s MMP is triggered and atomically cancels all her orders
- Starbase prevents Alice from re-entering the market for 1 second
- Deribit’s margin engine recalculates IM based on Alice’s fills and communicates this to Starbase
- After 1 second, Alice is free to re-enter the market
Recommended: MMP risk bypass for order entry
Utilizing the MMP risk bypass is the lowest-latency method for market access in Starbase. MMP-enabled flow goes straight from the gateway to the matching engine, so no order-entry path that passes through the risk module can be faster. This works for both orders and mass quotes:- Orders — set the
MMPflag (field 10, bit 4) onNewOrderRequestto tag the order for the default MMP group - Mass quotes — MMP is always enforced for quotes via their MMP group, so mass quoting uses the bypass by default
- Lowest latency — the risk engine is not on the critical path for MMP-enabled flow
- Reduced system load — bypassing the risk module reduces strain on Starbase’s risk engine and Deribit’s margin engine
- Isolation from pre-trade risk testing — while pre-trade risk checks are being tested and rolled out, MMP-enabled flow bypasses the risk module entirely, so order acceptance and latency behavior on this path are unaffected by that work