refactor vector<tuple<price,qty>> to SmallBook (vector alias), and SmallBookLevel (actual struct instead of tuple)

This commit is contained in:
John Colvin committed 2020-12-01 12:44:25 -06:00
1 parent afb0cdfbaf
commit 724df36bdc
10 files changed
+99 -82

No files matched your search

+1 -1
View File
@@ -219,7 +219,7 @@ int polygon_books(const std::string& pcap, const std::string& db, const std::str
uint32_t i = 0;
bts_assert(bk.size() <= 10);
for (; i < bk.size(); i++)
out << "," << std::get<0>(bk[i]) << "," << std::get<1>(bk[i]);
out << "," << bk[i].price << "," << bk[i].quantity.value();
while (i++ < MDP3_MAX_BOOK_DEPTH)
out << ",NaN,0";
return out;