¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: A couple of questions regarding the C++ Tws api client


 

It sounds like you are struggling with some of the concepts, Arthur. Such as how Orders may have Executions that become Trades and change the Account Position. If you have not done so yet, fire up TWS, do some manual trading and look at the various windows (orders, trades, account). Every major function in TWS has a corresponding set of requests and responses within TWS API.

TWS API is very flexible and you could envision a complex scenario where orders are placed by several clients and, unless you use IBGW for the connection with IBKR, manually through TWS. In order ro manage that correctly:
  • "API Orders" are those create automatically by one of your client apps via TWS API as opposed to orders created anually in TWS
  • If you have one client with clientId 0, it can see and manage orders that were placed manually in TWS
  • buddy pointed you to the Master Client, which can see all orders placed by other clients. You pick and configure the clientId within the API settings in TWS/IBGW
  • You can set the Master Client ID to "0" and give that client visibility to and manageability of orders placed by all clients and TWS

The and sections have more detail.

The C++ compile issue you are experiencing is going on for a while (since the introduction of the Decimal data type during the transition of V9 to V10) and you can find many posts about this in our forum.

´³¨¹°ù²µ±ð²Ô


On Fri, Jul 28, 2023 at 11:22 AM, <aSchwenk64@...> wrote:

I try my approach with a set Master Client ID. This sounds interesting.

Concerning the bug: If you try to compile the code under linux, you will get errors because the attached libbid.a and so are in Windows format . One need to replace it with the linux version.

Join [email protected] to automatically receive all group messages.