Order

Order management is the main functionality of an initiator. An exchange must be capable of handling the following:

  • New order (35=D): This message is sent for a trading indication. This message can describe numerous types of orders, such as Limit, Fill or Kill, and Market order.
  • Cancel order (35=F): This message is sent to indicate that an order's been canceled.
  • Amend order (35=G): This message is sent to amend an order.

The onNewOrderSingle function is the function that handles the orders that are sent by the initiator. This function needs to get the principal order features:

  • Symbol (the ticker symbol)
  • Side (buy or sell)
  • Type (market, limit, stop, stop limit, and so on)
  • Quantity (the quantity to be traded)
  • Price (the price to be ...

Get Learn Algorithmic Trading now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.