SPARK-1710 add read_direct/read_implied/read_merged accessors for market data
This commit is contained in:
1 parent
7944338516
commit
00d91353a4
13 files changed
+275
-68
No files matched your search
@@ -245,7 +245,7 @@ public:
|
||||
std::array<PriceSize, COCONUT_MAX_DEPTH> bids, asks;
|
||||
TimeStamp time(snapshot ? 0 : chan.time());
|
||||
size_t copy_depth = HASFLAG(flags, MDRequest::DEPTH) ? COCONUT_MAX_DEPTH : 1;
|
||||
auto result = handle.get_depth(time, copy_depth, bids.data(), asks.data());
|
||||
auto result = handle.get_direct_book(time, copy_depth, bids.data(), asks.data());
|
||||
if (result == HandleReadResult::SUCCESS) {
|
||||
auto* p = pupd->mutable_book();
|
||||
for (size_t x = 0; x < COCONUT_MAX_DEPTH; ++x) {
|
||||
|
||||
Reference in new issue
Block a user