Caplin FXIntegrationAPI Documentation - Version 8.9.0

Message Builder Example - SalesSwapTradeConfirmationFields

package com.caplin.examples.fxapi.generated.motif.fx.tradeconfirmation.TradeConfPartsDef; 

import java.math.BigInteger;

import com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef;

public class SalesSwapTradeConfirmationFieldsExample {
    public static void main(String[] args) {
                    		
		TradeConfPartsDef.SalesSwapTradeConfirmationFields salesSwapTradeConfirmationFields =
		TradeConfPartsDef.SalesSwapTradeConfirmationFields
			.newBuilder()
			.setComponent1(
			TradeConfPartsDef.SalesSwapSyntheticComponentTradeConfirmationFields
				.newBuilder()
				.setTraderSwapPoints("0.004211")
				.build())
			.setComponent2(
			TradeConfPartsDef.SalesSwapSyntheticComponentTradeConfirmationFields
				.newBuilder()
				.build())
			.setSwapMargin("0.000040")
			.setSwapMarginEditable()
			.setTraderSwapPoints(BigDecimal.valueOf(0.004211))
			.build();
            
    }
}