Package com.ib.client

Examples of com.ib.client.ComboLeg


    m_designatedLocation = leg.m_designatedLocation;
    m_exemptCode = leg.m_exemptCode;
  }

  public ComboLeg getComboLeg() {
    ComboLeg leg = new ComboLeg();
    leg.m_conId = m_conid;
    leg.m_ratio = m_ratio;
    leg.m_action = m_action.toString();
    leg.m_exchange = m_exchange;
    leg.m_openClose = m_openClose.ordinal();
View Full Code Here


            int conId = Integer.parseInt( m_conId.getText());
            int ratio = Integer.parseInt( m_ratio.getText());
            int openClose = Integer.parseInt( m_openClose.getText());
            int shortSaleSlot = Integer.parseInt(m_shortSaleSlot.getText());
            int exemptCode = Integer.parseInt(m_exemptCode.getText().length() != 0 ? m_exemptCode.getText() : "-1");
            m_comboLegsModel.addComboLeg( new ComboLeg(conId, ratio,
                            m_action.getText(), m_exchange.getText(), openClose,
                            shortSaleSlot, m_designatedLocation.getText(), exemptCode) );
        }
        catch( Exception e) {
            reportError( "Error - ", e);
View Full Code Here

    synchronized public int getColumnCount() {
        return 8;
    }

    synchronized public Object getValueAt(int r, int c) {
        ComboLeg leg = (ComboLeg)m_allData.get(r);

        switch (c) {
            case 0:
                return Integer.toString(leg.m_conId);
            case 1:
View Full Code Here

                * Note: we are requesting SecDefs only if we need Combo's
                */

               int legId = reqId - 1;

               ComboLeg comboLeg = new ComboLeg(
                  contractDetails.m_summary.m_conId, /* ratio */ 1,
                  (reqId == 1 ? "BUY" : "SELL"), m_contract.m_exchange, 0);

               m_contract.m_comboLegs.set(legId, comboLeg);

View Full Code Here

            int ratio = Integer.parseInt( m_ratio.getText());
            int openClose = Integer.parseInt( m_openClose.getText());
            int shortSaleSlot = Integer.parseInt(m_shortSaleSlot.getText());
            int exemptCode = Integer.parseInt(m_exemptCode.getText().length() != 0 ? m_exemptCode.getText() : "-1");
            double price = parseStringToMaxDouble(m_price.getText());
            m_comboLegsModel.addComboLeg( new ComboLeg(conId, ratio,
                            m_action.getText(), m_exchange.getText(), openClose,
                            shortSaleSlot, m_designatedLocation.getText(), exemptCode),
                                    new OrderComboLeg(price) );
        }
        catch( Exception e) {
View Full Code Here

    synchronized public int getColumnCount() {
        return 9;
    }

    synchronized public Object getValueAt(int r, int c) {
        ComboLeg comboLeg = (ComboLeg)m_comboLegData.get(r);
        OrderComboLeg orderComboLeg = (OrderComboLeg)m_orderComboLegData.get(r);

        switch (c) {
            case 0:
                return Integer.toString(comboLeg.m_conId);
View Full Code Here

TOP

Related Classes of com.ib.client.ComboLeg

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.