I've managed to get the bot to get the latest ask and bids prices from the market depth. I'm thinking that we could do a check to see how much it would cost to buy say 500 bitcoins and if that figure is below say $1 above the current latest price then it will stop a buy taking place and vice versa for sells. Basically spotting where the buy and sell walls are, this can definitely be done.