Skip to content

Pre-trade checks

The checks every order passes, in order, before it can rest or match, and the launch limits they enforce.

On this page

Every order passes a fixed sequence of checks before it can rest or match. The first check that fails rejects the order with that reason, and a rejected order never touches your balances.

  • A check that can't be evaluated, such as one missing a price, rejects the order.
  • ATLAS never changes your price, size or flags to make an order pass, beyond the caps on market, closing and reduce-only orders below.

The sequence

  1. Key and account: signed by an allowed instruction key of a tradable account, with a free client order id.
  2. Order shape: the market, type, time in force and flags are valid, a post-only order wouldn't trade on arrival, and price and size fit the tick, lot, minimum and maximum.
  3. Margin mode: allowed on the market and matching your mode there.
  4. Market access: a limited market accepts only its listed accounts.
  5. Price: the price collar, the close bound and the reduce-only cap.
  6. Caps: isolated positions, open interest, open orders and position size.
  7. Margin or cash: initial margin covers a perp order, or your balance covers a spot order.
  8. Self-trade prevention: never rejects. Your own resting order that yours would cross is cancelled.

Price collar

A limit order is rejected if its price is more than the market's aggressive collar through the live mark, or more than its passive collar away on the resting side. A market order is instead capped at the aggressive edge. Widths are in atlas.getSymbols.

Closing orders and the bankruptcy price

An order that reduces a perp position can't be priced past the bankruptcy price of its margin unit, net of fees. A limit close past it is rejected. A market close is capped at it, and a GTC leftover rests there. The bound is checked once, on acceptance.

Account risk

CheckRejects when
Isolated positionsThe order would open more isolated positions than your account limit
Open-interest capYour order, filled in full at the mark, would push the market's open interest past its cap. Reduce-only orders and liquidation are exempt.
Open ordersA GTC order would pass your resting-order limits
Position limitYour worst-case notional on the market would pass its position cap
Initial marginYour worst-case notional needs more IM than you have
Spot cashA spot buy lacks the quote asset plus fee, or a sell lacks the asset. See Spot markets.

Leverage comes from the market's tier ladder, not a setting. On cross, your available margin must stay at 0 or more with the order resting. On isolated, the position's own cash must cover it, so add margin first.

Launch limits

Tick, lot and order limits are on Perpetual markets and Spot markets. Position caps run from 10,000,000 USDT on BTC down on thinner markets, per sub-account, which also counts its own orders. A lowered limit cancels no order, but blocks adding until you are back under.

Resting ordersStandardHigh
On one market250500
Across all markets1,0003,000

Accounts start on Standard. Higher volume or staking tiers get High. If you supply at least 2.5% of a market's 14-day maker volume, your limit on that market rises to 500. See Rate limits.

Which checks apply

OrderMargin checkOther checks
New order that could add exposureYesYes
Reduce-only (Close, a triggered TP/SL)No. Cut to your position size, with older resting orders on that side trimmed to fit.State, collar, tick, size and close bound, and open-order limits for a GTC. A full close skips the lot and minimum. Rejected during a liquidation.
ReplaceYes, without the replaced order. Rests as GTC at the back of the queue.Yes
Liquidation sliceNoAll except caps, minimum notional and maximum size
Cancel, mass cancel, dead-man switchNoThe signing key, and for a cancel, that the unit isn't in liquidation

A fast move after the fill can still take you to liquidation.