Compare commits

...
2 Commits
Author SHA1 Message Date
Taha Afzal 888b4e22c0 Ignoring strips with > 512 components 2020-06-05 14:11:34 -04:00
Taha Afzal 534ce5a8ec strips are XL too 2020-06-05 13:12:57 -04:00
@@ -224,8 +224,8 @@ void ICEListener::on_uds_future_spread(const Definition& def, bool& is_intereste
set_security_common(def, fsec);
fsec.alt_symbol(def.strategySymbol);
const auto& legs = def.legs;
if (legs.size() > 0/* && legs.size() <= 20*/) {
const auto& legs = def.legs;
if (legs.size() > 0 && legs.size() <= 512) {
fsec.set_leg_count(legs.size());
for(size_t x = 0; x < fsec.leg_count(); ++x)
{
@@ -251,6 +251,8 @@ void ICEListener::on_uds_future_spread(const Definition& def, bool& is_intereste
add_security(fsec);
is_interested = true;
}
else
LOG(md, Error, "Ignoring security {} with {} legs", def.marketDesc, legs.size());
}
@@ -261,7 +263,7 @@ void ICEListener::on_future_strip(const FutureDefinition& def, bool& is_interest
auto exchange_id = def.marketId;
if (filter_security(exchange_id, def) != ADD) return;
FixedSpreadSecurityXS fsec;
FixedSpreadSecurityXL fsec;
set_security_common(def, fsec);
fsec.alt_symbol(def.stripName);