Caplin FXIntegrationAPI Documentation - Version 8.9.0
Message Builder Example - SalesLegFields
package com.caplin.examples.fxapi.generated.motif.fx.rates.QuotePartsDef;
import java.math.BigInteger;
import com.caplin.generated.motif.fx.rates.QuotePartsDef;
public class SalesLegFieldsExample {
public static void main(String[] args) {
QuotePartsDef.SalesLegFields salesLegFields =
QuotePartsDef.SalesLegFields
.newBuilder()
.setComponent1(
QuotePartsDef.SalesSyntheticComponentLegFields
.newBuilder()
.setAllInRateDPS("5")
.setFwdMidPoints(BigDecimal.valueOf(0.005390))
.setTraderFwdAskPoints(BigDecimal.valueOf(0.001198))
.setTraderFwdBidPoints(BigDecimal.valueOf(0.001198))
.build())
.setComponent2(
QuotePartsDef.SalesSyntheticComponentLegFields
.newBuilder()
.build())
.setDefaultFwdAskMargin("0.000019")
.setDefaultFwdBidMargin("0.000019")
.setTraderAllInAskRate("1.091790")
.setTraderAllInBidRate("1.091790")
.setTraderFwdAskPoints("0.001198")
.setTraderFwdBidPoints("0.001198")
.build();
}
}