SPARK-2224 3/3 basic piq stream (unblocks jake)

This commit is contained in:
Eric Harding committed 2019-04-09 15:07:10 -04:00
1 parent a101a267ed
commit 0cf4b5c2c8
6 files changed
+156 -39

No files matched your search

-19
View File
@@ -393,25 +393,6 @@ public:
}
}
}
static std::optional<uint32_t> search_orders(const OrderKey oid, const std::vector<SnapshotOrder>& orders) {
IntPrice price = {};
size_t position = 0;
for (size_t x = 0; x < orders.size(); ++x) {
const auto& oo = orders[x];
if (oo.id == oid) {
return { position };
}
else if (price == oo.price) {
position += 1;
}
else {
price = oo.price;
position = 0;
}
}
return std::nullopt;
}
};
struct MDRelayServer : bts::co2::AuthenticatedMarketDataRelayBase {