The lines below are from the TWSevents file, containing the ActiveX callback function TWSevents.
The incoming events are first assigned to variable sd, based the id and message type, and then stored in global variable ticker, which is a structure array, and can be access in other functions...