|
2 registered members (AndrewAMD, VoroneTZ),
831
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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!
|
|
|
|
|
|