A trading bot will be connected to your exchange account to set buy and sale orders. This bot has no ability to withdraw money from the exchange. Exchanges like BitMEX ask to withdraw money from an exchange, such as two-step verification and approval. So using trading bot is safe and does not pose any risk to your money.