Search in sources :

Example 1 with HandlInst

use of quickfix.field.HandlInst in project camel by apache.

the class TradeExecutorExample method createNewOrderMessage.

private NewOrderSingle createNewOrderMessage() {
    NewOrderSingle order = new NewOrderSingle(new ClOrdID("CLIENT_ORDER_ID"), new HandlInst('1'), new Symbol("GOOG"), new Side(Side.BUY), new TransactTime(new Date()), new OrdType(OrdType.LIMIT));
    order.set(new OrderQty(10));
    order.set(new Price(300.00));
    return order;
}
Also used : NewOrderSingle(quickfix.fix42.NewOrderSingle) Side(quickfix.field.Side) OrderQty(quickfix.field.OrderQty) Price(quickfix.field.Price) Symbol(quickfix.field.Symbol) OrdType(quickfix.field.OrdType) ClOrdID(quickfix.field.ClOrdID) HandlInst(quickfix.field.HandlInst) TransactTime(quickfix.field.TransactTime) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 ClOrdID (quickfix.field.ClOrdID)1 HandlInst (quickfix.field.HandlInst)1 OrdType (quickfix.field.OrdType)1 OrderQty (quickfix.field.OrderQty)1 Price (quickfix.field.Price)1 Side (quickfix.field.Side)1 Symbol (quickfix.field.Symbol)1 TransactTime (quickfix.field.TransactTime)1 NewOrderSingle (quickfix.fix42.NewOrderSingle)1