FifoMergedSecurityMatcher affect-free matching impl (assumes no implied markets)
This commit is contained in:
1 parent
2d6ca5a347
commit
46b4fab4ed
1 file changed
+6
+6
@@ -107,6 +107,12 @@ void FifoMergedSecurityMatcher::implied_matching_status(bool value) {
|
||||
}
|
||||
|
||||
void FifoMergedSecurityMatcher::on_order_change(const SmallOrderChange& ch, std::vector<MatchEffect>* effects, FillDepot& fills) {
|
||||
if (!ch.affect_book) {
|
||||
if (_me->implied_matching_status)
|
||||
ERROR("affect-free matching does not support implied markets (implied_matching_status=true, so affect-free fills will be unreliable)");
|
||||
matcher()->on_order_change(ch);
|
||||
return;
|
||||
}
|
||||
switch (ch.change) {
|
||||
case OrderChange::ChangeType::updated: {
|
||||
auto prev_ord_tup = matcher()->find_order(ch.order.key);
|
||||
|
||||
Reference in new issue
Block a user