JanBoonen / TwsApiCpp

Improved TWS API POSIX C++ library for the Interactive Brokers (IB) TWS (same project as TwsApiC++ in Yahoo TWSAPI).
106 stars 56 forks source link

TwsApiC++

TwsApiC++ is a library build on top of the IB POSIX C++ library and makes programming with the IB api more easy and more robust.

See the wiki history page for a more detailed description and why it was created. It will be true for the upcoming version 9.72 as well.

See what makes the use of twsapic worthwile for a more detailed description of the issues TwsApiC++ resolves.

TwsApiC++ is availble freely since 2008 in Yahoo's Interactive Brokers TWS APIDiscussion Groups. Versions 9.71 and up will be available only via this Github.

TwsApiC++ is a ‘closed’ library on purpose. This means you cannot derive from its EClient (EClientL0) class and overwrites its methods. That guarantees the library remains robust and solid and prevents its inner workings are broken by accident. And why would you? Your trading system uses the EClient to achieve it's goal and is not an EClient. So use it as a member of your trading class.

Compiling and execution

This project includes all necessary IB POSIX C++ source files, no need to install the IB api first.

TwsApiC++ has been installed and compiled on many different platforms. Unix/linux make files and Visual Studio project files are included.

The footprint of the library is small and fast.

Examples programs

There are some examples programs included in the delivery in the TwsApiC++/Test/Src directory.

An simple example that demonstrates some strengths of the library is Retrieve History in the wiki pages.

What makes the use of TwsApiC++ worthwile