Module orders

Source
Expand description

Data types for building and placing orders.

Re-exports§

pub use crate::contracts::TagValue;

Modules§

order_builder
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§

CommissionReport
Represents the commission generated by an execution.
Execution
Describes an order’s execution.
ExecutionData
ExecutionFilter
Filter criteria used to determine which execution reports are returned.
Order
Order describes the order.
OrderComboLeg
OrderData
OrderState
Provides an active order’s current state.
OrderStatus
Contains all relevant information on the current status of the order execution-wise (i.e. amount filled and pending, filling price, etc.).
SoftDollarTier
Stores Soft Dollar Tier information.

Enums§

Action
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.
AuctionStrategy
CancelOrder
Enumerates possible results from cancelling an order.
Executions
Enumerates possible results from querying an Execution.
ExerciseAction
ExerciseOptions
Liquidity
OrderCondition
OrderOpenClose
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.
Orders
Enumerates possible results from querying an Order.
PlaceOrder
Rule80A