Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
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
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

Joined: Jun 2016
Posts: 33
NC
Originally Posted By: jcl
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
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

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:

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

Joined: Jun 2016
Posts: 33
NC
All of a sudden I'm no longer able to connect to the API:

Code:
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/87tchGU6At3ys6KFA

Any advice?

Thanks!

Re: Getting started with the IB API [Re: Cstyle] #461744
08/19/16 09:49
08/19/16 09:49
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
How to set up the TWS is also described in the manual under "IB".

Re: Getting started with the IB API [Re: jcl] #461753
08/19/16 11:32
08/19/16 11:32
Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
M
mhdus Offline
Junior Member
mhdus  Offline
Junior Member
M

Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
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.

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

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

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

Joined: Jun 2016
Posts: 33
NC
Originally Posted By: mhdus
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/87tchGU6At3ys6KFA

What should I try next?

Thanks!

Re: Getting started with the IB API [Re: Cstyle] #461761
08/19/16 15:28
08/19/16 15:28
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
There are only 2 opportunities to enter a wrong number. If it's not the socket port, then you maybe took your chance with the "User" field?

Re: Getting started with the IB API [Re: jcl] #461769
08/19/16 20:01
08/19/16 20:01
Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
M
mhdus Offline
Junior Member
mhdus  Offline
Junior Member
M

Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
Well, your error log from Zorro says: "!TWS Gateway running? Port = 4002"
so it looks as if you have entered 1 as User in Zorro. For Socket port 7496 you need to enter 101 as the User in Zorro. Alternatively you can enter 4002 as the Socket port in the API Settings, of course, and keep User 1 in Zorro.
@jcl: maybe it would be easier to explain in the manual how to apply the SAME Socket port number in both, full TWS and Gateway - to avoid such confusion and surprises as users might switch between Gateway and TWS quite often. Just a thought.

Re: Getting started with the IB API [Re: mhdus] #461976
08/31/16 17:04
08/31/16 17:04
Joined: Jun 2016
Posts: 33
NC
C
Cstyle Offline OP
Newbie
Cstyle  Offline OP
Newbie
C

Joined: Jun 2016
Posts: 33
NC
I had entered my IB username in the Zorro user field. I switched it to 101 and was able to connect. Thank you mhdus!!!

Page 2 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