Skip to main content

same_as_request

Function same_as_request 

Source
pub fn same_as_request(
    o: &StopOrder,
    req: &PlaceStopOrderRequest,
    lots: i64,
) -> bool
Expand description

true when the broker stop order o is what req asks for: the same instrument, side, kind, number of lots (lots), stop price and limit price. Nothing else is compared: the broker does not return the cid, so this is how a stop order whose placement got no clear answer is recognised.