Module ibapi::orders

source ·
Expand description

Data types for building and placing orders.

Re-exports

Modules

  • Make sure to test using only your paper trading account when applicable. A good way of finding out if an order type/exchange combination is possible is by trying to place such order manually using the TWS. Before contacting our API support team please refer to the available documentation.

Structs

Enums

  • Identifies the side. Generally available values are BUY and SELL. Additionally, SSHORT and SLONG are available in some institutional-accounts only. For general account types, a SELL order will be able to enter a short position automatically if the order quantity is larger than your current long position. SSHORT is only supported for institutional account configured with Long/Short account segments or clearing with a separate account. SLONG is available in specially-configured institutional accounts to indicate that long position not yet delivered is being sold.
  • Enumerates possible results from cancelling an order.
  • Enumerates possible results from querying an Execution.
  • Enumerates possible results from querying an Order.
  • For institutional customers only. Valid values are O (open) and C (close). Available for institutional clients to determine if this order is to open or close a position. When Action = “BUY” and OpenClose = “O” this will open a new position. When Action = “BUY” and OpenClose = “C” this will close and existing short position.