How to build a bitcoin trading bot I'd like to experiment with bitcoin technology, crypto currency, and encryption. I thought the best way to accomplish that is building my very own bitcoin trading bot.

It seems like a daunting task, but I think I can accomplish this in the following outlined steps:


The bot has to be connected to a wallet. I think I can accomplish
this by connecting it to a 3rd party wallet with public API. 
My bot has to be connected to an exchange that also provides public
API which allows automated buying and selling  
My bot has to be able to read the exchange's order book and price.
Create a simple algorithm for trading.


I'd like to know, what is the best way to build a wallet for my bot? And which exchange should I connect my bot to? 

I know I am probably missing some key points. So if someone can point me to the right direction, I'd greatly appreciated.

Thanks
Building trading bots that interact with the exchanges is very similar to interacting with other RESTful APIs. Basically, you make query objects to whichever exchange you like to use. Here is a simple example: https://github.com/AdamCox9/nickelbot/blob/master/adapters/poloniex/poloniex_lib.php

Nickelbot is development platform written in PHP that has all the boilerplate code for interacting with several exchanges. You can write a bot once, like https://github.com/AdamCox9/nickelbot/blob/master/bots/make_min_orders.php that will give you full control and it works with multiple exchanges.

Take a look at all the example code on https://github.com/AdamCox9/nickelbot to see exactly what you need to do.