There are three types of bots required to process data, and to trade: sensors bots, indicators bots, and the trading bot. Their definitions and the information required to operate them are scattered on all five hierarchies.

Bots are defined in data mines. That is, data mines hold the source code and configuration—the complete set of definitions—of the three existing kinds of bots: sensors, indicators, and the trading bot.

Using any of these bots entails creating an instance of the bot definition, so that this instance may run the bot’s code. This is done from within the network hierarchy.

A bot instance is a reference to a bot as defined in a data mine. The instance of the bot runs the defined processes and generates the defined data products.

You use task managers and tasks within the network hierarchy to control bot instances, meaning, to start and stop them. Also in the network hierarchy lies the configurations about where the data they generate is to be stored.

Upon execution, bot instances run in a branched sequence determined by their status and data dependencies. For instance, if bot Alice depends on the data produced by bot Bob, then Alice is configured to run as soon as Bob finishes its execution. These configurations are already set up for all existing bots, in the corresponding data mine. Therefore, you only need to worry about this if you create new bots.

What you do need to understand is that, if Alice depends on data Bob produces, then Bob needs to be running for Alice to do her job. If Bob is not running, then Alice can only sit and wait for Bob to do his part first.

Each bot runs for as long as it may require to perform its job, usually in the order of a few seconds, and remains asleep until the next cycle is due. That is, bots run for short bursts, in frequent cycles. The reason for this behavior is that bots are prepared to read live data feeds and process it online.

Bots need to know which market of which exchange they should work with. Exchanges and markets are defined in the crypto ecosystem hierarchy. Bots obtain that information by establishing references with the appropriate markets in that hierarchy.

In the case of the trading bot, it also needs to know which type of trading session it should run, and what trading system’s rules it should follow. For those reasons, trading bots are paired with a specific session, which in turn, references a trading system.