Tutorial: Bots
There are two primary types of bots run on Drift Protocol:
- Keeper Bots; and
- Trading Bots.
The reference implementation for all Keeper bots mentioned in these docs are available here.
All bots require some amount of SOL to pay for transaction fees.
Keeper Bots are integral to the performance of Drift Protocol. They perform automated actions as autonomous off-chain agents that are criticial to the platform.
Keepers are rewarded depending on the duties that they perform.
The various types of keeper bots are:
Bot Type | Difficulty | Capital Required | Rewards | Link |
Matching Bot | Basic | No | TBD | ๏ปฟ๏ปฟ๏ปฟTutorial: Order Matching Bot |
Order Trigger | Basic | No | TBD | ๏ปฟ๏ปฟ๏ปฟTutorial: Order Trigger Bot |
Liquidator | Advanced | Yes | TBD |
Trading Bots are for-profit bots run on Drift Protocol for the purposes of automating particular trading strategies. In addition to the financial incentive, Trading Bots provide other users on the exchange with better, more accurate pricing and better liquidity.
There are two primary types of trading bots that can be run on Drift Protocol. We have provided examples here:
Bot Type | Difficulty | Capital Required | Rewards | Link |
Arbitrage Bot | Advanced | Yes | TBD | ๏ปฟ๏ปฟ๏ปฟTutorial: Arbitrage Bot |
JIT Maker Bot | Advanced | Yes | TBD |