Price Impact

Price impact mechanism simulates an order book by adding a slippage percentage to each order that is proportional to the skew and position size.

Market Impact Mechanism

The market impact model adjusts execution prices based on the current market skew and the size of the incoming order. In this approach traders pay premiums when expanding market imbalance and receive discounts when helping to balance it. The system ensures that larger directional positions face progressively higher costs, naturally limiting extreme skew accumulation.

How It Works

When a trader places an order, the oracle price is adjusted based on both the current market skew and the impact of their specific trade. The execution price is calculated using the formula:

pex=por×(1+InitialPremium+FinalPremium2)p_{ex} = p_{or} \times \left( 1 + \frac{InitialPremium + FinalPremium}{2} \right)

where the premiums are determined by the market skew before and after the trade:

InitialPremium=InitialSkewSkewScaleInitialPremium = \frac{InitialSkew}{SkewScale}
FinalPremium=FinalSkewSkewScaleFinalPremium = \frac{FinalSkew}{SkewScale}

The initial skew represents the current market imbalance, while the final skew shows the market state after the trade is executed. For position opening, FinalSkew=InitialSkew+qFinalSkew = InitialSkew + q, and for position closing, FinalSkew=InitialSkewqFinalSkew = InitialSkew - q, where qq is the position size.

The parameter skewSclae is calibtarted to align price slippage in perp trading with that of underlying asset spot trading on external markets under balanced market conditions (zero skew). This ensures appealing trading execution when the market exhibits no directional bias.

Price Impact Examples

Consider an ETH perpetual market with a SkewScale of 1,000,000 ETH and current oracle price of $2,000:

Expanding Skew Example: The market currently has a +50 ETH skew (equivalent to $100,000 at current prices). Alice wants to open a $10,000 long position (5 ETH), further expanding the skew.

  • Initial skew: 50 ETH

  • Final skew: 50+5=5550 + 5 = 55 ETH

  • Initial premium: 50÷1,000,000=0.00550 \div 1,000,000 = 0.005%

  • Final premium: 55÷1,000,000=0.005555 \div 1,000,000 = 0.0055%

  • Average premium: (0.005%+0.0055%)÷2=0.00525%(0.005 \% + 0.0055 \%) \div 2 = 0.00525 \%

  • Execution price:

Reducing Skew Example: Bob wants to open a $10,000 short position (5 ETH), helping to balance the market.

  • Initial skew: 50 ETH

  • Final skew: 505=4550 - 5 = 45 ETH

  • Initial premium: 50÷1,000,000=0.00550 \div 1,000,000 = 0.005%

  • Final premium: 45÷1,000,000=0.004545 \div 1,000,000 = 0.0045%

  • Average premium: (0.005%+0.0045%)÷2=0.00475%(0.005 \% + 0.0045 \%) \div 2 = 0.00475 \%

  • Execution price:

In this example, Alice pays a small premium of $0.105 per ETH for expanding the skew, while Bob pays a slightly smaller premium of $0.095 per ETH for helping to balance the market. The impact is minimal for small positions relative to the SkewScale but demonstrates how the mechanism rewards market-balancing behavior.

Market Impact Role

The market impact model provides several key benefits to the ecosystem:

  1. Skew Management: By making skew expansion more expensive and skew reduction cheaper, the system naturally encourages balanced markets.

  2. LP Protection: Liquidity providers face reduced directional risk as extreme skew positions become economically prohibitive.

  3. Fair Pricing: Traders who help balance the market are rewarded with better execution prices, while those who increase risk pay appropriate premiums.

  4. Manipulation Resistance: Large coordinated attempts to create extreme skew face increasing costs, making price manipulation attacks economically unfeasible.

This market impact mechanism works in conjunction with the funding rate system to create multiple layers of incentives that promote market stability and protect all participants from excessive directional exposure.

Last updated