Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by 7th_zorro. 04/20/24 07:29
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, henrybane, flink, Edgar_Herrera), 758 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Getting started with the IB API #460920
07/20/16 17:17
07/20/16 17:17
Joined: Jun 2016
Posts: 33
NC
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

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=16457

Is 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] #460941
07/21/16 09:00
07/21/16 09:00
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
I can't answer why your TWS is out of date - that's an issue for IB support - but you can see the rest of the error message in the log. Alternatively, double click into the message window - that will copy the message to the clipboard.

Re: Getting started with the IB API [Re: jcl] #461026
07/22/16 22:22
07/22/16 22:22
Joined: Jun 2016
Posts: 33
NC
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

Joined: Jun 2016
Posts: 33
NC
Thanks for the double click advice. Very useful.

For some reason today, even though I've not changed anything, I'm no longer getting the error message for TWS being out of date. Instead, I'm getting this:

"Login IB (demo)..
!IB Socket connected at UTC 22.07. 22:18
!Account DU424687
Subscribe TSLA
!Requested market data is not subscribed.Error&BEST/STK/Top&BEST/STK/Top
Error 053: TSLA not available at this time
No bars generated
Logout.. ok
Copied to Clipboard!"

Is it because the markets are now closed? I realize I'm not going to be able to trade in the demo account with the markets closed, but I'm just trying to test connecting zorro to IB. Please advise.

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
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

Joined: Jun 2016
Posts: 33
NC
Any advice?

Re: Getting started with the IB API [Re: Cstyle] #461115
07/26/16 08:53
07/26/16 08:53
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
IB already advised you: subscribe their market data.

Also look in the manual under "IB" about what you need to know for trading with IB.

Re: Getting started with the IB API [Re: jcl] #461131
07/26/16 14:54
07/26/16 14:54
Joined: Jun 2016
Posts: 33
NC
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

Joined: Jun 2016
Posts: 33
NC
I am subscribed to their data, through my primary account. I do not (yet) want to connect zorro to my live account and trade with it until I've done some trading in my paper account. Do I have to subscribe to data in my paper account as well?

Re: Getting started with the IB API [Re: Cstyle] #461137
07/26/16 15:38
07/26/16 15:38
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
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.

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
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

Joined: Jun 2016
Posts: 33
NC
Originally Posted By: jcl
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:

Quote:
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:

Quote:
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
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

Joined: Jun 2016
Posts: 33
NC
Quote:
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:

Quote:
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: Cstyle] #461238
07/30/16 07:12
07/30/16 07:12
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
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.

Page 1 of 3 1 2 3

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1