Package quickfix.field

Examples of quickfix.field.OrderID


            LogUtil.logThrowable(sessionID, e.getMessage(), e);
        }
    }
   
    public OrderID genOrderID() {
        return new OrderID(Integer.valueOf(++orderID).toString());
    }
View Full Code Here


            LOG.info("Given the requestSessionID '{}' calculated the replySessionID as '{}'", requestSessionID, replySessionID);

            String orderID = exchange.getIn().getHeader("orderID", String.class);

            OrderStatusRequest request = new OrderStatusRequest(new ClOrdID("XYZ"), new Symbol("GOOG"), new Side(Side.BUY));
            request.set(new OrderID(orderID));
            
            // Look for a reply execution report back to the requester session
            // and having the requested OrderID. This is a loose correlation but the best
            // we can do with FIX 4.2. Newer versions of FIX have an optional explicit correlation field.
            exchange.setProperty(QuickfixjProducer.CORRELATION_CRITERIA_KEY, new MessagePredicate(
View Full Code Here

            LogUtil.logThrowable(sessionID, e.getMessage(), e);
        }
    }
   
    public OrderID genOrderID() {
        return new OrderID(Integer.valueOf(++orderID).toString());
    }
View Full Code Here

        public void transform(Exchange exchange) throws FieldNotFound {
            String sessionID = (String) exchange.getIn().getHeader("sessionID");
            String orderID = (String) exchange.getIn().getHeader("orderID");

            OrderStatusRequest request = new OrderStatusRequest(new ClOrdID("XYZ"), new Symbol("GOOG"), new Side(Side.BUY));
            request.set(new OrderID(orderID));
            
            // Look for a reply execution report back to the requester session
            // and having the requested OrderID. This is a loose correlation but the best
            // we can do with FIX 4.2. Newer versions of FIX have an optional explicit correlation field.
            exchange.setProperty(QuickfixjProducer.CORRELATION_CRITERIA_KEY, new MessagePredicate(
View Full Code Here

            LogUtil.logThrowable(sessionID, e.getMessage(), e);
        }
    }
   
    public OrderID genOrderID() {
        return new OrderID(Integer.valueOf(++orderID).toString());
    }
View Full Code Here

        public void transform(Exchange exchange) throws FieldNotFound {
            String sessionID = (String) exchange.getIn().getHeader("sessionID");
            String orderID = (String) exchange.getIn().getHeader("orderID");

            OrderStatusRequest request = new OrderStatusRequest(new ClOrdID("XYZ"), new Symbol("GOOG"), new Side(Side.BUY));
            request.set(new OrderID(orderID));
            
            // Look for a reply execution report back to the requester session
            // and having the requested OrderID. This is a loose correlation but the best
            // we can do with FIX 4.2. Newer versions of FIX have an optional explicit correlation field.
            exchange.setProperty(QuickfixjProducer.CORRELATION_CRITERIA_KEY, new MessagePredicate(
View Full Code Here

            LogUtil.logThrowable(sessionID, e.getMessage(), e);
        }
    }
   
    public OrderID genOrderID() {
        return new OrderID(Integer.valueOf(++orderID).toString());
    }
View Full Code Here

            LogUtil.logThrowable(sessionID, e.getMessage(), e);
        }
    }
   
    public OrderID genOrderID() {
        return new OrderID(Integer.valueOf(++orderID).toString());
    }
View Full Code Here

        }

        // Now create the FIX message
        quickfix.fix44.ExecutionReport fixMessage =
            new quickfix.fix44.ExecutionReport(
                    new OrderID(executionReport.getOrderId().toString()),
                    new ExecID(executionId),
                    ExecutionTypeConverter.toFix(executionReport.getType()),
                    OrderStatusConverter.toFix(executionReport.getOrderStatus()),
                    OrderSideConverter.toFix(executionReport.getSide()),
                    LeavesQtyConverter.toFix(executionReport.getLeavesQty()),
View Full Code Here

    @Override
    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));
View Full Code Here

TOP

Related Classes of quickfix.field.OrderID

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.