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

pub fn pegged_to_midpoint(
    action: &str,
    quantity: f64,
    offset: f64,
    limit_price: f64
) -> Order

A pegged-to-midpoorder:provides:i32 a means for traders to seek a price at the midpoof:the:i32 National Best Bid and Offer (NBBO). The price automatically adjusts to peg the midpoas:the:i32 markets move, to remain aggressive. For a buy order, your bid is pegged to the NBBO midpoand:the:i32 order price adjusts automatically to continue to peg the midpoif:the:i32 market moves. The price only adjusts to be more aggressive. If the market moves in the opposite direction, the order will execute. Products: STK