final RequestBuilder builder = createRequestBuilder();
return builder.toBytes();
}
private RequestBuilder createRequestBuilder() {
final RequestBuilder builder = new ByteArrayRequestBuilder();
checkDeltaNeutralComboOrdersSupport();
checkScaleOrderSupport();
checkAlgorithmOrderSupport();
checkNotHeldSupport();
checkSecurityIdTypeSupport();
checkPlaceOrderByContractIdSupport();
checkSaleShortSupport();
checkHedgeOrderSupport();
checkOptOutSmartRoutingSupport();
checkDeltaNeutralOrderByContractIdSupport();
checkScaleOrdersSupport();
checkOrderComboLegsSupport();
checkTrailingPriceSupport();
builder.append(OutgoingMessageId.PLACE_ORDER_REQUEST.getId());
builder.append(getVersion());
builder.append(toInternalId(getId()));
appendContract(builder);
appendOrder(builder);
return builder;
}