Package ch.aonyx.broker.ib.api

Examples of ch.aonyx.broker.ib.api.RequestException


    }

    private void checkTrailingPriceSupport() {
        if (order.getTrailingPercent() != Double.MAX_VALUE) {
            if (!Feature.TRAILING_PERCENT.isSupportedByVersion(getServerCurrentVersion())) {
                throw new RequestException(ClientMessageCode.UPDATE_TWS,
                        "It does not support trailing percent parameter.", this);
            }
        }
    }
View Full Code Here


        return builder;
    }

    private void checkCancelCalculateImpliedVolatility() {
        if (!Feature.CANCEL_CALCULATE_IMPLIED_VOLATILITY.isSupportedByVersion(getServerCurrentVersion())) {
            throw new RequestException(ClientMessageCode.UPDATE_TWS,
                    "It does not support calculate implied volatility cancellation.", this);
        }
    }
View Full Code Here

        return builder;
    }

    private void checkCancelCalculateOptionPrice() {
        if (!Feature.CANCEL_CALCULATE_OPTION_PRICE.isSupportedByVersion(getServerCurrentVersion())) {
            throw new RequestException(ClientMessageCode.UPDATE_TWS,
                    "It does not support calculate option price cancellation.", this);
        }
    }
View Full Code Here

        return builder;
    }

    private void checkCalculateImpliedVolatility() {
        if (!Feature.CALCULATE_IMPLIED_VOLATILITY.isSupportedByVersion(getServerCurrentVersion())) {
            throw new RequestException(ClientMessageCode.UPDATE_TWS,
                    "It does not support calculate implied volatility requests.", this);
        }
    }
View Full Code Here

TOP

Related Classes of ch.aonyx.broker.ib.api.RequestException

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.