jjttjj/iboga

Enum values in data types.

Opened this issue · 0 comments

Example: the algoStrategy property in com.ib.client.Order is a string internally but has setters for both a string and the com.ib.client.Types$AlgoStrategy enum, but that enum contains a subset of the valid algostrategy types and the remaining must be set with the string setter. The getter method .algoStrategy returns the enum, which will have a value of "None" if it is not a valid com.ib.client.Types$AlgoStrategy value. We need to use getAlgoStrategy to get the string version.

Should the getters with a possible getX value as well as a enum getter always return the string getX variant?