2 registered members (AndrewAMD, Nymphodora),
972
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Getting started with the IB API
#460920
07/20/16 17:17
07/20/16 17:17
|
Joined: Jun 2016
Posts: 33 NC
Cstyle
OP
Newbie
|
OP
Newbie
Joined: Jun 2016
Posts: 33
NC
|
I have a demo account for IB, have installed the IB Gateway, and am trying to get Zorro to connect. I'm getting the following error message whenever I click on "Trade": "!The TWS is out of date and must be upgraded." This is odd, as I literally just downloaded it today from here: https://www.interactivebrokers.com/en/index.php?f=16457Is this not the right location to get the API, or am I doing something else wrong? After the above error message, I'm also getting this error: "Couldn't connect to TWS. Confirm that "Enable A..." Where you see "..." the message is cut off. It is not clear to me how I can see the rest of the error message. Any ideas? Thanks!
|
|
|
Re: Getting started with the IB API
[Re: Cstyle]
#461104
07/25/16 21:43
07/25/16 21:43
|
Joined: Jun 2016
Posts: 33 NC
Cstyle
OP
Newbie
|
OP
Newbie
Joined: Jun 2016
Posts: 33
NC
|
|
|
|
Re: Getting started with the IB API
[Re: jcl]
#461140
07/26/16 16:25
07/26/16 16:25
|
Joined: Jun 2016
Posts: 33 NC
Cstyle
OP
Newbie
|
OP
Newbie
Joined: Jun 2016
Posts: 33
NC
|
I don't think so. I can trade with my paper and normal account, but have certainly not twice paid for market data. Maybe you have to activate your subscription for the paper account also. Contact IB support - they should know. You're right. I had to activate it for the paper account. By default it is not active, which is kind of stupid in my opinion, but at least I was able to resolve it. Thanks! Having said that, while z8 now runs and I can see in my IB portfolio that it did in fact execute some buy orders, I'm still getting errors from zorro: Trade Z8 portfolio (NFA) 26.07.2016 Error 062: Can't open Z8.par (rt:2) Lookback period (252 bars).
What is error 062? And I'm also getting a bunch of these warnings: XLU: Open: 0 New: 9 !Order Event Warning:Attribute 'Outside Regular Trading Hours' is ignored based on the order type and destination. PlaceOrder is now being processed. [XLU::L0105] Long 9@52.24 XLV: Open: 0 New: 4 !Order Event Warning:Attribute 'Outside Regular Trading Hours' is ignored based on the order type and destination. PlaceOrder is now being processed. [XLV::L0106] Long 4@74.76 Quit Logout.. ok Is it safe to ignore the Order Event Warnings? Thanks!
Last edited by Cstyle; 07/26/16 16:26.
|
|
|
Re: Getting started with the IB API
[Re: Cstyle]
#461230
07/29/16 19:14
07/29/16 19:14
|
Joined: Jun 2016
Posts: 33 NC
Cstyle
OP
Newbie
|
OP
Newbie
Joined: Jun 2016
Posts: 33
NC
|
Trade Z8 portfolio (NFA) 26.07.2016 Error 062: Can't open Z8.par (rt:2) Lookback period (252 bars). This anything to worry about? Just looking up that error in help I get: A file was not found or could not be opened. Check the file name and make sure that the file exists and is not opened in another application. I did a search through the zorro install directory and z8.par was not found. Please advise.
|
|
|
Re: Getting started with the IB API
[Re: jcl]
#461366
08/02/16 23:49
08/02/16 23:49
|
Joined: Jun 2016
Posts: 33 NC
Cstyle
OP
Newbie
|
OP
Newbie
Joined: Jun 2016
Posts: 33
NC
|
You can ignore the message. - In case of such problems, look also in the recent bug list. Normally such a problem was already encountered by other people and is commented in the list. Good to know. Thanks a million!
|
|
|
Re: Getting started with the IB API
[Re: jcl]
#461451
08/05/16 20:33
08/05/16 20:33
|
Joined: Jun 2016
Posts: 33 NC
Cstyle
OP
Newbie
|
OP
Newbie
Joined: Jun 2016
Posts: 33
NC
|
I'm not sure why I'm getting some of these messages in the log when I trade a strategy with the IB API: PennyPicker9 Login IB (demo).. !IB Socket connected !Real account not supported !Account DUXXXXXX at UTC 03.08. 13:37 Loading AMLP prices.. 12000 min Warning 034: No asset data for GDX Loading GDX prices.. !Historical Market Data Service error message:Historical data request pacing violation !No historical data query found for ticker id:17 !Historical Market Data Service error message:Historical data request pacing violation !No historical data query found for ticker id:18 !Historical Market Data Service error message:Historical data request pacing violation !No historical data query found for ticker id:19 !Historical Market Data Service error message:Historical data request pacing violation !No historical data query found for ticker id:20 !Historical Market Data Service error message:Historical data request pacing violation !No historical data query found for ticker id:21 . 12000 min Warning 034: No asset data for REM Loading REM prices.. 12000 min Warning 034: No asset data for GYLD Loading GYLD prices.. 12000 min Warning 034: No asset data for UNG Loading UNG prices.. 12000 min
Trade: PennyPicker9 portfolio 03.08.2016 Lookback period (500 bars) [82: Tue 19.07.16 18:40] 999977 +0 +0 . [83: Tue 19.07.16 19:00] 999977 +0 +0 [84: Tue 19.07.16 19:20] 999977 +0 +0 [85: Tue 19.07.16 19:40] 999977 +0 +0 [86: Tue 19.07.16 20:00] 999977 +0 +0 [87: Tue 19.07.16 20:20] 999977 +0 +0 ...
Any advice?
Last edited by Cstyle; 08/05/16 20:33.
|
|
|
Re: Getting started with the IB API
[Re: Cstyle]
#461733
08/18/16 17:55
08/18/16 17:55
|
Joined: Jun 2016
Posts: 33 NC
Cstyle
OP
Newbie
|
OP
Newbie
Joined: Jun 2016
Posts: 33
NC
|
All of a sudden I'm no longer able to connect to the API:
PennyPicker9 compiling..............
IB.dll => IB (demo) plugin mounted
Login IB (demo)..
!Couldn't connect to TWS. Confirm that "Enable ActiveX and Socket Clients" is enabled on the TWS "Configure->API" menu.
!TWS Gateway running? Port = 4002
Can't connect!
When I look under IB's API settings I don't even see "Enable ActiveX and Socket Clients": https://goo.gl/photos/87tchGU6At3ys6KFAAny advice? Thanks!
|
|
|
Re: Getting started with the IB API
[Re: mhdus]
#461759
08/19/16 15:19
08/19/16 15:19
|
Joined: Jun 2016
Posts: 33 NC
Cstyle
OP
Newbie
|
OP
Newbie
Joined: Jun 2016
Posts: 33
NC
|
How to set up the TWS is also described in the manual under "IB". Right. I've compared what I have with what is in the manual. They match exactly, with the only exception being I don't have "Enable ActiveX and Socket Clients" as an option. Please take a look at what I'm seeing: https://goo.gl/photos/87tchGU6At3ys6KFAI'm not sure what else I can do to resolve this. Any help that can be provided would be great!
|
|
|
Re: Getting started with the IB API
[Re: mhdus]
#461760
08/19/16 15:21
08/19/16 15:21
|
Joined: Jun 2016
Posts: 33 NC
Cstyle
OP
Newbie
|
OP
Newbie
Joined: Jun 2016
Posts: 33
NC
|
Check the socket port: As far as I remember, the full-blown TWS is using 4002 by default while the API Gateway is using 7496 (or vice versa). Both can be changed, of course. I believe you have a mismatch between Zorro and the API settings. Per the zorro manual I have socket port set to 7496. You can see what I have here: https://goo.gl/photos/87tchGU6At3ys6KFAWhat should I try next? Thanks!
|
|
|
Re: Getting started with the IB API
[Re: jcl]
#462494
10/04/16 17:18
10/04/16 17:18
|
Joined: Jul 2016
Posts: 7
Rockfish
Newbie
|
Newbie
Joined: Jul 2016
Posts: 7
|
Thank you JCL, i have double checked that i have shared data on the IB account pages so... back to the manual. I have also spend the day opening an FXCM account, it just provides me with FX pairs. But my friend has access to Index and gold for the Z3. Are there any changes/settings i need to take into account? Thanks!
Last edited by Rockfish; 10/04/16 17:19.
|
|
|
Re: Getting started with the IB API
[Re: Rockfish]
#462495
10/04/16 18:17
10/04/16 18:17
|
Joined: Jul 2016
Posts: 7
Rockfish
Newbie
|
Newbie
Joined: Jul 2016
Posts: 7
|
Thank you JCL, i have double checked that i have shared data on the IB account pages so... back to the manual. I have also spend the day opening an FXCM account, it just provides me with FX pairs. But my friend has access to Index and gold for the Z3. Are there any changes/settings i need to take into account? Thanks! The support desk at FXCM gave me the access.
|
|
|
|