15 const std::vector<OrderPriorityCandidate>& candidates)
const {
16 if (!attached_ || !retained_parent_first_ || !ctx.
broker_flat
25 for (
const auto& candidate : candidates) {
29 if (!parent || !child)
return std::nullopt;
44 const bool exact_child = !child->
from_entry.empty()
48 && absent(child->
requested_qty) && child_percent >= 100.0 - 1e-9
49 && finite(child->
stop) && finite(child->
limit)
53 if (!exact_parent || !exact_child || child->
from_entry != parent->
id