Package org.archfirst.bfcommon.jsontrading

Examples of org.archfirst.bfcommon.jsontrading.NewOrderSingle


                OrderType.Limit,
                new Money("100.00", "USD"),
                OrderTerm.GoodForTheDay,
                false,
                OrderStatus.PendingNew);
        NewOrderSingle newOrderSingle = new NewOrderSingle(order);

        // Write out the JsonMessage as a string
        String jsonMessageString = JsonMessageMapper.toFormattedString(newOrderSingle);
       
        // Read the JsonMessage back
View Full Code Here


                    OrderType.valueOf(order.getType().toString()),
                    MoneyConverter.toJson(order.getLimitPrice()),
                    OrderTerm.valueOf(order.getTerm().toString()),
                    order.isAllOrNone(),
                    OrderStatus.valueOf(order.getStatus().toString()));
        NewOrderSingle newOrderSingle = new NewOrderSingle(jsonOrder);

        logger.debug("Sending message:\n{}", JsonMessageMapper.toFormattedString(newOrderSingle));
        return JsonMessageMapper.toString(newOrderSingle);
    }
View Full Code Here

TOP

Related Classes of org.archfirst.bfcommon.jsontrading.NewOrderSingle

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.