Skip to Content
DevelopersTrading AutomationTrading BotsTrading Bots

Trading Bots

Trading bots are profit-seeking strategies that interact with Drift markets. These bots typically:

  • subscribe to market data (orderbook, trades, oracles),
  • compute signals or quotes,
  • place and cancel orders, and
  • manage risk and collateral.

Step 1: Choose a strategy

Start with a reference implementation before customizing:

Step 2: Prepare a wallet + RPC

Use a dedicated bot wallet and a reliable RPC provider:

Step 3: Connect and subscribe

Most strategies rely on:

  • Drift SDK subscriptions (websocket or polling)
  • Orderbook/DLOB updates
  • Oracle feeds

For setup patterns, see:

Step 4: Run and monitor

Start in paper mode or with small size. Monitor logs and latency, and track performance over time.

Last updated on