Enabling spot market data

This commit is contained in:
Taha Afzal authored and John Colvin committed 2023-01-04 13:35:38 -05:00
1 parent 8c6835a919
commit b9b907490a
12 files changed
+94 -46

No files matched your search

+8 -5
View File
@@ -3,10 +3,11 @@
#include "PriceSize.h"
#include "UserSymbol.h"
#include "lib/config/config.h"
#include "lib/config/protos/market_data.pb.h"
#include "lib/config/protos/cme_reference_data.pb.h"
#include "lib/config/protos/market_data.pb.h"
#include "lib/domain_model/Security.h"
#include "lib/utils/parse_enum.h"
#ifndef _WIN32
#include <btree/map.h>
@@ -29,10 +30,12 @@ struct DisplayFactorMapper : public ISecurityMapper {
UserSymbol{uppercase_copy(ov.symbol()), *venue, *type},
-to_exponent(ov.price_multiplier())));
} else {
for (auto t :
{SecurityType::SECURITYTYPE_FUTURE,
SecurityType::SECURITYTYPE_SPREAD,
SecurityType::SECURITYTYPE_OPTION}) {
for (auto t : {
SecurityType::SECURITYTYPE_FUTURE,
SecurityType::SECURITYTYPE_SPREAD,
SecurityType::SECURITYTYPE_OPTION,
SecurityType::SECURITYTYPE_STOCK,
}) {
_mapped.insert(std::make_pair(
UserSymbol{uppercase_copy(ov.symbol()), *venue, t},
-to_exponent(ov.price_multiplier())));