Have you considered the TT X_Trader API? They have open source programming available for order entry automation. After joining the TT Developer Program, users are granted access to documentation, training materials, samle code and more.
http://www.tradingtechnologies.com/xtrader-api.asp