VWAP (Volume Weighted Average Price) is a price protection mechanism for market orders that ensures your average execution price stays within acceptable limits, even if individual fills occur at different price levels.
Market orders use two types of price protection:
✅ Better Execution: Can fill orders even when some price levels exceed your slippage tolerance, as long as the average price is acceptable
✅ Protection: Prevents unexpected high-cost fills while maintaining order completion
✅ Flexibility: Works automatically with your existing max slippage settings
Ask Price * (1 + Your Max Slippage)$20000 and slippage is 0.1% then VWAP is $20020Bid Price * (1 + Your Max Slippage)/v1/markets endpoint max_slippage fieldNote: If BBO prices are unavailable, the system falls back to mark price for VWAP calculation.
Order: Buy 50 units, Terminal: $20060, VWAP: $20000
Order Book:
Result: 30 units filled at average price of $19,975 (within VWAP limit)
Order: Buy 50 units, Terminal: $20150, VWAP: $20000
Order Book:
Result: 25 units filled at exactly $20,000 average (VWAP limit maintained)
Deprecated: max_slippage_price field
New: vwap_price field
The VWAP feature replaces the previous max_slippage_price field with vwap_price for market orders. This change provides more sophisticated price protection by allowing partial fills while maintaining average price limits.
Migration Notes:
max_slippage_price is no longer used for market ordersvwap_price instead when placing market orders via APIvwap_price is omitted, it will be automatically calculated (same behavior as before)TARGET_STRATEGY_VWAP flag is automatically set for market orders⚠️ Terminal Price Always Enforced: Even with VWAP protection, no single fill can exceed the terminal price limit
⚠️ BBO Dependency: VWAP calculation relies on best bid/offer prices. If unavailable, mark price is used as fallback
⚠️ Partial Fills: To maintain VWAP limits, orders may be partially filled at certain price levels
VWAP price protection gives you two layers of safety:
Together, they ensure your market orders execute efficiently while staying within your price tolerance limits.