execution

Function execution 

Source
pub fn execution(
    symbol: impl Into<String>,
    security_type: impl Into<String>,
    exchange: impl Into<String>,
) -> OrderCondition
Expand description

Create an execution condition directly.

Unlike other condition types, execution conditions don’t have a threshold, so this function returns an OrderCondition directly rather than a builder.

§Parameters

  • symbol: Symbol of the contract
  • security_type: Security type (e.g., “STK”, “OPT”)
  • exchange: Exchange where execution is monitored

§Example

use ibapi::orders::builder::execution;

let condition = execution("MSFT", "STK", "SMART");