Skip to content

Trading Flow

The bot follows a cycle: discover, evaluate, match, validate, buy, monitor, sell.

Step by step

1. Discover

The bot continuously scans for new tokens on supported chains. It pulls data from on-chain sources and filters out tokens that do not meet basic liquidity and volume thresholds.

2. Evaluate

Every discovered token goes through a full security evaluation before it can be traded. This happens automatically and cannot be bypassed.

Contract checks:

  • Source code must be published and verified (closed-source contracts are rejected)
  • Contract must not be upgradeable (proxy contracts are rejected)
  • Contract must not have a self-destruct function
  • Token transfers must not be pausable by the owner
  • Owner must not be able to change balances or set per-wallet slippage

Scam detection:

  • Honeypot detection (can you actually sell the token?)
  • Mintable supply check (can new tokens be created out of thin air?)
  • Creator history check (has the creator deployed other honeypot tokens?)
  • Fake token detection (is it impersonating a legitimate token?)
  • Airdrop scam detection
  • Gas abuse detection

Financial checks:

  • Token must have no buy or sell tax, and the tax must not be changeable by the owner
  • At least 60% of liquidity pool tokens must be locked or burned
  • Top 10 non-contract holders must not own too large a share of the supply

WARNING

Tokens that fail any of these checks are rejected. Only tokens that pass everything get approved for trading.

3. Match

The bot continuously checks approved tokens against your personal filters:

  • Minimum liquidity
  • Minimum volume
  • Token age range (min and max)
  • 24h price gain and drop limits
  • Holder concentration limit
  • Re-entry cooldown (skip tokens you recently sold)
  • Open position capacity (do you have room for another trade?)

See Discovery Filters for details on each filter.

4. Pre-trade validation

Right before buying, the bot runs a final round of checks:

  • Live liquidity check reads the actual on-chain pool reserves to confirm liquidity is still there
  • Price impact analysis makes sure your trade will not move the price too much (limit: 2%)
  • Aggregate exposure check prevents the bot from putting too much total capital into one token across all users
  • Swap simulation runs a test buy and sell on-chain (without actually trading) to detect hidden taxes or transfer blocks

DANGER

If any of these fail, the trade is cancelled. This is your last line of defense before real money is spent.

5. Buy

When a token passes all checks, the bot executes the buy using your configured position size and slippage settings.

6. Monitor

The bot tracks the price of every open position in real time.

7. Sell

The bot sells automatically when one of your exit conditions is met:

  • Take profit target reached
  • Stop loss triggered
  • Trailing stop activated and dropped
  • Max hold time expired

If a sell transaction fails, the bot retries with higher slippage up to your max slippage limit.

See Exit Strategy and Trailing Stop for details.

Ongoing protection

Safety does not stop after buying. The bot continues to protect your positions:

  • Token refresh runs periodically. If a token's liquidity drops below the minimum floor or its price crashes more than 50% in 24 hours, it gets rejected and no new buys are placed.
  • Data freshness ensures the bot never trades on outdated information. Tokens with stale data are automatically removed from trading.
  • Stuck position recovery runs automatically. If a position gets stuck (sell failed, transaction dropped, or token becomes unsellable), the bot detects it and either retries or closes the position.
  • Admin blacklist allows immediate blocking of any token, which also force-closes any stuck positions on that token.

Notifications

You get a Telegram message for:

  • Every buy (with transaction link)
  • Every sell (with profit/loss summary)
  • Position updates

Drift Algo