Since all of my systems are semi automated and with very low time/tasks required from my side, i spend my daily trading time (2 hours / day) testing ideas and trying to come up with improvements for the current systems. Since last week i decided to write my own API for TWS the reason is that i do not like to be more independent and also for the challenge of it.
Another reason for having my own API is that it can be used for long trades short trades if one day i decided to short, it can be used for all instruments. So it will give flexibility and maybe at a later stage to implement the trading system in it so i will skip the AB explore part.
So here is a bit of progress on where i am and how i am doing it:
i am using the API sample example that is provided by IB to get the logic of the process and the sequence of actions. It is very good with full capabilities the only annoying thing in it, is that it is written in a complicated way (may be this is how professionals write) so it took almost one week to digest their code and start building my own.
Where did I reach
Interface is Done
Connection to TWS is Done
Importing trades is Done
Sending them to TWS is Done