Caplin FXIntegrationAPI Documentation - Version 8.5.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()
			.setDefaultFwdAskMargin("0.000019")
			.setDefaultFwdBidMargin(BigDecimal.valueOf(0.000019))
			.setTraderAllInAskRate(BigDecimal.valueOf(1.091790))
			.setTraderAllInBidRate("1.091790")
			.setTraderFwdAskPoints("0.001198")
			.setTraderFwdBidPoints(BigDecimal.valueOf(0.001198))
			.build();
            
    }
}