SPARK-1659 Refactor to use IntPrice everywhere to reduce logic duplication
This commit is contained in:
1 parent
e8b210913c
commit
d6539348ea
7 files changed
+104
-126
No files matched your search
@@ -70,11 +70,11 @@ struct MDPlayer : md::IRelayWriter
|
||||
|
||||
size_t i = 0;
|
||||
for (auto &b : book.bids())
|
||||
bids[i++] = md::PriceSize(b.mantissa(),b.exponent(),b.size());
|
||||
bids[i++] = md::PriceSize({b.mantissa(),(int8_t)b.exponent()},b.size());
|
||||
|
||||
size_t n = 0;
|
||||
for (auto &a : book.asks())
|
||||
asks[n++] = md::PriceSize(a.mantissa(),a.exponent(),a.size());
|
||||
asks[n++] = md::PriceSize({a.mantissa(),(int8_t)a.exponent()},a.size());
|
||||
obs.on_depth(*sec_ptr, bids, asks);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user