Hi, I'm a newbie with Interactive Brokers and I see from the posts that some of you have had quite some experience with their platform. I was trying to implement my Strategy with Interactive brokers using their Java API. Unfortunately, I'm not quite sure what the error is below. I want to be able to place Forex and Futures Trades. However, right now, I cannot even receive a Quote for Java. My code is below. Code: PrintWrapper wrapper = new PrintWrapper(); EClientSocket client = new EClientSocket(wrapper); int clientId = 1; client.eConnect("127.0.0.1", 7496, clientId); Contract con = new Contract(); con.m_localSymbol = "EUR"; con.m_symbol = "EUR"; con.m_currency = "USD"; con.m_exchange = "IDEALPRO"; con.m_secType = "CASH"; int tickerId = 100001; System.out.println("PLEASE GIVE ME MARKET DATA"); client.reqMktData(tickerId, con, "", true); System.out.println("Sample TWS API Client Java code to print market data"); System.out.println("getting quotes for AAPL STK"); System.out.println("Press CTRL-C to quit"); Contract contract = new Contract(); contract.m_symbol="AAPL"; contract.m_secType="STK"; contract.m_exchange="SMART"; //contract.expiry="200303"; tickerId = 10002; client.reqMktData(tickerId,contract, "", true); Thread.yield(); The output I get is below. Can anyone please help me with this? Server Version:49 TWS Time at connection:20100906 23:54:17 EST PLEASE GIVE ME MARKET DATA nextValidId: 100023 Sample TWS API Client Java code to print market data getting quotes for AAPL STK Press CTRL-C to quit Thanks in advance.