Skip to main content

Order Types Overview

ComposableCoW offers a conditional order framework with five primary order types.

Core Order Types

TWAP Orders

Divide large trades into scheduled portions over time, helping traders minimize price impact and achieve better execution prices on low-liquidity pairs.

Stop Loss Orders

Use oracle-based price triggers to automatically sell when token prices fall below specified thresholds, supporting risk management and portfolio protection.

Good After Time Orders

Delay execution until a designated timestamp, with optional price validation through Milkman checkers for time-locked strategies.

Perpetual Stable Swap

Automatically rebalances between two stablecoins by trading whichever token has higher balance, supporting liquidity provision with continuous rebalancing.

Trade Above Threshold

Executes sales when token balances exceed specified limits, useful for yield harvesting and threshold-based portfolio management.

Technical Implementation

All order types inherit from BaseConditionalOrder and implement a getTradeableOrder function accepting:
  • Owner address
  • Sender address
  • Context hash
  • Static parameters
  • Optional off-chain data

Error States

The framework supports three error states:
ErrorDescription
OrderNotValidConditions not met
PollTryNextBlockTemporary invalidity
PollTryAtEpochFuture validity date

Characteristics Comparison

Order TypeRepeatableOracle RequiredPartial Fill
TWAPNoNoNo
Stop LossNoYesOptional
Good After TimeNoNoOptional
Perpetual Stable SwapYesNoNo
Trade Above ThresholdYesNoNo
Last modified on March 4, 2026