Ok, for getting the contract chain first SET_SYMBOL, SET_MULTIPLIER, SET_CLASS is called, then GET_OPTIONS with an array of 10000 CONTRACT structs.

For buying and selling an option, the symbol is passed in char* Asset, coded in the way as described on the "IB" page of the manual.