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§
- Commission
Report - Represents the commission generated by an execution.
- Execution
- Describes an order’s execution.
- Execution
Data - Execution
Filter - Filter criteria used to determine which execution reports are returned.
- Order
- Order describes the order.
- Order
Combo Leg - Order
Data - Order
State - Provides an active order’s current state.
- Order
Status - Contains all relevant information on the current status of the order execution-wise (i.e. amount filled and pending, filling price, etc.).
- Soft
Dollar Tier - 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.
- Auction
Strategy - Cancel
Order - Enumerates possible results from cancelling an order.
- Executions
- Enumerates possible results from querying an Execution.
- Exercise
Action - Exercise
Options - Liquidity
- Order
Condition - Order
Open Close - 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.
- Place
Order - Rule80A