HOME FORUMS BROKERS SOFTWARE BOOKS CONTACT US
Elite Trader Your Account  •  Become a Member  •  Help  •  Search    
    Forums ›› Tools of the Trade ›› Trading Software ›› IB TWS API on 64-bit OS  


Post A Reply
    Page 2 of 2:   1   2  
dcraig
 

Registered: Jun 2003
Posts: 2077

 

07-21-09 08:59 AM


Quote from TrailingStop3:

If you look at the IB-API Code you can see that the API is ‘only’ a simple protocol for the communication app <-> TWS over TCP/IP. I have developed an app which is available as native 32 and 64 Bit versions. I have redeveloped this communication to fit my needs, which wasn’t that difficult if you get the big picture of the API. I developed it in C++, so I have no idea how difficult it is to do the same in Java - but it should be possible?!

Daniel



Don't know why you would want to rewrite the Java API, but yes there would in principle be no problem doing so. Easier than C++.

The problem with doing this sort of hack job, is that in the future the protocol may change, but the supported API remains backward compatible. IB are under an obligation to provide backward compatibility for the API, but not the protocol.

    Edit/Delete • Quote • Complain
TrailingStop3
 

Registered: May 2008
Posts: 154

 

07-21-09 09:05 AM

If you want to compile a 64-Bit C++ program using the TWS-API you will run into the same sort of problems as rbartell is in. My solution for this was to rewrite it to get everything working with 64-Bit and 32-Bit. That’s the reason why I thought that it could also be a solution in Java – but – as written before – I’m not sure about that and do NOT want to rewrite the Jave API. I only want to tell my experience and the way I could fix the problem.

    Edit/Delete • Quote • Complain
rbartell
 

Registered: Mar 2003
Posts: 52

 

07-22-09 03:19 AM


Quote from dcraig:

I run it on Ubuntu 9.04 64 bit. No problems at all. Both 32 bit and 64 bit JVMs work.



What made you choose Ubuntu? What are pros/cons (especially from a trading perspective)?

    Edit/Delete • Quote • Complain
rbartell
 

Registered: Mar 2003
Posts: 52

 

07-24-09 09:52 PM

The problem was that the API uses a 32bit COM component. I had to add the line:

x86

to the first section of .vbproj file

More detail on how to do that:
http://msdn.microsoft.com/en-gb/vstudio/aa718685.aspx

    Edit/Delete • Quote • Complain
aebrock
 

Registered: Aug 2009
Posts: 1

 

08-26-09 09:10 PM

Thanks for following up on this and posting the solution.

I had exactly the same problem with a C# application, compiled in Visual Studio 2008 on 64-bit Windows 7 RTM.

I had to do two things to get my project to work:
(1) As you point out, change the target platform from "Any" to "x86".
(2) Instead of creating the AxTws control dynamically, I have to put it directly in my windows form (i.e. put it in the toolbox, then drag it onto my form).

I can't remember where I saw this discussion, but apparently if you create the control dynamically, initialization may not be carried out properly. That's why I have to do Step #2 as well.

    Edit/Delete • Quote • Complain
vikana
Moderator

Registered: Apr 2001
Posts: 1555

 

08-27-09 04:43 AM

Just want to chime in: I've been testing on 64 bit Ubuntu with 64 bit JVM for weeks now and it's running without any problems. Just upgraded to the latest TWS and API and so far no problems.

Just to clarify: I've been on 64 bit ubuntu for 18 months and tested against TWS many times. Recently I've begun preparing to go live, and have let the paper account trade on full auto just to see. That's what's going well.

    Edit/Delete • Quote • Complain
    Page 2 of 2:   1   2  
Post A Reply


Receive an email whenever a new post is added to this thread by subscribing to it.
 
Rate This Thread:

Forum Jump:
 

 

   Conduct Rules  -  Privacy Policy  -  Day Trader -  Day Trader Forum -  Best Trading Software -  Sitemap Copyright © 2013, Elite Trader. All rights reserved.    
 
WHILE YOU'RE HERE, TAKE A MINUTE TO VISIT SOME OF OUR SPONSORS:
Advantage Futures
Futures Brokerage & Clearing
AMP Global Clearing
Futures and FX Trading
Bright Trading
Professional Equities Trading
CTS
Futures Trading Software
DaytradingBias.com
Professional Trading Analytics
ECHOtrade
Professional Trading Firm
eSignal
Trading Software Provider
FXCM
Forex Trading Services
Global Futures
Futures, Options & FX Trading
Interactive Brokers
Pro Gateway to World Markets
JC Trading Group
Direct Access Trading
MB Trading
Direct Access Trading
MultiCharts
Trading Software Provider
NinjaTrader
Trading Software Provider
OANDA
Currency Trading
optionshouse
Option Trading & Education
Rithmic
Futures Trade Execution Platform
SpeedTrader
Direct Access Trading
SpreadProfessor
Spread Trading Instruction
thinkorswim by TD Ameritrade
Direct Access TradingAdvertisement
TradersStudio
System Building & Backtesting
Trading Technologies
Trading Software Provider
Trend Following
Trading Systems Provider