Fix for HHD Balmo spreads

This commit is contained in:
Taha Afzal committed 2020-06-10 13:57:19 -04:00
1 parent aadd7df6c6
commit 3e1be70923
1 file changed
+6 -1
@@ -124,8 +124,13 @@ private:
const auto& sym = def.contractSymbol;
// TODO : this is only exception right now but for HHD sstrips
// def.contractSymbol is empty !
if (sym.size() == 0 && def.marketDesc.rfind("NG Swing GDD Futures - Henry", 0) == 0)
if (sym.size() == 0 &&
(
def.marketDesc.rfind("NG Swing GDD Futures - Henry", 0) == 0 ||
def.marketDesc.rfind("NG GDD for LD1 Futures Spr - Henry", 0) == 0
))
return "HHD";
auto end = sym.find(' ');
if(end == std::string::npos)
return sym;