Apex Docs
  • Overview
  • How it works
    • The Basics of Perpetual Futures and Perpetual Protocol
    • APEX Limit Order Design
    • Comparison with order book exchanges
  • User Guide
    • Add xDai Chain to Your Wallet
    • Acquiring xDAI tokens
    • Getting USDC on xDai
    • Interacting with xDai
    • Spawn your smart wallet
    • Funding your smart wallet
    • Approve Spend
    • Fees
    • Creating Orders
      • Creating Limit orders
  • Order Types
    • Understanding Slippage
    • Market Orders
    • Limit Orders
    • Stop Orders
      • Stop Market
      • Stop Limit
      • Stop Market vs Stop Limit
      • Trailing Stop Orders
  • Developer Guide
    • Smart Contracts
      • Limit Order Book
      • Smart Wallet Factory
      • Smart Wallet
    • Keeper Bots
      • Overview
      • Running your own bot
      • Documentation
Powered by GitBook
On this page

Was this helpful?

  1. Developer Guide
  2. Keeper Bots

Overview

There are two key functions that keeper bots serve:

  1. They monitor the price of all assets available on the perpetual protocol. If the price of these assets change such that a users advanced order can be executed, they call the execute() function in order for that order to be fulfilled.

  2. They monitor price changes for all trailing orders, and update the trailing order parameters accordingly.

Both of these actions are financially incentivised by the smart contracts.

A user that is able to run a script that can perform these tasks will be paid by the protocol.

As the number of orders on apex increases, the total sum of fees to bots will increase. It can therefore be profitable to run an effective bot.

PreviousKeeper BotsNextRunning your own bot

Last updated 4 years ago

Was this helpful?