}
/** this will make 3 entries for futures and 1 entry for equities */
private void store(final DDF_Instrument instrument) {
/**
* making assumption that first lookup of ESM0 will set symbol GUID per
* DDF convention; that is ESM2020 in year 2011;
* "if symbol expired, move forward"
*
* this logic can overwrite previously defined symbol; say we are in
* year 2011; say ESM0 was already defined for ESM2020 resolution; now
* request comes for ESM2010; now ESM0 will resolve to ESM2010, and not
* ESM2020
*
* @author g-litchfield Removed mapping by DDF_SYMBOL_REALTIME because
* this is not always unique and was causing caching problems,
* specifically in KCK2 vs KCK02
*
*/
final TextValue symbolDDF =
instrument.get(DDF_SYMBOL_REALTIME).toUpperCase();
final TextValue symbolHIST =
instrument.get(DDF_SYMBOL_HISTORICAL).toUpperCase();
final TextValue symbolGUID =
instrument.get(DDF_SYMBOL_UNIVERSAL).toUpperCase();
ddfInstrumentMap.put(symbolDDF, instrument);
// hack for bats
if (symbolDDF.toString().contains(".BZ")) {
final TextValue lookup =
ValueBuilder.newText(symbolDDF.toString()
.replace(".BZ", ""));
instrumentMap.put(lookup, instrument);
}