Page 1 of 1

Link without IB API installation

Posted: Wed Sep 05, 2018 5:34 pm
by fgoal
Hi! New to this forum and TWS Link magic app!
Before I use TWS Link, and probably some other softwares from TC, I'm just curious about the techno used. How is this possible to connect to TWS without installing the IB API package? I don't find any official doc about this kind of link without API install...

Re: Link without IB API installation

Posted: Wed Sep 05, 2018 6:23 pm
by board_admin
Hi,
the API is only a protocol definition. Not more. Any API client, like TWSLink,
connects per TCP/IP to TWS or Gateway and sends commands according this
protocol.

If the command you send via TCP/IP is not in line with what the protocol defines,
TWS or gateway immediately closes connection.

---
The API module of IB is an ActiveX, implementing this protocol just like TWSLink.
You can use this ActiveX like you can use TWSLink. (TWSLink can be used as DLL and as COM (ActiveX)).

But TWSLink is much more comfortable and powerful. Placing an order
or many other typical API tasks are done with a few lines of code.

With IBs original ActiveX you need much more code and it has not
features like automatic reconnection, subscription control
and many other features (database support) as it has TWSLink.

---

Short TWSLink is just a more convenient and powerful version
of IBs original ActiveX API.

Re: Link without IB API installation

Posted: Fri Sep 07, 2018 10:41 am
by fgoal
Oh I see. TWSLink is then a substitute of the IB API dll/ocx.
What if I don't need the samples, docs, etc...Is the TWSLink installation exe required to be run, or can we simply copy and use the TWSLink2.dll ? Any other dependencies? MS redistributables?
Any .ocx or .net package of TWSLink?

Re: Link without IB API installation

Posted: Thu Sep 20, 2018 5:54 pm
by board_admin
Hi,
you can just copy the DLL into Windows/system32 or Windows/syswow64. Depending where you need it.
But in this case, you can't use it as COM or ActiveX. Just as DLL. The setup also does a registration.