Monaco uses a central limit order book. The best price executes first. At the same price, older resting orders execute before newer orders.Cancel requests are prioritized ahead of new orders. Monaco targets sub-millisecond matching and settles on Sei, whose single-slot finality is designed for confirmations in less than 400 ms.
Market Or Limit?
A limit order is not necessarily a maker order: it may take existing liquidity immediately. See Fees for how maker and taker fills differ.
Market-Order Price Protection
Standard market orders have a mandatory 1,000 bps (10%) protective band around a reference price. The reference is the mark price on margin markets, where a perp market can replace the 1,000 bps with its own band (see Perp price band). Otherwise, it is the median of best bid, best ask, and the recent trade price when the book is two-sided with a spread no wider than 1,000 bps; a missing or wider book uses the recent trade price alone.The recent trade price is the median of the last five liquidity-taking orders, counting each order once at its last fill price. New markets pad missing observations with their oldest one, so it takes three taking orders at a new level for the reference to follow.A client can tighten the band but cannot widen it beyond 10%. Limit orders are not subject to this market-order band.
A protective band limits execution prices. It does not guarantee that the entire order will fill.
How Long An Order Stays Active
GTC does not apply to market orders. The Order Management reference contains payload requirements, supported combinations, and order management behavior. For account setup, see Accounts.
Previewing An Order
Risk simulations use the same protective band and matching walk as placement. Accepted previews report simulated quantity, average and worst fill prices, slippage, and any remainder; the full reference lists the response fields.TWAP Orders
A TWAP order divides a trade into smaller child orders (“slices”) across a time window. Submit one parent order; Monaco schedules and tracks the slices on the server. Spreading execution trades immediacy for an average across the window. The full quantity may not fill. Execution stops at the window end and reports any shortfall.Choose An Execution Style
Taker is the default. Passive can produce both maker and taker fills. Its maker fills use the pair’s maker fee and carry no application fee; deadline sweeps and crossing takes incur application taker fees.
Set The Order
All timestamps use UTC with a
Z suffix. At most 25 parents can be open per user, including future-start orders. Parents are private to their owner. Delegated-agent sessions cannot create, cancel, fetch, or list TWAP parents in v1.The schedule is capped at 2,880 slices. Longer windows stretch the interval: a 30-day taker window uses roughly 15-minute intervals. Market minimums, maximums, and quantity steps also constrain the schedule.Price Protection For Passive Orders
The parent limit and slippage band apply to passive quotes as well as taker slices. A quote outside those bounds is not placed; if an older child is already resting, a refused reprice can leave it working at its old price.Set a limit if you need a hard price bound.
If no mark, usable book reference, or recent trade reference is available, the passive quote’s band check is skipped. The parent limit price is then its only bound.
If no mark, usable book reference, or recent trade reference is available, the passive quote’s band check is skipped. The parent limit price is then its only bound.
If Execution Falls Behind
Funds are checked per slice, not locked for the full parent upfront. A slice can be skipped because of insufficient funds or margin, unavailable liquidity, the limit price, or a market halt. A skipped or failed slice does not terminate the parent. Later slices catch up, normally capped at 3× the base size and never above the market maximum; after a gap, the schedule sends one catch-up slice rather than a burst.Illustrative outcomeRequested: 10 units · Executed: 7 · Shortfall: 3
If the window ends after 7 units fill, the parent is completed with a 3-unit shortfall. The remaining quantity is not traded after the deadline.
Monitor Or Stop The Order
The parent reports executed quantity, average fill price, progress, placed and skipped slices, and the next planned slice time. Completed means either all quantity executed or the window ended, so check executed quantity and shortfall as well as state.Cancel the parent to stop execution. Existing fills stand, and a resting passive child is removed in the same step, with no final taker sweep.Cancel-all does not stop TWAP parents. Cancelling or replacing an individual child is rejected. Use the parent order as the control.
Start When A Price Is Reached
A conditional TWAP waits for a reference price to reach or cross a chosen level, then runs for its duration from the trigger. An already-met trigger is rejected at creation, and the wait expires after at most 30 days. Polling can miss a crossing that reverses between observations; see the full rules.Once the parent completes or is cancelled, a private execution-quality report compares its average fill price, before fees, with arrival and window benchmarks.Self-Trade Prevention
Self-trade prevention (STP) applies across your wallet family: accounts sharing your wallet address, including across applications. Those accounts cannot trade with one another. A sub-account registered under a different wallet address belongs to a separate family.The incoming order’s mode governs the match. By default, Monaco cancels your resting order and continues matching the incoming order against other liquidity.Choose A Mode
Default behaviorYour incoming buy reaches your own resting sell
The resting sell is cancelled. The buy continues looking for other liquidity. The two orders do not trade with one another.
Which Setting Applies?
The priority is:- The mode specified on the incoming order.
- Your configured wallet default.
- The platform default: Cancel maker.
Exceptions To Understand
- A killed FOK leaves your quotes. Under Cancel maker, the depth check counts third-party liquidity only. Your own quotes in the fill path are cancelled only if the FOK fills.
- Under Cancel taker or Skip, a self-cross in the fill path cancels the whole FOK. FOK with Cancel both and a self-cross is rejected at placement.
- A zero-fill market order refused before sequencing does not commit a simulated maker cancellation. Do not infer a quote was removed solely from the incoming order’s failure.
- Post-only orders reject if they would cross before STP is consulted, regardless of who owns the opposing liquidity.
- Liquidations and auto-deleveraging do not apply STP. A liquidation slice fills against your own resting orders in other risk buckets and sub-accounts in price order, like anyone else’s, and never cancels them; ADL fills no resting orders and can close an opposing position in your other risk buckets. User settings cannot obstruct either.
Identifying A Prevented Trade
STP cancellations carry a self-trade-prevention reason and the counterparty order ID. They have cancelled status, which differs from accepted zero-fill IOC/FOK rejections for insufficient qualifying liquidity.Full Orders Reference
Full Orders Reference
Market-order price protection
Every market order executes inside a mandatory server-side protective price band of 1,000 bps (10%) around a robust reference price — the market’s mark price on margin markets; otherwise the median of best bid, best ask, and the recent trade price when the book is two-sided and not degenerate (its bid-ask spread is at most 1,000 bps); otherwise the recent trade price alone. The recent trade price is the median of the prices set by the market’s last five liquidity-taking orders, not the single last trade, so one or two taking orders that trade far from the market do not move the band; a real move is followed from the third taking order at the new level. Each taking order counts once, at the price of its last fill, so an order that sweeps three price levels contributes one, not three, and the resting orders it fills add nothing. A market with fewer than five taking orders so far counts its oldest one in the empty places, so even a newly listed market needs three taking orders at a new level before the band follows. Fills that would occur beyond the band are cut off:- The portion that fills inside the band settles; any remainder is cancelled, so the order comes back partially filled.
- If no quantity is available inside the band, the order is rejected as insufficient liquidity.
- A market order on a market with no usable reference price (no mark, a degenerate book, and no trade history) is rejected as unavailable.
slippageToleranceBps can only tighten this band; it can never widen it past the market’s band. Limit orders are unaffected — use a limit order to trade beyond the band. The order-risk simulation endpoints run the same walk under the same band and surface the same rejections, so a preflight check matches placement — and because that same simulated match is what admits the order, they also return what it would execute at: expectedMatchResult, the engine’s simulated fill in the same MatchResult shape a placement returns (totalFilled, remainingQuantity — the band-cut / partial-fill indicator — averageFillPrice, executionPriceRange.worstPrice, actualSlippageBps), plus referencePrice for a MARKET preview, priced under your slippageToleranceBps merged with the band. Present only on an accepted preview. See Pre-trade simulation.TWAP parameters
A TWAP parent order takes:- Market, side, and quantity: the trading pair, BUY or SELL, and the total quantity to execute. The quantity must be at least twice the pair’s minimum order size so it can be sliced, and no larger than the window’s slice budget can carry with every child at or below the pair’s maximum order size — an oversized parent is rejected at creation instead of accepted into a shortfall it could never avoid.
- Execution window: exactly one of a duration or an end time. Duration runs from launch; an end time can be paired with an optional start time (default: now) to schedule the window in advance. Timestamps are RFC 3339 with a
Zsuffix (e.g.2026-08-01T10:00:00Z); a non-UTC offset is rejected rather than converted, and every timestamp the API and WebSocket return is UTC. - Limit price (optional): BUY children never execute above it, SELL children never below it. When the market trades through the limit, slices are skipped rather than executed at a worse price. Omitted, only the slippage band protects child orders.
- Slippage tolerance (optional): the per-slice protective band in basis points around the reference price — deliberately tighter than the standard market-order band, because a TWAP slice should never sweep deep into the book.
- Randomize (optional, default on): turned off, the schedule is exactly uniform.
- Execution style (optional, default
TAKER):TAKERfires a banded market child at every slot (Per-slice execution);PASSIVErests a post-only child at the touch and sweeps only what the slot deadline forces (Passive execution). - Trading mode: SPOT or MARGIN. Margin parents also take the usual margin context (margin account, risk bucket or margin mode, leverage) and support reduce-only, which child orders inherit and clamp to the live position. The risk bucket does not have to exist yet, and nothing moves at creation. Like a first-use market order, a missing (or closed) risk bucket, isolated or cross, is opened empty by the parent’s first slice. Every slice draws what it needs from the margin account’s free collateral as it reserves, so the whole parent’s margin is never earmarked ahead of need; a slice the account cannot cover (the mark has moved, or the collateral is committed elsewhere) is skipped and reported, never fatal to the parent. A reduce-only parent is checked against the live position at creation: it is refused with no position to reduce, on the position’s own side, or with a total larger than the position; a later slice with nothing left to reduce is skipped.
- Client TWAP ID (optional): a client-assigned idempotency key, unique per user and application. Submitting a duplicate returns HTTP 409 rather than creating a second parent, so a retried request cannot double an execution. A key stays reserved while its parent is live and for a reservation lifetime after it completes or is cancelled (30 days by default; operators can tune it); after that window it may be used again for a new parent.
TWAP slice schedule
At creation, the engine derives a slice count targeting roughly one slice every 5 seconds — 60 seconds for aPASSIVE parent, whose children have to rest long enough to earn queue position — capped at 2,880 slices (windows past 4 hours stretch the interval so the cap holds), and clamped so that every slice, even after size randomization, stays between the pair’s minimum and maximum order sizes. Slice sizes are floored to the pair’s quantity step, and the final slice is the exact remaining quantity (itself always a placeable size), so the plan always sums exactly to the requested quantity and can never over-allocate or leave an unplaceable tail. A window or quantity that cannot fit at least two slices is rejected at creation, as is a quantity too large for the window’s slice budget to carry.With randomization on, each slice’s size is jittered within ±30% and its fire time within ±30% of the base interval. The jitter is derived from a random seed minted at creation and recorded durably, so the schedule can be re-derived exactly for verification and audit while remaining unpredictable to anyone watching the book.TWAP per-slice execution
This section describes the defaultTAKER style; Passive execution covers PASSIVE. Each slice is placed as a market child order with immediate-or-cancel semantics — child orders execute immediately against the book inside their protective band and never rest. There is no upfront lock of the full parent notional. Instead, every slice individually passes the same admission checks as a standalone order at the moment it fires:- Spot slices check the available balance for that slice’s quantity.
- Margin slices pass normal per-slice margin admission against the risk bucket the parent snapshotted at creation (created or reopened by the slice that first needs it), topping it up from the margin account’s unallocated collateral when a slice needs more than the bucket holds. A bucket left flat with nothing resting between slices settles like any risk bucket: an isolated one folds back to the margin account, and the cross bucket returns its unused automatic draw and keeps the rest.
CANCEL_MAKER the owner’s resting order is cancelled — surfacing as an OrderCancelled with terminalReason SELF_TRADE_PREVENTION on the order channels, not as a skip on the parent — and the slice proceeds.A slice whose only in-band depth is the owner’s own order is mode-dependent. Under CANCEL_MAKER or SKIP the child sees no executable third-party depth — liquidity validation excludes your own resting orders — so it is refused before sequencing and the parent records an ordinary insufficient-liquidity skip; nothing of yours is cancelled. Under CANCEL_TAKER or CANCEL_BOTH the child is instead CANCELLED by the dispatch itself and carries no unfilled reason, so validation accepts it, it is sequenced, and the parent counts it as placed — with CANCEL_BOTH also cancelling the maker. And under CANCEL_TAKER or CANCEL_BOTH a child stopped at the first self-touch comes back CANCELLED; TWAP counts any non-REJECTED child as placed, so that slice increments slicesPlaced rather than counting as a skip. It is not necessarily a zero-fill slice either — fills made against third parties before the first self-touch stand and are recorded as that slice’s quantity; only a self-touch before any fill leaves it at zero. Monitoring that inferred self-trade from slice_skipped should read the order channels instead. Skipped and failed slices are counted on the parent and nothing more: there is no consecutive-failure kill, the schedule keeps attempting until the window ends, and the unexecuted quantity flows into catch-up.TWAP passive execution
SetexecutionStyle to PASSIVE and each slice is worked as a maker order instead of taken. At the start of a slot the engine rests a post-only LIMIT GTC child at the same-side touch — the best bid for a BUY, the best ask for a SELL — and leaves it there to earn queue position. As the touch moves, the child chases it with cancel/replace reprices, throttled to at most one attempt per second so a fast book cannot turn into a reprice storm. At the slot’s deadline, whatever the child has not earned is swept as a banded MARKET child, exactly like a TAKER slice.The engine does not post outside the parent’s limitPrice or its slippageToleranceBps band around the protective reference price — the oracle mark on a margin market when one is available, otherwise the book-derived reference described under market-order price protection; spot parents always use the book-derived chain. When the engine can resolve no reference at all — a one-sided book on a pair with no trade history — the band check is skipped rather than failing closed, and limitPrice becomes the only bound on the resting quote.The engine does not clamp to the bound — when the same-side touch lies outside it the engine refuses to quote there. With no child resting, nothing is posted: the slot stays open for the next attempt or the deadline sweep. With a child already resting, the reprice is refused before the cancel, so that child stays on the book at its old price — pulling it with nothing to put back is worse than leaving a stale quote. A bounded passive parent in a market that has run away may therefore still have its last in-bound child working at a price the market has left behind: read the parent’s slice counters and your open orders rather than assuming the book is clear, and stop it by cancelling the parent, since the child itself is not directly cancellable. If instead the passive target price would cross the book, the placement executes immediately as a banded taker.The 60-second passive cadence exists because a child repriced every few seconds never sits in the queue long enough to be filled. The 2,880-slice cap is unchanged, so a long window stretches its interval rather than adding slices. Both the cadence and the reprice throttle are operator-tunable.Cancellation is cancel-only. A PASSIVE parent may have one child resting when you cancel it. That child is removed in the same atomic step that terminalizes the parent: fills it already earned stand, the rest of the quantity is released, and nothing is left on the book. No final sweep is fired on a user cancel.Fees follow each fill’s own side. A passive maker fill pays the pair’s maker fee and carries no application fee, because the application fee is a taker-side fee. Deadline sweeps and crossing takes pay application taker fees like any other taker execution. On a market where the maker fee is a rebate, a parent that rests most of its quantity can execute at a better all-in cost than the same parent sweeping every slot.On the twap_orders WebSocket channel, a passive parent adds three reasons to the usual lifecycle: passive_child_placed (a post-only child now rests at the touch), child_repriced (the reprice step ran), and passive_fill (maker fills on the resting child, folded into the parent). Deadline sweeps and crossing takes still arrive as slice_placed, so a client that only tracks slice counters keeps working unchanged.Two of those reasons are less literal than they look. child_repriced also covers the cancel-only fallback: when the old child was cancelled and the repost did not happen, the same reason is emitted with nothing resting and the slot left open. The parent payload carries no active-child field, so resting-child status is not observable from this channel; follow the child on the ordinary order channels if you need it. And the maker fill that completes the parent arrives as completed, not passive_fill.TWAP catch-up
The parent tracks a linear execution target across the window. When execution falls behind — skipped slices, a halted market, or an engine pause — the next slice is sized up to cover the deficit, capped at 3× the base slice size and never above the pair’s maximum order size. One exception to the 3× cap: if completing a slice would leave a remainder smaller than the pair’s minimum order size, the slice takes the whole remainder instead, exceeding the cap by less than one minimum lot (against a remainder above the pair’s maximum it backs off to leave exactly one placeable lot for the next slot). A TWAP that ends short did so because the market would not fill inside the protective band, never because of the schedule’s own arithmetic. After a gap, the schedule fires one catch-up slice and jumps past all missed slots. If the planned schedule is exhausted with quantity remaining, the engine keeps attempting slices at the base cadence until the window closes.TWAP hard stop
The window end is absolute. When it is reached with quantity outstanding, the parent completes with the shortfall available from the structured fields — exactlytotalQuantity - executedQuantity — and summarized in the parent’s terminal reason (for example, ended with shortfall 1.5), which is human-readable text, not a parsing contract. Execution is never extended past the window to chase the remainder.TWAP lifecycle
A TWAP parent moves through four states:- PENDING: created; no slices have fired yet (every parent is created PENDING, and a future start time keeps it there until the window opens). A conditional parent also waits here — indefinitely — until its trigger fires.
- ACTIVE: the window is open and the schedule is executing.
- COMPLETED: terminal. Either the full quantity executed, or the window ended and the remainder is reported as shortfall in the terminal reason.
- CANCELLED: terminal. The owner cancelled the parent; quantity already executed stands.
conditionalExpiry, the parent goes CANCELLED with the terminal reason trigger expired, having executed nothing. A missing risk bucket is only opened by the first slice, so a parent that never sliced never opened one.There is no separate FAILED state — slice failures surface through the parent’s counters (slicesSkipped alongside slicesPlaced) and the WebSocket slice_skipped events. Monitor the counters, not the state, for degraded execution. Cancellation is atomic and immediate: a TAKER parent’s children never rest, so nothing is left to unwind, and a PASSIVE parent’s resting child is removed in the same step (cancel-only).The parent is the only control surface. Cancelling or replacing a slice child directly is rejected, and the message names the parent to act on instead: a child cancelled on its own would leave the parent running, and the parent would sweep that slot as a taker at its deadline. A cancel-all sweep reports the slice child as a single refused item naming its parent, and every other order in the sweep still cancels.Conditional TWAP: Price-Triggered Activation
SupplytriggerPrice together with an explicit triggerDirection (ABOVE or BELOW) and the parent is created PENDING, watching rather than executing.- Reach or cross.
ABOVEactivates when the reference price is at or above the trigger;BELOWwhen it is at or below. No exact print is required, so a gap straight through the level activates. The condition is evaluated on the engine’s own polling cadence rather than on every market tick, so a price that crosses and reverts entirely between two observations is not seen — there is no high/low watermark. - The window floats. A conditional parent takes
durationSecondsonly;startTimeandendTimeare rejected, because the window is[trigger instant, trigger instant + durationSeconds]. The slice count and interval are derived at creation, and the fire times re-anchor to the trigger instant when it arrives. Until then the create response’sfirstSliceAtandendTimeare provisional placeholders computed from[create, create + durationSeconds]; read the armed window back from the parent (startTime/endTime/triggeredAton the REST read model,startAt/endAton thetwap_ordersWebSocket payload) rather than scheduling on them. - Activation is one-way. Once the parent is trading the trigger is never re-evaluated, and
triggeredAtrecords when it fired. - Which price. Margin markets arm against the oracle mark, and a create is rejected while the market has not published one yet — a rejected create moves nothing, so retrying once a mark exists is cheap. Once the parent is waiting, activation falls back to the venue reference price (a book-derived median, then the median of the market’s last five trades) when the mark is unavailable. Spot markets use the venue reference price throughout. On a one-sided spot book that means a move through the trigger is seen from its third trade at the new level, not its first.
- A trigger already met is refused. Creating a parent whose condition is already satisfied returns a 400 rather than starting immediately — omit
triggerPriceif immediate execution is what you want. conditionalExpirybounds the wait. An optional RFC 3339 UTC deadline (Zsuffix only). If the trigger has not fired by then the parent is CANCELLED with the terminal reasontrigger expired. It defaults to, and is capped at, the maximum window (30 days) from creation, and fires on the clock alone, so a halted or unpriceable market cannot leave a parent waiting past its deadline.
TWAP monitoring
The parent also reports executed notional, a volume-weighted average fill price, and the terminal reason once finished, and parents can be fetched individually or listed with state and market filters. Parents are not rows of the ordinary order listing (GET /api/v1/orders), which carries book orders only; read them from the dedicated TWAP list (GET /api/v1/orders/twap), which filters by state and market, or fetch one by ID.For live updates, the WebSocket API carries a dedicated authenticated twap_orders channel (optionally filtered to one market with twap_orders:{tradingPairId}). It delivers the full parent snapshot on every mutation — creation, each placed or skipped slice, cancellation, completion, for a PASSIVE parent passive_child_placed, child_repriced and passive_fill, and for a conditional parent triggered (the trigger fired and the window armed) and trigger_expired (the deadline passed with the trigger unfired) — tagged with the reason for the update. The formatted detail for an expiry (trigger expired) rides terminalReason, not the reason field. Only the owner receives events.Each child order is a regular order — fills flow through the standard authenticated order channels, and child orders record the parent’s ID in their parentOrderId field. The same field rides every order frame of a child and its orders snapshot row, so a parent’s children can be tied together from the socket alone. Children are not rows of the ordinary order listing either: they belong to their parent.To read one parent’s slices in one place, list them with sdk.trading.listTwapOrderSlices (GET /api/v1/orders/twap/{twapOrderId}/slices; gRPC OrdersService.ListTwapOrderSlices). Each slice comes back in the ordinary order shape, resting and finished alike, oldest first (orderBy=DESC for newest first), in cursor pages of up to 1000. A PASSIVE parent’s reprices and deadline sweeps are child orders too, so it can have more slices than slicesPlaced. Like the parent, the slice list is owner-private and rejects delegated-agent sessions.TWAP execution quality (TCA)
Once a parent is COMPLETED or CANCELLED, a transaction cost analysis report compares the realized average fill price (gross of fees) with two references over the parent’s active window, from its start to its actual terminal time (never the planned end — a cancelled parent stopped trading at cancellation): the arrival price, the reference price as the window opened, and the window-TWAP benchmark, the average reference price across the window’s sealed minute buckets. Both references come from a single price series named in the report — the 1-minute risk mark for marked pairs, falling back to 1-minute OHLCV closes — and both scores are signed basis points where positive always means the execution beat the reference: a BUY that filled below it, a SELL that filled above it.When nothing executed, no reference series adequately covered the window, or the window was too short to seal a single minute bucket, the affected fields are omitted rather than filled. The structural fields — quantities executed and short, the window bounds, market and side — are always present. Fetch the report withsdk.trading.getTwapOrderTca (GET /api/v1/orders/twap/{twapOrderId}/tca; gRPC OrdersService.GetTwapOrderTca); it is owner-private and rejects delegated-agent sessions.For order payloads and order management behavior, use Order Management.Self-trade prevention modes
How self-trade prevention resolves
- The incoming (taker) order’s mode governs the whole match. Modes carried by resting orders are never consulted — the same convention as every major venue.
- “Your own” means your wallet family: every account under your wallet address, across applications, including every margin sub-account you open (they all belong to your user). Two accounts under the same wallet address cannot trade with each other. A master-account sub-account linked under a different wallet address is its own family.
- Resolution order: the order’s own
selfTradePreventionModefield if present → your wallet’s configured default → the platform default (CANCEL_MAKER). - Orders cancelled by STP are announced like any other cancellation, with
terminalReason: SELF_TRADE_PREVENTIONon the WebSocket event and on later order reads; the event also carriesstpCounterpartyOrderIdidentifying the order on the other side, so the cause is always attributable. - An STP outcome is a
CANCELLEDorder even when nothing filled — deliberately distinct from an accepted zero-fillIOC/FOK, which isREJECTEDfor want of qualifying liquidity — for aFOKthat means depth that cannot cover the full quantity, whose candidate fills are then discarded, not necessarily an empty book. (A plain zero-fillMARKETsubmit never reaches either outcome: it is refused before acceptance and emits no order event.) Status alone separates “my own prevention ended this” from “there was not enough qualifying liquidity”, with no message parsing. - A swept spot maker also receives the movements-channel
user_movementframe for its lock release, exactly as a user-initiated cancel produces. A swept margin maker receives none: its reserve release moves nouser_balancesleg — and a user cancel of a margin order emits none either, so the two stay consistent. Do not wait on a movements frame for a margin order.
Setting the self-trade prevention mode
- Per order: pass
selfTradePreventionModeon create, replace, or batch items. A replacement is a new order — restate the field to keep it. - Per wallet:
GET/PUT /api/v1/accounts/self-trade-preventionreads and sets your wallet’s default (applies to every order from your wallet family that names no per-order mode).
Self-trade prevention edge cases
- Fill-or-kill: under
CANCEL_TAKERorSKIP, any self-cross in the fill path cancels the whole FOK; underCANCEL_MAKER, the order fills or kills against third-party depth, and your makers in its fill path cancel only if it fills; aFOK + CANCEL_BOTHorder with a self-cross in its fill path is rejected at placement withSELF_TRADE_NOT_ALLOWED— all-or-none contradicts the partial outcomesCANCEL_BOTHproduces. - A killed
FOKleaves your makers resting. UnderCANCEL_MAKERthe sufficiency check runs on third-party depth only — your own orders are never counted as available liquidity. If that depth cannot fill the order theFOKis rejected and nothing else changes: your makers in its fill path are cancelled only when it fills. (FOKis aLIMIT-only time in force — aMARKETorder carrying anytimeInForceis rejected outright.) - A rejected taker does not mean your quote was swept. The cancellation is decided during simulation and commits only if the order is sequenced. A zero-fill
MARKETorder whose only in-band depth was your own resting order is rejected for insufficient liquidity before the sequence is allocated, so the simulated cancellation is discarded and your resting order survives. Reconcile against the order stream rather than inferring from the taker’s result. - Post-only orders reject with
POST_ONLY_WOULD_CROSSbefore STP is ever consulted, whoever owns the crossing liquidity. - Liquidations and auto-deleveraging apply no self-trade prevention at all, whatever your configured mode. A liquidation slice matches your own resting orders — from your other risk buckets and sub-accounts — in price order exactly as it matches anyone else’s, counts them as available depth, and never cancels them for crossing. ADL does not trade against the book: it closes opposing positions directly at the pinned price, and a position your other risk buckets hold is as eligible as anyone else’s. It never fills your resting orders, but when it fully closes a position, that risk bucket’s resting reduce-only orders on the pair are cancelled with terminal reason
AUTO_DELEVERAGING. User configuration can never impede a forced close. (The liquidated risk bucket’s own resting orders are cancelled before it is liquidated, with terminal reasonLIQUIDATION.)

