Caplin FXIntegrationAPI Documentation - Version 8.8.0
Message Builder Example - PostTrade
package com.caplin.examples.fxapi.generated.motif.mm.posttrade.PostTradeTypesDef;
import java.math.BigInteger;
import com.caplin.generated.motif.mm.posttrade.PostTradePartsDef;
import com.caplin.generated.motif.mm.posttrade.PostTradeTypesDef;
public class PostTradeExample {
public static void main(String[] args) {
PostTradeTypesDef.PostTrade postTrade =
PostTradeTypesDef.PostTrade
.newBuilder()
.setPostTradeFields(
PostTradePartsDef.PostTradeFields
.newBuilder()
.setAccount("Garfields|GARF")
.setCurrency("USD")
.setIncreasedAmount("")
.setInterestRate(BigDecimal.valueOf(0.0))
.setInterestRateDPS("")
.setIsShariaTrade(true)
.setMaturityDate(LocalDate.now())
.setNoticePeriodDescription("")
.setNumberOfDays("")
.setOriginalAmount("")
.setPrincipalAmount(BigDecimal.valueOf(0.0))
.setRolledAmount(BigDecimal.valueOf(0.0))
.setStartDate("20150620")
.setTOBOUser("client@customer.co.za")
.setTradeID("00001561")
.setTradingType("")
.build())
.build();
}
}