Package com.ib.client

Examples of com.ib.client.EClientSocket


  private IntObjectOpenHashMap<AsyncCallback<MarketDataBarEvent>> requestIdBarCallbackMap;
  private AtomicInteger latestRequestId;

  public IbDataProducer() {
    latestRequestId = new AtomicInteger(0);
    ibSocket = new EClientSocket(this);
    ibSocket.eConnect("127.0.0.1", 7496, 1);
   
    requestIdContractMap = new IntObjectOpenHashMap<Contract>();
    requestIdBarCallbackMap = new IntObjectOpenHashMap<AsyncCallback<MarketDataBarEvent>>();
  }
View Full Code Here


import com.ib.client.EClientSocket;

public class Disconnect extends ApiCallback {
 
  public Disconnect() {
    EClientSocket connection = new EClientSocket(this);
    connection.eConnect("dev19", 7496, 0);
    connection.eDisconnect();
  }
View Full Code Here

      NEXT_VALID_ID = orderId;
    }
  };
 
  public OrderPlacer() {
    m_client = new EClientSocket( callback );
    m_client.eConnect("localhost", 7496, 1);
   
    init();
  }
View Full Code Here

    private int nextSymbolID = -1;
    private EClientSocket client = null;
   
    public TestRealTimeBars ()
    {
        client = new EClientSocket (this);
        client.eConnect (null, 7600, 0);
        try {Thread.sleep (1000);} catch (Exception e) {};
    }
View Full Code Here

  public IBConnection(String host, int port, int clientId) {
    this.host = host;
    this.port = port;
    this.clientId = clientId;
    receiver = new IBConsumerDispatcher();
    sender = new EClientSocket(receiver);
    sender.eConnect(host, port, clientId);
  }
View Full Code Here

TOP

Related Classes of com.ib.client.EClientSocket

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.