How about using the Zorro code also for your plugin? It is relatively easily to generate from the strike, expiration, etc. The class is stored at the begin of the CONTRACT struct and the exchange is converted to a number and stored in the Type field. That's all data you need. I can give you some code for the conversion.