Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Position & Order Limits

The ceilings an order has to clear before it reaches the book: a per-market position cap, order size bounds, price bands relative to the oracle, and price protection on market orders.

Position limit

The maximum position you can hold in a market, in base asset units (BTC, ETH, …). On submission TxFlow checks:

|resulting position size| ≤ position limit

where resulting position size = current position ± order size, depending on direction.

ScenarioCheck
Adding to an existing position (same direction)`
Reducing or closing (opposite direction)always allowed — it reduces exposure
Reversing (flipping long ↔ short)`

Order size limits

ParameterDescriptionExample
Minimum order sizesmallest quantity allowed0.001 BTC
Maximum market order sizelargest single market order50 BTC
Maximum limit order sizelargest single limit order100 BTC

Price limits on limit orders

Limit prices are bounded relative to the oracle price, so a fat-fingered or manipulative order cannot rest far away from fair value.

Buy (long) limit orders
LimitFormulaPurpose
Price caporacle price × (1 + max deviation %)prevent buying far above fair value
Price floororacle price × 0.2prevent unrealistic lowball bids
Sell (short) limit orders
LimitFormulaPurpose
Price caporacle price × 5prevent unrealistic high asks
Price floororacle price × (1 − max deviation %)prevent selling far below fair value

Dynamic price bands

In actively traded markets TxFlow tightens the bands using recent premium:

price cap (buy)    = min[ max(oracle, oracle × (1 + Y) + average premium), oracle × (1 + Z) ]
price floor (sell) = min[ max(oracle, oracle × (1 − Y) + average premium), oracle × (1 + Z) ]
  • Y — short-term deviation allowance (e.g. 2%)
  • Z — maximum deviation cap (e.g. 5%)
  • average premium — 2-minute moving average of mid price − oracle price

Price protection on market orders

A market order is bounded by two prices, and matching stops at whichever it hits first:

BoundMarket buyMarket sell
Protection price p (the order's own price)stops before asks above pstops before bids below p
Oracle price band (pushed by the oracle)stops before asks above buy_maxstops before bids below sell_min
  • Matching walks the book until the next level is beyond p or the band; the unfilled remainder is cancelled, not queued. This is why a large market order in a thin book can come back partially filled.
  • There is no separate fixed ±5% check — p and the oracle band are the only price bounds.
  • If p is set wide and the book is thin, a market order can fill far from the oracle price, as far as the band edge allows.

Related

PageCovers
Margin & Leveragemaximum leverage by asset and position size
Orders & Time-in-Forceorder types and matching mechanics
Liquidationliquidation mechanics
Fees & Discountstrading and funding fees