Caplin FXIntegrationAPI Documentation - Version 3.56.0

Message Builder Example - NettedLegSalesTradeConfirmationFields

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

import java.math.BigInteger;

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

public class NettedLegSalesTradeConfirmationFieldsExample {
    public static void main(String[] args) {
                    		
		TradeConfTypesDef.NettedLegSalesTradeConfirmationFields nettedLegSalesTradeConfirmationFields =
		TradeConfTypesDef.NettedLegSalesTradeConfirmationFields
			.newBuilder()
			.addSalesInputLegTradeConfirmation(
			TradeConfPartsDef.SalesLegTradeConfirmationFields
				.newBuilder()
				.setAllInMargin(BigDecimal.valueOf(0.0), true)
				.setAllInMarginEditable()
				.setFwdMargin("", true)
				.setFwdMarginEditable()
				.setTraderAllInRate("1.005390")
				.setTraderFwdPoints(BigDecimal.valueOf(0.005390))
				.build())
			.setSalesNettedLegTradeConfirmation(
			TradeConfPartsDef.SalesLegTradeConfirmationFields
				.newBuilder()
				.build())
			.build();
            
    }
}