[][src]Function twsapi::examples::order_samples::volatility

pub fn volatility(
    action: &str,
    quantity: f64,
    volatility_percent: f64,
    volatility_type: i32
) -> Order

Specific to US options, investors are able to create and enter volatility-type orders for options and combinations rather than price orders. Option traders may wish to trade and position for movements in the price of the option determined by its implied volatility. Because implied volatility is a key determinant of the premium on an option, traders position in specific contract months in an effort to take advantage of perceived changes in implied volatility arising before, during or after earnings or when company specific or broad market volatility is predicted to change. In order to create a volatility order, clients must first create a volatility Trader page from the Trading Tools menu and as they enter option contracts, premiums will display in percentage terms rather than premium. The buy/sell process is the same as for regular orders priced in premium terms except that the client can limit the volatility level they are willing to pay or receive. Products: FOP, OPT