Examples of UnderlyingCombo


Examples of ch.aonyx.broker.ib.api.contract.UnderlyingCombo

        }
    }

    private void appendUnderlyingCombo(final RequestBuilder builder) {
        if (Feature.DELTA_NEUTRAL_COMBO_ORDER.isSupportedByVersion(getServerCurrentVersion())) {
            final UnderlyingCombo underComp = contract.getUnderlyingCombo();
            if (underComp != null) {
                builder.append(true);
                builder.append(underComp.getContractId());
                builder.append(underComp.getDelta());
                builder.append(underComp.getPrice());
            } else {
                builder.append(false);
            }
        }
    }
View Full Code Here

Examples of ch.aonyx.broker.ib.api.contract.UnderlyingCombo

        if (getVersion() >= 22) {
            order.setNotHeld(readBoolean(inputStream));
        }
        if (getVersion() >= 20) {
            if (readBoolean(inputStream)) {
                final UnderlyingCombo underlyingCombo = new UnderlyingCombo();
                contract.setUnderlyingCombo(underlyingCombo);
                underlyingCombo.setContractId(readInt(inputStream));
                underlyingCombo.setDelta(readDouble(inputStream));
                underlyingCombo.setPrice(readDouble(inputStream));
            }
        }
        if (getVersion() >= 21) {
            order.setAlgorithmStrategy(readString(inputStream));
            if (StringUtils.isNotEmpty(order.getAlgorithmStrategy())) {
View Full Code Here

Examples of ch.aonyx.broker.ib.api.contract.UnderlyingCombo

        }
        if (Feature.NOT_HELD.isSupportedByVersion(getServerCurrentVersion())) {
            builder.append(order.isNotHeld());
        }
        if (Feature.DELTA_NEUTRAL_COMBO_ORDER.isSupportedByVersion(getServerCurrentVersion())) {
            final UnderlyingCombo underlyingCombo = contract.getUnderlyingCombo();
            if (underlyingCombo != null) {
                builder.append(true);
                builder.append(underlyingCombo.getContractId());
                builder.append(underlyingCombo.getDelta());
                builder.append(underlyingCombo.getPrice());
            } else {
                builder.append(false);
            }
        }
        if (Feature.ALGORITHM_ORDER.isSupportedByVersion(getServerCurrentVersion())) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.