Mmmm.... Not sure what you mean. So , the code you recommended above should be added to the tickPrice method in the PrintWrapper class which implements in EWrapper. I want to store the price and size of a specific bid and ask tick in my main file where a print wrapper objext exists. I'm thinking unless I can overload the tickPrice method, but I'm not sure if that still helps because in the main file, I have Code: client.reqMktData(tickerId, con, "100,101,104,106,162,165,221,225", true); What I have is a Strategy object in the main file (i.e. PrintTestForex class )to which I was planning on passing EClientSocket as a parameter. I'm wondering if that's how you do it? Or how would you recommend I do it. More specifically I want the ESocketClient object not just to print market data but return it so that I can store it in a variable. The TickPrice method in wrapper class doesn't return anything.
Interesting thread, found this thread is helpful. reqMktData(int tickerId, Contract contract, String genericTicklist, boolean snapshot) It needs generic list, Generic Tick Types can't be empty list. And, Snapshot market data subscription is not applicable to generic ticks, (server version 53), so, make boolean snapshot=false. Generic Tick Types: http://www.interactivebrokers.com/p.../generic_tick_types.htm#XREF_interoperability
set EClientSocket to setServerLogLevel(4) you should get errors saying the contract is not defined. :eek: