Dropped polygon opportunities with quantity 0
This commit is contained in:
1 parent
24c06c5492
commit
2e13820e28
1 file changed
+2
-1
@@ -112,7 +112,8 @@ void PolygonOpportunityFinder::on_real_time_event(MDP3Event const &ev) {
|
||||
val.books_used.push_back(book_ref);
|
||||
}
|
||||
}
|
||||
if (all_secs_are_trading) {
|
||||
if (all_secs_are_trading &&
|
||||
(direct_available_qty > 0 || merged_available_qty > 0)) {
|
||||
val.direct_quantity.value() = direct_available_qty;
|
||||
val.merged_quantity.value() = merged_available_qty;
|
||||
result.push_back(val);
|
||||
|
||||
Reference in new issue
Block a user