Caplin FXIntegrationAPI Documentation - Version 8.9.0
Message Builder Example - SalesSyntheticComponentFields
package com.caplin.examples.fxapi.generated.motif.fx.rates.QuotePartsDef;
import java.math.BigInteger;
import com.caplin.generated.motif.fx.rates.QuotePartsDef;
public class SalesSyntheticComponentFieldsExample {
public static void main(String[] args) {
QuotePartsDef.SalesSyntheticComponentFields salesSyntheticComponentFields =
QuotePartsDef.SalesSyntheticComponentFields
.newBuilder()
.setCurrencyPair("")
.setDigitsBeforePips("2")
.setNumberOfPips("2")
.setSpotMidRate(BigDecimal.valueOf(1.08345))
.setSpotRateDPS(5)
.setTraderSpotAskRate(BigDecimal.valueOf(1.08575))
.setTraderSpotBidRate(BigDecimal.valueOf(1.08575))
.build();
}
}