If you build your own HTTP REST gateway for TWS or IBgateway you can use it from Zipline for live trading or any platform that can perform a HTTP GET. Just fire way a simple HTTP GET to put an order into IB.
Submitting a market buy order for SPY would be:
http://myserver.foobar.com/ibrest/spy/mkt/buy
Submitting a buy limit order for SPY would be:
http://myserver.foobar.com/ibrest/spy/lmt/buy/price=123.45
Submitting a sell stop loss order would be:
http://myserver.foobar.com/ibrest/spy/stp/sell/price=123.45
I leave the security issues to solved by the implementor. ;-)
-----------------------------
Quick search, first hit: https://github.com/psalami/ib-broker-service
Info: depending on the strategy involved, it could be sufficient get fire signals based on Yahoo Finance Data, and use the IB HTTP Gateway to trade. This limits, a lot, the implementation.
Any thoughts ?