in fix/core/src/main/java/deltix/connector/fix/FixUtil.java [28:52]
public static CharSequence getSecurityType(InstrumentType securityType) {
switch (securityType) {
case EQUITY:
case ETF:
case INDEX:
return SecurityType.COMMON_STOCK;
case FX:
return SecurityType.FOREIGN_EXCHANGE_CONTRACT;
case FUTURE:
return SecurityType.FUTURE;
case OPTION:
return SecurityType.OPTION;
case BOND:
return SECURITY_TYPE_BOND;
case SYNTHETIC:
return SecurityType.MULTI_LEG_INSTRUMENT;
}
throw new IllegalArgumentException("Unsupported security type " + securityType);
}