stacked markets

Stacked Markets

How a VWAP order works on Stacked Markets

Published May 21, 2026

How a VWAP order works on Stacked Markets cover image
How a VWAP order works on Stacked Markets
Execution Mechanics

How a VWAP order works on Stacked Markets

VWAP — volume-weighted average price — is both a benchmark and an execution strategy. Instead of hitting the market with a single large order, you slice it into smaller child orders timed to match natural volume patterns. The result is a filled position whose average entry approximates the market's VWAP over the window, with meaningfully less market impact. This article covers the mechanics end to end.

What VWAP means

VWAP is the ratio of total notional value traded to total volume traded over a given period. For each trade, multiply price by volume, sum those products, then divide by total volume. The result is a single price that reflects where most actual trading activity occurred — weighted by size.

The VWAP formula
VWAP = Σ(Price × Volume) / Σ(Volume)
Multiply price by volume for each trade. Sum those products. Divide by total volume traded over the period.

Traders use VWAP two ways. First, as a benchmark: did you buy below VWAP or above it? Buying below VWAP means you got better-than-average execution for the period. Second, as an execution strategy: slice a large parent order into smaller child orders timed to match natural volume patterns, aiming to fill the full position at or near the VWAP benchmark. The second use is the more technically demanding one — and what this article covers.

Why VWAP matters on a CLOB

A central limit order book matches buyers and sellers at discrete price levels. Every resting order has a price and a size. Send a large market order and it eats through multiple levels in sequence, pushing your fill price progressively worse as it consumes available liquidity. That slippage is not a fee — it is a structural cost that scales with order size relative to available depth.

VWAP execution addresses this directly. Breaking a large parent order into smaller child orders and distributing them over time reduces instantaneous impact on the book. Each child order is smaller relative to available depth, so it fills closer to the mid. The aggregate fill across all child orders converges toward the VWAP benchmark.

On an AMM, there is no order book to read, no depth to parse, and no meaningful VWAP benchmark to target. The CLOB structure is a prerequisite. Hyperliquid's on-chain CLOB provides the transparent, verifiable depth that makes VWAP-style execution meaningful for orders routed through Stacked Markets.

How VWAP execution works algorithmically

Slicing and volume weighting

A VWAP algorithm starts with a parent order: total size, direction, and a time window. It divides that window into intervals — typically one-minute or five-minute buckets — and calculates a target participation rate for each interval based on expected volume.

Illustrative intraday volume profile — child order sizing follows this curve
00:00
02:00
04:00
06:00
08:00
10:00
12:00
14:00
16:00
18:00
20:00
22:00
Child orders sized larger in high-volume intervals (bright) — smaller in thin ones (dim). Crypto perps show elevated activity around major market opens, macro releases, and funding rate movements.

At each interval, the algorithm sends a child order sized to match the target participation rate. If the market moves against you, some implementations pause or reduce child order size to avoid chasing. Others hold to schedule regardless. That design choice reflects a trade-off between benchmark tracking and adverse selection risk.

VWAP vs TWAP: the key difference

TWAP distributes equal-sized slices evenly across the window, regardless of volume. Easier to implement, fully predictable. The weakness is that it ignores liquidity — equal-sized slices sent into thin intervals carry higher market impact per unit than slices sent into deep ones. VWAP solves that by concentrating size where liquidity is naturally available.

TWAP
VWAP
Equal-sized child orders at equal intervals
Child orders weighted by expected volume per interval
Ignores liquidity — thin intervals get the same size as deep ones
Concentrates size in high-liquidity intervals, reduces it in thin ones
Simple to implement, fully predictable
Lower market impact when volume forecast is accurate
No model risk — no volume forecast required
Requires a volume forecast — introduces model risk if forecast deviates
Practical rule of thumb: TWAP is the simpler default when you want predictable, time-distributed execution. VWAP is the right tool when you have a view on intraday volume patterns and want to minimize market impact across a longer entry or exit window.

How the on-chain CLOB enables VWAP-style execution

Stacked Markets routes all orders through Hyperliquid's on-chain CLOB. That routing has specific properties that matter for VWAP execution.

Transparent depth
The live order book shows real resting orders at real price levels. No hidden liquidity pool, no price oracle interpolating between synthetic levels. What you see is what your order interacts with.
IOC slippage-bounded limits
Each child order has a defined worst-case fill price. If the market moves beyond that bound before the child fills, it cancels rather than chasing. You set the tolerance; the order respects it.
On-chain settlement
Every child order's fill is verifiable on-chain. Your VWAP benchmark is the arithmetic result of on-chain fills you can audit directly — not a number a broker calculates and reports back.
Keyboard-first workflows
When manually managing a VWAP schedule, responsiveness between decision and order submission matters. Keyboard-first workflows reduce that latency without multiple confirmation dialogs per child order.

Practical use cases on Stacked Markets

  • 1
    Building a large position without moving the market If current book depth does not support a single-fill entry at acceptable slippage, a VWAP schedule lets you accumulate over hours rather than minutes. You participate alongside natural volume rather than announcing your full size at once.
  • 2
    Exiting a position during a trending move Closing a large position into a running move requires care. Dumping full size into a rally or selloff can accelerate the reversal against you. A VWAP schedule distributes your exit across the move, capturing more of the trend while reducing impact.
  • 3
    Benchmarking your own execution quality Calculate the session VWAP after the fact and compare it to your average fill. Consistent fills below VWAP on buys and above VWAP on sells is a measurable edge. Stacked Markets' on-chain fill data makes that calculation straightforward.
  • 4
    Reducing adverse selection on thinner markets Smaller perp markets on Hyperliquid's CLOB can have meaningful spread and limited top-of-book depth. Spreading a position entry across multiple intervals, each sized to a fraction of available depth, reduces the probability that a single large order triggers a cascade of cancellations.

