Position and Order Limit

Position Limit

Position Limit defines the maximum position size you can hold for a given market (in base asset units, e.g., BTC or ETH).

How It Works

When you submit an order, TxFlow checks:

|Resulting Position Size| ≤ Position Limit

Where:

  • Resulting Position Size = Current Position ± Order Size (depending on direction)

Scenario
Checks

Adding to existing position (same direction)

|Resulting Position Size| ≤ Position Limit

Reducing/closing position (opposite direction)

Always allowed (reduces exposure)

Reversing position (flipping from long to short or vice versa)

|Resulting Position Size| ≤ Position Limit

Order Size Limits

Parameter
Description
Example Value

Minimum Order Size

Smallest order quantity allowed

0.001 BTC

Minimum Notional Value

Minimum USD value per order

$10 USD

Maximum Market Order Size

Largest single market order

50 BTC

Maximum Limit Order Size

Largest single limit order

100 BTC

💡 Tip: Orders below minimum size or notional value will be rejected immediately.

Price Limits (Limit Orders)

To prevent erroneous or manipulative orders, TxFlow restricts limit order prices based on the Oracle Price.

Buy (Long) Limit Orders

Limit
Formula
Purpose

Price Cap

Oracle Price × (1 + Max Deviation %)

Prevent buying far above fair value

Price Floor

Oracle Price × 0.2

Prevent unrealistic lowball bids

Sell (Short) Limit Orders

Limit
Formula
Purpose

Price Cap

Oracle Price × 5

Prevent unrealistic high asks

Price Floor

Oracle Price × (1 - Max Deviation %)

Prevent selling far below fair value

Dynamic Price Bands (Advanced)

For actively traded markets, TxFlow calculates tighter price bands based on recent premium:

Price Cap (Buy) = Min[Max(Oracle Price, Oracle Price * (1 + Y) + Average premium), Oracle Price * (1 + Z)]

Price Floor (Sell) = Min[Max(Oracle Price, Oracle Price * (1 - Y) + Average premium), Oracle Price * (1 + Z)]

Where:

  • 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)

Slippage Protection (Market Orders)

Market orders are protected by a slippage tolerance to prevent execution at unfavorable prices.

Current Slippage Tolerance: 5% (not user-configurable)

How It Works

Order Type
Acceptance Condition
Action if Exceeded

Market BUY

Execution Price ≤ Oracle Price × 1.05

Partially fill valid portion; cancel rest

Market SELL

Execution Price ≥ Oracle Price × 0.95

Partially fill valid portion; cancel rest

Pages
Description

Maximum leverage by asset and position size

Market, Limit, and advanced orders and matching mechanics

Detailed liquidation mechanics

Trading and funding fees

Last updated