Hi
I am trying to get data for ES - but I can't successfully register and get the
uid - it is returning zero, how do I get the uid, do I have to call
GET_CONTRACTUID_LIST ?
What is the right call sequence? Thanks
- here is the log, I am using the demo account
20090618 22:59:41:052;note;twslink_main;REGISTER_CONTRACT -ES -FUT -USD -GLOBEX
- -200912 - -0.0000000000 - -0 -0.0000000000 tid=2564
20090618 22:59:41:052;note;twslink_client;contract added: mult=1 symbol=ES
local symbol sbl= secType=FUT currency=USD exchange=GLOBEX prim. exchange=
expiry=200912 right= strike=0.0000000000 mintick=0.0000000000 multiplier=
marketname= trading class= price magnifier=0 conid=0 uid=10006 mlp=1
context=RegisterContract
20090618 22:59:41:052;action;socket;sent (#=0):
9#5#4#0#ES#FUT#200912#0.0000000000###GLOBEX#USD##0#
20090618 22:59:41:052;action;twslink_client;command [reqContractDetails]: bytes
send=51
20090618 22:59:41:052;note;twslink_client;flag 4 enabled, contract uid=10006
20090618 22:59:41:052;action;twslink_client;details requested for multiple
contracts ES_FUT_USD_200912__0.000000_GLOBEX__10006_0
20090618 22:59:41:067;action;twslink_client;delete specification for multiple
contracts
20090618 22:59:41:067;note;twslink_client;AddDetailRequest::res=1 ndt=1 pc=1
20090618 22:59:41:067;note;twslink_main;REGISTER_CONTRACT ret=0
20090618 22:59:41:067;note;twslink_main;WAIT_FOR_ACCEPTED -0 -5000 tid=2564
20090618 22:59:41:067;note;twslink_main;WAIT_FOR_ACCEPTED ret=-2
20090618 22:59:41:067;note;twslink_main;WAIT_FOR_REQ_PROCESSED -7000 tid=2564
20090618 22:59:41:099;note;socket;received:
10#5#4#ES#FUT#20091218#0.0##GLOBEX#USD#ESZ9#ES#ES#53893088#0.25#50#ADJUST,ALERT,\
AVGCOST,BASKET,COND,CONDORDER,DAY,GAT,GTC,GTD,GTT,HID,ICE,LIT,LMT,MIT,MKT,MTL,NO\
NALGO,OCA,STP,STPLMT,TRAIL,TRAILLMT,#GLOBEX,MIBSX#1#52#1#4#
20090618 22:59:41:099;note;twslink_client;contract added: mult=0 symbol=ES
local symbol sbl=ESZ9 secType=FUT currency=USD exchange=GLOBEX prim. exchange=
expiry=20091218 right= strike=0.0000000000 mintick=0.2500000000 multiplier=50
marketname=ES trading class=ES price magnifier=1 conid=53893088 uid=10007 mlp=0
context=contract details
20090618 22:59:41:099;action;twslink_client;performing fake request for
TWSLINKFAKE2 ticker=-5 context=3
20090618 22:59:41:099;action;socket;sent (#=0):
1#8#-5#TWSLINKFAKE1#STK##0.0000000000###SMART##USD##0##0#
20090618 22:59:41:114;action;twslink_client;command [reqMktData ]: bytes send=57
20090618 22:59:41:114;action;twslink_client;RequestManager::RequestAnswered:
type=3 id=10007 sc=-1 po=1 reqcount=0 freqcount=1 ndt=1 szu=0 szf=0 pc=1 ret=1
20090618 22:59:41:114;note;twslink_client;contract details received (1) for
contract=symbol=ES local symbol sbl=ESZ9 secType=FUT currency=USD
exchange=GLOBEX prim. exchange= expiry=20091218 right= strike=0.0000000000
mintick=0.2500000000 multiplier=50 marketname=ES trading class=ES price
magnifier=1 conid=53893088 uid=10007 mlp=0 .
20090618 22:59:41:145;note;socket;received: 4#2#-5#200#No security definition
has been found for the request#
20090618 22:59:41:145;error;twslink_client;error: No security definition has
been found for the request code=200 id=-5
20090618 22:59:41:145;action;twslink_client;RequestManager::FakeRequestAnswered:
type=3 id=-5 reqcount=0 freqcount=0 ndt=1 szu=0 szf=0 pc=1 ret=0
20090618 22:59:41:145;note;twslink_client;FinishRequest::res=3 res2=0 res3=0
ndt=0 pc=0
20090618 22:59:41:145;note;twslink_main;WAIT_FOR_REQ_PROCESSED ret=1
20090618 22:59:41:145;note;twslink_main;GET_CONTRACTUID_LIST -ES -FUT -USD
-GLOBEX - -200912 - -0.0000000000 - -# tid=2564
20090618 22:59:41:145;note;twslink_main;GET_CONTRACTUID_LIST ret=