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

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


        return includeExistingDailyNews;
    }

    @Override
    public byte[] getBytes() {
        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }
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

        this.dateFormat = dateFormat;
    }

    @Override
    public byte[] getBytes() {
        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }
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

        super(StringIdUtils.uniqueRandomId());
    }

    @Override
    public byte[] getBytes() {
        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }
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

        this.returnedTickTypeFilters = returnedTickTypeFilters;
    }

    @Override
    public byte[] getBytes() {
        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }
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

        super(StringIdUtils.uniqueRandomId());
    }

    @Override
    public byte[] getBytes() {
        final RequestBuilder builder = createRequestBuilder();
        return builder.toBytes();
    }
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.RequestBuilder

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.