Caplin FXIntegrationAPI Documentation - Version 6.2.0
Message Builder Example - AllocationNettedLegTradeConfirmationFields
package com.caplin.examples.fxapi.generated.motif.fx.tradeconfirmation.TradeConfTypesDef;
import static com.caplin.motif.fx.config.DefaultDisplayFields.addDefaultSalesAllocationDetailsUpdateFields;
import com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef;
import com.caplin.generated.motif.fx.tradeconfirmation.TradeConfTypesDef;
public class AllocationNettedLegTradeConfirmationFieldsExample {
public static void main(String[] args) {
TradeConfTypesDef.AllocationNettedLegTradeConfirmationFields allocationNettedLegTradeConfirmationFields =
TradeConfTypesDef.AllocationNettedLegTradeConfirmationFields
.newBuilder()
.addAllocationInputLegTradeConfirmationFields(
TradeConfPartsDef.AllocationLegTradeConfirmationFields
.newBuilder()
.setDisplayFields(addDefaultSalesAllocationDetailsUpdateFields(/* See DefaultDisplayFields javadoc for parameters and available builder methods. */))
.setMarkToMarket("12.45")
.build())
.setAllocationNettedLegTradeConfirmation(
TradeConfPartsDef.AllocationLegTradeConfirmationFields
.newBuilder()
.build())
.build();
}
}