Package quickfix.field

Examples of quickfix.field.OrigClOrdID


    public String generateOrderCancelReject(Order order) {
        quickfix.fix44.OrderCancelReject fixMessage =
            new quickfix.fix44.OrderCancelReject(
                    new OrderID(order.getId().toString()),
                    new ClOrdID(order.getClientOrderId()),
                    new OrigClOrdID(order.getClientOrderId()),
                    OrderStatusConverter.toFix(order.getStatus()),
                    new CxlRejResponseTo(CxlRejResponseTo.ORDER_CANCEL_REQUEST));

        logger.debug("Sending message:\n{}", FixFormatter.format(fixMessage));
        return fixMessage.toString();
View Full Code Here


*/
public class OrigClOrdIDConverter {
   
    /** Returns a OrigClOrdID in the format brokerId-orderId, e.g. SPNG-300. */
    public static OrigClOrdID toFix(String brokerId, Long orderId) {
        return new OrigClOrdID(
                brokerId +
                "-" +
                orderId.toString());
    }
View Full Code Here

        // OrderID (37)
        OrderID orderID = new OrderID(order.getID());
       
        ClOrdID clientID = new ClOrdID(order.getClientID());
       
        OrigClOrdID origClientID = new OrigClOrdID(order.getOrigClientID());
       
        // OrdStatus (39) Status as a result of this report
        if ( order.getStatus().equals("<UNKNOWN>") )
            order.setStatus(OrdStatus.NEW);
        OrdStatus ordStatus = new OrdStatus(order.getFIXStatus());
View Full Code Here

            this.setClientID(clOrdID.getValue().toString());
        } catch (FieldNotFound ex) {}

        // OrigClOrdID
        try {
            OrigClOrdID origClOrdID = new OrigClOrdID();
            message.get(origClOrdID);
            this.setOrigClientID(origClOrdID.getValue().toString());
        } catch (FieldNotFound ex) {}
       
        Order oldOrder = FIXimulator.getApplication()
                .getOrders().getOrder(origClientID);
        if ( oldOrder != null ) {       
View Full Code Here

            this.setClientID(clOrdID.getValue().toString());
        } catch (FieldNotFound ex) {}

        // OrigClOrdID
        try {
            OrigClOrdID origClOrdID = new OrigClOrdID();
            message.get(origClOrdID);
            this.setOrigClientID(origClOrdID.getValue().toString());
        } catch (FieldNotFound ex) {}
       
        Order oldOrder = FIXimulator.getApplication()
                .getOrders().getOrder(origClientID);
        if ( oldOrder != null ) {       
View Full Code Here

TOP

Related Classes of quickfix.field.OrigClOrdID

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.