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

pub fn market_with_protection(action: &str, quantity: f64) -> Order

This order type is useful for futures traders using Globex. A Market with Protection order is a market order that will be cancelled and resubmitted as a limit order if the entire order does not immediately execute at the market price. The limit price is set by Globex to be close to the current market price, slightly higher for a sell order and lower for a buy order. Products: FUT, FOP