Risks and limitations

VWAP execution is not free of risk. The failure modes matter as much as the mechanics.

  • Forecast
    Volume forecast error. If the historical volume profile does not match actual intraday volume, child orders will be mis-timed. You may concentrate size in thin intervals and underparticipate in deep ones — producing worse execution than a simple TWAP would have.
  • Trend
    Trend risk during execution. VWAP assumes indifference to short-term price movement within the window. If the market moves strongly against your direction during the schedule, later child orders fill at progressively worse prices. VWAP is not a hedge against directional risk during execution.
  • Front-run
    Predictability and front-running. A mechanical schedule is readable. Sophisticated participants who detect a pattern of same-size, same-interval orders can trade ahead of it. Introducing randomness in child order size and timing reduces this risk but complicates benchmark tracking.
  • Cancels
    Cancellation and partial fills. Child orders routed as IOC slippage-bounded limits cancel if they cannot fill within the bound. In fast-moving markets, this can leave your schedule behind. The remaining size must be addressed separately.
  • Execution
    Custody and execution risk are yours. Stacked Markets holds nothing. The risk management decisions around schedule design, slippage bounds, and timing belong entirely to you. There is no counterparty absorbing your execution errors.

The non-custodial angle: who signs each child order

This is where Stacked Markets differs structurally from any CEX-based VWAP tool.

CEX VWAP (e.g. Bybit)
Stacked Markets
Exchange holds your collateral You deposit into the exchange's custody. Child orders execute against your internal balance. You never sign individual orders — you trust the exchange's system.
Your wallet holds your collateral Stacked Markets holds nothing. Each child order requires a wallet approval with a plain-language signing prompt before execution. All fills verifiable on-chain.
Session-level authorisation Authenticate once. The algo fires orders without additional approval. No visibility into what happens between your instruction and the fill.
Delegated signing available Optional: authorise a scoped, revocable signing key to submit orders without exposing your primary wallet key. Collateral stays in your wallet throughout.
Frontend independence applies here too. Because Hyperliquid settles all trades on-chain, every fill is verifiable regardless of which key submitted the order. Vault-style automation with hard risk caps and drawdown halts is a planned feature — not yet live. The same custody model will apply when it ships: your keys, your collateral, orders you control.

FAQs

What is a VWAP order?
A parent order broken into smaller child orders and distributed over a time window, with each child order sized to match the market's expected volume at that interval. The goal is to fill the full position at a price close to the volume-weighted average price of the market over that period.
How is VWAP different from TWAP?
TWAP distributes child orders in equal sizes at equal time intervals. VWAP weights child order sizes by expected volume, concentrating size in high-volume intervals and reducing it in thin ones. VWAP generally produces lower market impact when the volume forecast is accurate. TWAP is simpler and fully predictable but ignores liquidity patterns.
Why does the CLOB matter for VWAP execution?
A central limit order book gives you transparent, real-time depth at discrete price levels. You can read available liquidity before sizing a child order. On an AMM, you are pricing against a formula, not a book — VWAP execution is not meaningful there. The CLOB structure is a prerequisite.
Does Stacked Markets hold my collateral when running a VWAP schedule?
No. Stacked Markets holds nothing at any point. Your collateral stays in your wallet. Hyperliquid handles matching, margin, and settlement on-chain. Each child order requires a wallet approval, and all fills are verifiable on-chain.
What happens if a child order does not fill within the slippage bound?
Orders on Stacked Markets are routed as IOC-style slippage-bounded limits. If the market moves beyond the slippage bound before the child order fills, the order cancels. The remaining size stays unexecuted and must be addressed in the next interval or separately. This protects you from chasing a fast-moving market but can leave your schedule behind in volatile conditions.
Is automated VWAP execution available on Stacked Markets right now?
Vault-style automation is a planned feature, not yet live. Manual VWAP execution — where you send child orders yourself at intervals — is available through the current interface. Delegated signing support is available for traders who want to script order submission without exposing their primary wallet key.
How do I verify my VWAP benchmark after execution?
Hyperliquid settles all trades on-chain, so your fill data is verifiable on-chain. Calculate your actual average fill price across all child orders and compare it to the market's VWAP over the same window using on-chain trade data. No broker calculates this number for you — the arithmetic is yours to run.

Test VWAP execution on testnet

VWAP execution is a discipline, not a feature. Your keys stay yours throughout. Hyperliquid handles the matching. You handle the execution decisions.

Try the testnet →
testnet.stackedmarkets.com — no real funds required

All trading involves risk.

Perpetual futures use leverage. You can lose all collateral. Stackedmarkets does not custody funds or hold your main wallet keys. We do not provide investment advice. Nothing here is an offer to buy or sell. Trade only with capital you can afford to lose. Always verify testnet vs mainnet in the product chrome.

Stacked Markets is a decentralized perpetual futures trading platform. All trading activities are conducted on-chain and are subject to blockchain network conditions and smart contract risks.

Trading perpetual futures involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. The high degree of leverage can work against you as well as for you. Before deciding to trade, you should carefully consider your investment objectives, level of experience, and risk appetite.

The information provided on this platform does not constitute investment advice, financial advice, trading advice, or any other sort of advice, and you should not treat any of the platform's content as such.

stacked markets

© 2026 Stacked Markets. All rights reserved.

How VWAP Orders Work on Stacked Markets