FAQ

Is TWSLink 64 bit capable

Yes. On 64 bit Windows, TWSLink is installed with both versions, 32- and 64 bit. On 32 bit windows, only the 32 bit version is installed, because the 64 bit version is not usable.

On 64 bit machines, you do not need to care about what version to load. This is done automatically. For instance, if you run a 32 bit Excel on a 64 bit machine, the 32 bit version is loaded. If you run a 64 bit Excel on a 64 bit machine, the 64 bit version is loaded.

When calling a TWSLink function, my host application or script crashes or freezes

This is most likely due to a wrong number of parameters passed and/or wrong parameter type or size. Please check your call with TWSLink documentation for this function.

TWSLink comes with only 4 different parameter types. The size of a specific type can depend on underlying platform: 32 Bit or 64 Bit

  • integer: 4 Bytes (32 Bit and 64 Bit)
  • integer_pointer: 4 bytes (32 Bit) , 8 bytes( 64 Bit)
  • string (ANSI): 4 bytes (32 Bit) , 8 bytes( 64 Bit)
  • double: 8 bytes (32 Bit and 64 Bit)

When fetching portfolio data for CASH contract, i get always 0 positions returned, even i have positions.

CASH contracts are virtual contracts. To provide positions for API, please goto TWS settings / API / settings and check:

Include FX positions when sending portfolio

Is TWSLink thread safe

Yes

Is TWSLink running on Mac OS or Linux

Natively not. But never mind, there are good options that makes it possible to run trade-commander.com software on MacOS or Linux. Please read this article: Using trade-commander.com software on Mac OS

You will have an additional benefit to just use trade-commander.com software when using a virtualizer. Virtualizer can make your computer work more secure and more dedicated. Moving to new hardware is easy and so on.

Short: we recommend to create a virtual windows in the virtualizer of your choice, where you run TWS and TWSLink in a box. When you installed a virtualizer, this is done in 20 minutes. Then you can move with this virtual machine on any hardware that support the virtualizer you installed (for instance to your brandnew Mac).