From 76218fd35a0c25c397679a195c39a14e12a005c0 Mon Sep 17 00:00:00 2001 From: Eric Harding Date: Wed, 22 May 2019 17:05:36 -0400 Subject: [PATCH] SPARK-2194 synthetic book display needs more digits --- src/lib/md/MDConsumerHandle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/md/MDConsumerHandle.cpp b/src/lib/md/MDConsumerHandle.cpp index 40efeded5..844ca35d9 100644 --- a/src/lib/md/MDConsumerHandle.cpp +++ b/src/lib/md/MDConsumerHandle.cpp @@ -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; }