OEC Application Programming Interface

Command Class

Order command: one of create, modify and cancel command of an Order

For a list of all members of this type, see Command Members.

System.Object
   MarshalByRefObject
      IDObject<Int32>
         IDObject
            OrderChild
               Command

public class Command : OrderChild

Remarks

During the lifetime of order, user can control it by sending commands.
Create command is associated with initial Version of order and created when client sends a new order.
Modify command also have new version of order, but cancel command does not.

When command is sent to server, it has Sent state. The state then could be changed to Failed, meaning that command was failed by the reason found in ResultComments property, or to Executed - meaning that command succeed. in both cases, ResultTimestamp property will updated with execution/failure timestamp.
When cancel command succeed, order becomes Cancelled or Completed - depending of number of active fills.
If the modify command succeds, current order version is replaced, and variable order properties, such as quantity or price will be updated.

Requirements

Namespace: OEC.API

Assembly: API (in API.dll)

See Also

Command Members | OEC.API Namespace | SendOrder | CancelOrder | ModifyOrder | Version