Merged in SPARK-2194 (pull request #236)

RTM: SPARK-2194 synthetic book display needs more digits
This commit is contained in:
Eric Harding authored and Pedro Pinto committed 2019-05-28 15:29:29 +00:00
commit 798c4dcd49
1 file changed
+2 -2
+2 -2
View File
@@ -279,12 +279,12 @@ TimeStamp copy_synthetic_depth(const SyntheticStrategy& synth, size_t count, Pri
const auto& spec = synth.security.contract_spec();
copy_synthetic_side(count, api::SIDE_BUY, spec, bid_leg_travs, scratch.data());
for (size_t x = 0; x < count; ++x) {
bid[x] = PriceSize_from_double<7>(scratch[x].price, scratch[x].size);
bid[x] = PriceSize_from_double<11>(scratch[x].price, scratch[x].size);
}
memset(scratch.data(), 0, sizeof(scratch));
copy_synthetic_side(count, api::SIDE_SELL, spec, ask_leg_travs, scratch.data());
for (size_t x = 0; x < count; ++x) {
ask[x] = PriceSize_from_double<7>(scratch[x].price, scratch[x].size);
ask[x] = PriceSize_from_double<11>(scratch[x].price, scratch[x].size);
}
return rv;
}