Package com.ib.client

Examples of com.ib.client.UnderComp


    c.m_primaryExch = m_primaryExch;
    c.m_secIdType = m_secIdType.getApiString();
    c.m_secId = m_secId;

    if (m_underComp != null) {
      c.m_underComp = new UnderComp();
      c.m_underComp.m_conId = m_underComp.conid();
      c.m_underComp.m_delta = m_underComp.delta();
      c.m_underComp.m_price = m_underComp.price();
    }
View Full Code Here


         if (m_status == Status.Done) {

            String msg = "Done, bid=" + m_bidSize + "@" + m_bidPrice +
                              " ask=" + m_askSize + "@" + m_askPrice;

            UnderComp underComp = m_contract.m_underComp;
            if (underComp != null) {
               msg += " DN: conId=" + underComp.m_conId
                        + " price=" + underComp.m_price
                        + " delta=" + underComp.m_delta;
            }
View Full Code Here

         {
            m_contract = new ComboContract("IBM");
            m_contract.m_comboLegs = new Vector(1);
            m_contract.m_comboLegs.setSize(1);

            m_contract.m_underComp = new UnderComp();
            //m_contract.m_underComp.m_delta = 0.8;
            //m_contract.m_underComp.m_price = 120;

            {
               Contract l1 = new OptContract("IBM", "200809", 120, "CALL");
               submitSecDef(1, l1);
            }

            m_status = Status.SecDef;
            break;
         }
      case 6:
         {
            m_contract = new ComboContract("RUT");
            m_contract.m_comboLegs = new Vector(1);
            m_contract.m_comboLegs.setSize(1);

            m_contract.m_underComp = new UnderComp();
            m_needFrontMonthFuture = true;

            {
               Contract l1 = new OptContract("RUT", "200809", 740, "CALL");
               submitSecDef(1, l1);
            }

            m_status = Status.SecDef;
            break;
         }
      case 7:
         {
            m_contract = new ComboContract("Z", "GBP", "LIFFE");
            m_contract.m_comboLegs = new Vector(1);
            m_contract.m_comboLegs.setSize(1);

            m_contract.m_underComp = new UnderComp();

            m_needFrontMonthFuture = true;

            {
               Contract l1 = new OptContract(
View Full Code Here

TOP

Related Classes of com.ib.client.UnderComp

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.