Examples of OrigClOrdID


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

Examples of quickfix.field.OrigClOrdID

*/
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

Examples of quickfix.field.OrigClOrdID

        // 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

Examples of quickfix.field.OrigClOrdID

            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

Examples of quickfix.field.OrigClOrdID

            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
Copyright © 2018 www.massapi.com. 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.