SPARK-1197 MarketSegmentID
This commit is contained in:
1 parent
f7a3b3ebc1
commit
a7b3b0fa6d
3 files changed
+10
-6
No files matched your search
@@ -58,6 +58,7 @@ message GLBXExchangeData {
|
||||
uint32 main_fraction = 30;
|
||||
uint32 sub_fraction = 31;
|
||||
uint32 price_display_format = 32;
|
||||
uint32 market_segment_id = 33;
|
||||
}
|
||||
message CBOEExchangeData {
|
||||
int64 exchange_id = 10;
|
||||
|
||||
@@ -22,11 +22,14 @@ FixedSecurity::FixedSecurity() :
|
||||
type(api::SECURITYTYPE_STOCK),
|
||||
exchange(api::VENUE_UNSET),
|
||||
display_factor(0),
|
||||
cboe_class_key(0),
|
||||
cme_market_segment_id(0),
|
||||
price_break(0),
|
||||
low_tick(0),
|
||||
high_tick(0),
|
||||
cboe_class_key(0),
|
||||
cme_market_segment_id(0),
|
||||
cme_main_fraction(0),
|
||||
cme_sub_fraction(0),
|
||||
cme_price_display_format(0),
|
||||
_symbol(),
|
||||
_cfi_code(),
|
||||
_security_desc(),
|
||||
@@ -157,6 +160,7 @@ void convert_security(const FixedSecurity& source, Security* presult) {
|
||||
dest.mutable_glbx()->set_security_desc(source.security_desc());
|
||||
dest.mutable_glbx()->set_cfi_code(source.cfi_code());
|
||||
dest.mutable_glbx()->set_cme_symbol(source.alt_symbol());
|
||||
if (source.cme_market_segment_id != 0) dest.mutable_glbx()->set_market_segment_id(source.cme_market_segment_id);
|
||||
if (source.cme_main_fraction != 0) dest.mutable_glbx()->set_main_fraction(source.cme_main_fraction);
|
||||
if (source.cme_sub_fraction != 0) dest.mutable_glbx()->set_sub_fraction(source.cme_sub_fraction);
|
||||
if (source.cme_price_display_format) dest.mutable_glbx()->set_price_display_format(source.cme_price_display_format);
|
||||
@@ -257,6 +261,7 @@ void convert_security(const Security& src, FixedSecurity& dest, bool set_securit
|
||||
dest.security_desc(src.glbx().security_desc());
|
||||
dest.cfi_code(src.glbx().cfi_code());
|
||||
dest.alt_symbol(src.glbx().cme_symbol());
|
||||
dest.cme_market_segment_id = src.glbx().market_segment_id();
|
||||
dest.cme_main_fraction = src.glbx().main_fraction();
|
||||
dest.cme_sub_fraction = src.glbx().sub_fraction();
|
||||
dest.cme_price_display_format = src.glbx().price_display_format();
|
||||
|
||||
@@ -45,15 +45,13 @@ public:
|
||||
|
||||
int8_t display_factor;
|
||||
|
||||
uint32_t cboe_class_key;
|
||||
|
||||
uint32_t cme_market_segment_id;
|
||||
|
||||
double price_break;
|
||||
double low_tick;
|
||||
double high_tick;
|
||||
double cash_per_point;
|
||||
|
||||
uint32_t cboe_class_key;
|
||||
uint8_t cme_market_segment_id;
|
||||
uint8_t cme_main_fraction;
|
||||
uint8_t cme_sub_fraction;
|
||||
uint8_t cme_price_display_format;
|
||||
|
||||
Reference in new issue
Block a user