I have been working recently on writing stock / option trading algorithms and have run into lots of troubles. For instance, it appears that only Interactive Brokers offers a decent API for actual live trading. Second, getting fundamentals data to run my algorithm on is not offered by Quantopian (the easiest IDE for python trading). I have tried working with Excel VBA as well for Interactive Brokers but the error logging and IDE are painful.