Tabnine Logo
NewOrderSingle.getSide
Code IndexAdd Tabnine to your IDE (free)

How to use
getSide
method
in
quickfix.fix43.NewOrderSingle

Best Java code snippets using quickfix.fix43.NewOrderSingle.getSide (Showing top 1 results out of 315)

origin: org.quickfixj/quickfixj-examples-executor

public void onMessage(quickfix.fix43.NewOrderSingle order, SessionID sessionID) throws FieldNotFound,
    UnsupportedMessageType, IncorrectTagValue {
  try {
  validateOrder(order);
  OrderQty orderQty = order.getOrderQty();
  Price price = getPrice(order);
  quickfix.fix43.ExecutionReport accept = new quickfix.fix43.ExecutionReport(
        genOrderID(), genExecID(), new ExecType(ExecType.FILL), new OrdStatus(
            OrdStatus.NEW), order.getSide(), new LeavesQty(order.getOrderQty()
            .getValue()), new CumQty(0), new AvgPx(0));
  accept.set(order.getClOrdID());
  accept.set(order.getSymbol());
  sendMessage(sessionID, accept);
  if (isOrderExecutable(order, price)) {
    quickfix.fix43.ExecutionReport executionReport = new quickfix.fix43.ExecutionReport(genOrderID(),
        genExecID(), new ExecType(ExecType.FILL), new OrdStatus(OrdStatus.FILLED), order.getSide(),
        new LeavesQty(0), new CumQty(orderQty.getValue()), new AvgPx(price.getValue()));
    executionReport.set(order.getClOrdID());
    executionReport.set(order.getSymbol());
    executionReport.set(orderQty);
    executionReport.set(new LastQty(orderQty.getValue()));
    executionReport.set(new LastPx(price.getValue()));
    sendMessage(sessionID, executionReport);
  }
  } catch (RuntimeException e) {
    LogUtil.logThrowable(sessionID, e.getMessage(), e);
  }
}
quickfix.fix43NewOrderSinglegetSide

Popular methods of NewOrderSingle

  • <init>
  • get
  • getComponent
  • getField
  • getHeader
  • isSetField
  • setComponent
  • setField
  • getClOrdID
  • getOrderQty
  • getSymbol
  • set
  • getSymbol,
  • set

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now