Package ch.aonyx.broker.ib.api.util

Examples of ch.aonyx.broker.ib.api.util.ByteArrayRequestBuilder


        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }

    private RequestBuilder createRequestBuilder() {
        final RequestBuilder builder = new ByteArrayRequestBuilder();
        builder.append(OutgoingMessageId.REAL_TIME_BAR_UNSUBSCRIPTION_REQUEST.getId());
        builder.append(VERSION);
        builder.append(toInternalId(getId()));
        return builder;
    }
View Full Code Here


        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }

    private RequestBuilder createRequestBuilder() {
        final RequestBuilder builder = new ByteArrayRequestBuilder();
        builder.append(OutgoingMessageId.CANCEL_ORDER_REQUEST.getId());
        builder.append(VERSION);
        builder.append(toInternalId(getId()));
        return builder;
    }
View Full Code Here

        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }

    private RequestBuilder createRequestBuilder() {
        final RequestBuilder builder = new ByteArrayRequestBuilder();
        builder.append(OutgoingMessageId.HISTORICAL_DATA_UNSUBSCRIPTION_REQUEST.getId());
        builder.append(VERSION);
        builder.append(toInternalId(getId()));
        return builder;
    }
View Full Code Here

        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }

    private RequestBuilder createRequestBuilder() {
        final RequestBuilder builder = new ByteArrayRequestBuilder();
        checkMarketDataTypeRequest();
        builder.append(OutgoingMessageId.MARKET_DATA_TYPE_REQUEST.getId());
        builder.append(VERSION);
        builder.append(marketDataType.getValue());
        return builder;
    }
View Full Code Here

        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }

    private RequestBuilder createRequestBuilder() {
        final RequestBuilder builder = new ByteArrayRequestBuilder();
        builder.append(OutgoingMessageId.EXECUTION_REPORT_REQUEST.getId());
        builder.append(VERSION);
        if (Feature.EXECUTION_MARKER.isSupportedByVersion(getServerCurrentVersion())) {
            builder.append(toInternalId(getId()));
        }
        appendFilter(builder);
        return builder;
    }
View Full Code Here

        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }

    private RequestBuilder createRequestBuilder() {
        final RequestBuilder builder = new ByteArrayRequestBuilder();
        builder.append(OutgoingMessageId.HISTORICAL_DATA_SUBSCRIPTION_REQUEST.getId());
        builder.append(VERSION);
        builder.append(toInternalId(getId()));
        appendContract(builder);
        builder.append(endDateTime);
        builder.append(barSize.getFormattedBarSize());
        builder.append(duration.getFormattedDuration());
        builder.append(useRegularTradingHours);
        builder.append(historicalDataType.getLabel());
        builder.append(dateFormat.getValue());
        appendComboLegs(builder);
        return builder;
    }
View Full Code Here

        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }

    private RequestBuilder createRequestBuilder() {
        final RequestBuilder builder = new ByteArrayRequestBuilder();
        builder.append(OutgoingMessageId.NEWS_BULLETIN_SUBSCRIPTION_REQUEST.getId());
        builder.append(VERSION);
        builder.append(includeExistingDailyNews);
        return builder;
    }
View Full Code Here

        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }

    private RequestBuilder createRequestBuilder() {
        final RequestBuilder builder = new ByteArrayRequestBuilder();
        checkDeltaNeutralOrderSupport();
        checkContractIdSupport();
        builder.append(OutgoingMessageId.MARKET_DATA_SUBSCRIPTION_REQUEST.getId());
        builder.append(VERSION);
        builder.append(toInternalId(getId()));
        appendContract(builder);
        appendCombo(builder);
        appendUnderlyingCombo(builder);
        appendReturnedTickTypeFilters(builder);
        builder.append(snapshot);
        return builder;
    }
View Full Code Here

        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }

    private RequestBuilder createRequestBuilder() {
        final RequestBuilder builder = new ByteArrayRequestBuilder();
        checkGlobalCancelOrderRequest();
        builder.append(OutgoingMessageId.CANCEL_ALL_ORDERS_REQUEST.getId());
        builder.append(VERSION);
        return builder;
    }
View Full Code Here

        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }

    private RequestBuilder createRequestBuilder() {
        final RequestBuilder builder = new ByteArrayRequestBuilder();
        builder.append(OutgoingMessageId.MANAGED_ACCOUNT_LIST_REQUEST.getId());
        builder.append(VERSION);
        return builder;
    }
View Full Code Here

TOP

Related Classes of ch.aonyx.broker.ib.api.util.ByteArrayRequestBuilder

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.