A trading bot is a chain of dependencies. It reads a position, prices it, decides, places an order, and confirms settlement.