Author |
Topic: Identifying an Exchange (3 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
FGingras Posts: 36 Joined: Oct 15, 2007 |
How do I get a specific exchange ID from the API? (i.e. where can I find an exchange enum with all the Exchange.IDs).
If (oecContract.Exchange.ID == 'the ID for ICE') //handle ICE orders differently I would rather use a enum than hard code an exchange string, and I see no such list in the docs anyway. Thanks, Francis |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
there is no such enum and there is no guarantee that exchange IDs will not be changed without notice.
You can get current exchange ID using OECClient.Exchanges collection after logging in. |
||||
FGingras Posts: 36 Joined: Oct 15, 2007 |
Hi,
This should be documented somewhere. Please provide me with a list of exchange codes. Francis |
||||