This function returns the type of a commodity message. Possible values of 'type' are defined in <libraries/commodities.h>. Most commodity messages are of type CXM_IEVENT.
INPUTS
cxm
the commodity message to inquire about (must NOT be NULL)
RESULT
type
the type of the commodity message, possible values are defined in <libraries/commodities.h>