Caplin FXIntegrationAPI Documentation - Version 3.47.0-2976-15da410

Message Builder Example - OrderBlotterRecord

package com.caplin.examples.fxapi.generated.motif.fx.orders.OrderBlotterTypesDef; 

import java.math.BigInteger;
import java.time.ZoneId;

import com.caplin.generated.motif.fx.orders.OrderBlotterTypesDef;
import com.caplin.generated.motif.fx.orders.OrderDetailsPartsDef;

public class OrderBlotterRecordExample {
    public static void main(String[] args) {
                    		
		OrderBlotterTypesDef.OrderBlotterRecord orderBlotterRecord =
		OrderBlotterTypesDef.OrderBlotterRecord
			.newBuilder()
			.setCommonFields(
			OrderDetailsPartsDef.CommonFields
				.newBuilder()
				.setAccount("", true)
				.setAccountEditable()
				.setActivationDate("", true)
				.setActivationDateEditable()
				.setActivationDateTime("", true)
				.setActivationDateTimeEditable()
				.setActivationDisplayTimeZone(ZoneId.systemDefault(), true)
				.setActivationDisplayTimeZoneEditable()
				.setActivationLocation("", true)
				.setActivationLocationEditable()
				.setActivationTime("", true)
				.setActivationTimeEditable()
				.setActivationType("", true)
				.setActivationTypeEditable()
				.setActivationUTCOffset("", true)
				.setActivationUTCOffsetEditable()
				.setAlertType("", true)
				.setAlertTypeEditable()
				.setAllowedActions("")
				.setCurrencyPair("", true)
				.setCurrencyPairEditable()
				.setExpirationDate("", true)
				.setExpirationDateEditable()
				.setExpirationDateTime(Instant.now(), true)
				.setExpirationDateTimeEditable()
				.setExpirationDisplayTimeZone(ZoneId.systemDefault(), true)
				.setExpirationDisplayTimeZoneEditable()
				.setExpirationLocation("", true)
				.setExpirationLocationEditable()
				.setExpirationTime("", true)
				.setExpirationTimeEditable()
				.setExpirationType("", true)
				.setExpirationTypeEditable()
				.setExpirationUTCOffset("", true)
				.setExpirationUTCOffsetEditable()
				.setOrderCount("")
				.setOrderID("")
				.setStrategyType("", true)
				.setStrategyTypeEditable()
				.setTOBOUser("client@customer.co.za")
				.setTemperature("2")
				.setTraderUsername("sales_trader@novobank.co.za")
				.build())
			.setLegFields(
			OrderDetailsPartsDef.LegFields
				.newBuilder()
				.setAmount("", true)
				.setAmountEditable()
				.setBenchmarkType("", true)
				.setBenchmarkTypeEditable()
				.setBuySell("", true)
				.setBuySellEditable()
				.setChildLegId(0, true)
				.setChildLegIdEditable()
				.setChildRelationship("", true)
				.setChildRelationshipEditable()
				.setDealtCurrency("", true)
				.setDealtCurrencyEditable()
				.setEditable("")
				.setExecutionType("", true)
				.setExecutionTypeEditable()
				.setFillRate("", true)
				.setFillRateEditable()
				.setFilled("")
				.setLastActionBy("")
				.setLastActionDateTime(Instant.now())
				.setLimitPrice(BigDecimal.valueOf(0.0), true)
				.setLimitPriceEditable()
				.setLoopLegId("", true)
				.setLoopLegIdEditable()
				.setMonitorSide("", true)
				.setMonitorSideEditable()
				.setOrderFixingDate(LocalDate.now())
				.setOrderID("")
				.setOrderSettlementDate(LocalDate.now(), true)
				.setOrderSettlementDateEditable()
				.setOrderStatus("")
				.setOrderTenor("", true)
				.setOrderTenorEditable()
				.setPartnerLegId(0, true)
				.setPartnerLegIdEditable()
				.setPartnerRelationship("", true)
				.setPartnerRelationshipEditable()
				.setRemaining(BigDecimal.valueOf(0.0))
				.setRemarks("", true)
				.setRemarksEditable()
				.setStatus("AWAITING-PRICE")
				.setSubmittedDateTime("")
				.build())
			.build();
            
    }
}