# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apex.win/apex-docs/developer-guide/keeper-bot/keeper-bot-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
