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
- Key and account: signed by an allowed instruction key of a tradable account, with a free client order id.
- 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.
- Margin mode: allowed on the market and matching your mode there.
- Market access: a limited market accepts only its listed accounts.
- Price: the price collar, the close bound and the reduce-only cap.
- Caps: isolated positions, open interest, open orders and position size.
- Margin or cash: initial margin covers a perp order, or your balance covers a spot order.
- 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
| Check | Rejects when |
|---|---|
| Isolated positions | The order would open more isolated positions than your account limit |
| Open-interest cap | Your 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 orders | A GTC order would pass your resting-order limits |
| Position limit | Your worst-case notional on the market would pass its position cap |
| Initial margin | Your worst-case notional needs more IM than you have |
| Spot cash | A 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 orders | Standard | High |
|---|---|---|
| On one market | 250 | 500 |
| Across all markets | 1,000 | 3,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
| Order | Margin check | Other checks |
|---|---|---|
| New order that could add exposure | Yes | Yes |
| 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. |
| Replace | Yes, without the replaced order. Rests as GTC at the back of the queue. | Yes |
| Liquidation slice | No | All except caps, minimum notional and maximum size |
| Cancel, mass cancel, dead-man switch | No | The 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.