The Mechanics of Grid-Trading Bots: A Detailed Look