Support Board
Date/Time: Wed, 05 Mar 2025 04:27:14 +0000
Post From: SC showing positions that were closed with other SW
[2022-01-10 15:35:15] |
1+1=10 - Posts: 270 |
Hi Rune, Both SC and Jigsaw connect to your TWS app by communicating through the TWS API. If you're unfamiliar with the term API, it just a set of agreed upon methods that software can use to exchange information. So any SC and Jigsaw, when they want to get any market data, orders, positions, etc. from TWS do so through the API. In API terminology, SC and Jigsaw are clients of the TWS API. (In fact, you can have up to 32 clients connecting to one TWS app.) The problem is that only one client of the TWS API can be what is known as the Master API Client, and only the master client receives updates about interactions with TWS that are the result of all clients! So in your case, Jigsaw has been set as the Master API Client and so is receiving all updates. SC on the other hand, is not the master client, so only can see information that it was directly responsible for creating. So it cannot see that you closed a trade on Jigsaw even if you opened it in SC. Sadly, there's no way using TWS to have SC & Jigsaw or any other combination of softwares both be aware of all interactions. In the TWS app settings there is a section under API -> Setting where you can see a setting entitled Master API Client ID which briefly explains these concepts: https://guides.interactivebrokers.com/tws/usersguidebook/configuretws/apisettings.htm Good luck figuring out a workaround! |