# Buy Filters (/task-settings/buy-filters)

Rules a trigger must pass before your task buys, from a buy cap to market cap, buy size, launch names and mayhem mode.

Buy filters decide which triggers your task buys. A trigger (a target's buy, or a whitelisted developer's launch)
must pass **every** filter you set.

## How filters work
- **Empty filters don't apply.** With none set, the task buys every trigger except [mayhem tokens](#mayhem).
- **Skips are free and never pause the task:** no transaction, no fee, and exits keep running.
- **Can't measure, won't buy.** If Crossbow can't measure what a filter needs (say, a token's value), the task
  skips; tasks without that filter still buy.
- **Checked twice if needed.** Undecided when it sees the trigger, Crossbow decides once the trigger lands, with
  exact amounts.
- **See your skips:** turn on **Filtered buys** for an alert card per skip, with its reason
  ([Missed-buy alerts](/alerts/missed-buys)).

The Normal view shows **Max buys**, **Market cap** and (copy tasks) **First buy only**;
**Advanced** shows the rest. Hidden filters still apply, listed under **Also set**.

>
**Filters invalid stops buying.** Saved filters that can't be read (say, saved by a newer version) or that break
a rule show **Filters invalid**. The editor keeps unreadable filters until you
press **Replace them**.

## Settings
### Max buys
_Copy trading and dev whitelist · Default: No limit · Range: 1 to 100,000 buys_

Stops buying after this many **landed** buys; ones that fail or never land don't count. At the limit the task
shows **Limit reached**: it stays enabled, keeps running exits, and sends one **Buy
limit reached** alert.

The count isn't daily or hourly. It restarts at 0 only on:

- **Reset count** in the editor (on save), or **Reset buy count** in the row menu (at once, after you
  confirm);
- a changed limit;
- renaming the task or moving it to another wallet.

The field shows the count so far: *3 of 5 buys landed in this count*.

### Market cap
_Copy trading and dev whitelist · Default: Any · Range: Min 0 or more, max above 0, up to $1,000,000,000,000_

USD market cap (total supply × price) at **your entry price**: right after the target's buy (copy trading), or
right after the launch, the developer's own buy included (dev whitelist).

- Set a min, a max or both; an empty bound is open. `250000` shows as `250,000` as you type.
- With a bound set, tokens Crossbow can't value are skipped.
- On Raydium LaunchLab and CPMM, tokens that burned part of their supply can read slightly high.

>
[Lightning mode](/task-settings/lightning) can't be combined with a market cap range: clear the range or
turn lightning off.

### Target buy size
_Copy trading only · Advanced view · Default: Any · Range: 0 to 10,000,000 SOL_

Copies only target buys of this size, in SOL with fees included: skip dust or oversized buys. A buy in another
token (USDC, say) converts at the market price; one that can't be priced is skipped.

### Dev buy
_Dev whitelist only · Advanced view · Default: Any · Range: 0 to 10,000,000 SOL_

Snipes only when the launch transaction itself bought this much of the token, in SOL:

- after the venue's fees (on PumpFun about 1.25% less than the developer spent) and less any sells in it;
- counting every wallet that signed the launch, bundles included, but no later transaction.

A maximum alone also lets through launches with no dev buy.

### First buy only
_Copy trading only · Default: Off_

Copies only the target's **first** buy of a token: skips it if Crossbow saw the target buy or sell it in the last
24 hours. A target buy that fails or doesn't land within a minute doesn't count, so a retry is still the first.
Crossbow can't see buys older than 24 hours, on venues it doesn't follow, or tokens sent to the target.

### Token names
_Dev whitelist only · Advanced view · Default: Any name · Range: Up to 100 names, 64 characters each_

Snipes only launches whose token name is listed, ignoring case and surrounding spaces; every other character
counts. Type a name and press `Enter` or **+**, or paste a list; text left in the field is added on
save. Pasted names and symbols split on commas, so a name with a comma can't be listed.

### Token symbols
_Dev whitelist only · Advanced view · Default: Any symbol · Range: Up to 100 symbols, 64 characters each_

Snipes only launches whose symbol is listed, ignoring case. `$` counts: `$PEPE` never matches `PEPE`, so list
both to accept both. With both lists set, a launch must match **both**.

### Buy mayhem tokens
_Copy trading and dev whitelist · Advanced view · Default: Off_

Tasks skip tokens PumpFun launched in **mayhem mode** (on PumpFun and PumpSwap) unless this is on. Raydium venues
have no mayhem mode.

## Related
- [Missed-Buy Alerts](/alerts/missed-buys)
- [Why Didn't My Task Buy?](/help/why-didnt-my-task-buy)
- [Lightning Mode](/task-settings/lightning)