Bot services such as Cryptohopper, and self-hosted bots such as Freqtrade, trade your exchange account through an API key. Exchange-native bots, such as Pionex, keep your funds on the exchange.