Caplin FXIntegrationAPI Documentation - Version 3.58.0

Message Builder Example - TradeConfirmation

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

import java.math.BigInteger;

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

public class TradeConfirmationExample {
    public static void main(String[] args) {
                    		
		TradeConfTypesDef.TradeConfirmation tradeConfirmation =
		TradeConfTypesDef.TradeConfirmation
			.newBuilder()
			.setCommonFields(
			TradeConfPartsDef.CommonTradeConfirmationFields
				.newBuilder()
				.setAccount("Garfields|GARF")
				.setAllocationMode("")
				.setCanAffirm("")
				.setCurrency("USD")
				.setEntityDescription("Customer 1")
				.setEntityId("CUSTONE")
				.setExecutionDateTime("20160322123621")
				.setInterestAmount("")
				.setInterestRate(BigDecimal.valueOf(0.0))
				.setMaturityDate(LocalDate.now())
				.setNumberOfDays("")
				.setPrincipalAmount(BigDecimal.valueOf(0.0))
				.setPrincipalPlusInterest(BigDecimal.valueOf(0.0))
				.setQuoteDateTime("")
				.setQuoteID("")
				.setStartDate(LocalDate.now())
				.setTOBOUser("client@customer.co.za")
				.setTradeDate("20160314")
				.setTradeID("00001561")
				.setTraderUsername("sales_trader@novobank.co.za")
				.setTradingType("")
				.build())
			.build();
            
    }
}