Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-seo-audit-1777280932.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Trade Above Threshold
This programmatic order type continuously monitors token balances and automatically triggers sell orders once a threshold is reached. The mechanism sells the entire current balance at the current market price.Key Parameters
| Parameter | Description |
|---|---|
sellToken / buyToken | Token pair for the exchange |
receiver | Destination address for purchased tokens |
validityBucketSeconds | Time window determining order freshness (recommended: 300-3600 seconds) |
threshold | Balance minimum triggering execution |
appData | Associated metadata hash |
Execution Behavior
When triggered, the order sells your complete balance — not just the excess above the threshold. The system usesbuyAmount = 1 to create a market order without price protection.
While there’s no explicit limit price, solvers are incentivized to maximize your output to win the batch.
Practical Applications
- Automated yield reward conversions
- Dollar-cost averaging out of positions
- Protocol fee collection and conversion
- Token stream liquidation