API Support Forum
OEC API > API Support > Identifying Demo accounts/other account types
Author Topic: Identifying Demo accounts/other account types
(3 messages, Page 1 of 1)
Moderators: VPfau
PDavies541
Posts: 21
Joined: Feb 01, 2013


Posted: Jun 06, 2013 @ 02:17 AM             Msg. 1 of 3
Is there some property on the account object that identifies that it is a live account or a SIM/DEMO account?

I cannot find anything other than the demo accounts tend to start with "DEMO".

Many thanks

Pete

Peter Davies
CMicciche902
Posts: 348
Joined:


Posted: Jun 06, 2013 @ 03:37 PM             Msg. 2 of 3
All accounts when connected to Developer server are simulation.
All accounts when connected to Demo server are simulation.
All accounts when connected to Production server are real.

Chris M
PDavies541
Posts: 21
Joined: Feb 01, 2013


Posted: Jun 11, 2013 @ 08:04 AM             Msg. 3 of 3
Got it - so my next question is - how do I know whether the customer is connected to developer, demo or production server?

Our code is implemented via indicators and we are using OEC.API.OECClient.Global to access events, orders etc. We don't make the connection ourselves, we just use the existing connection.

Is there a property that tells us the server type we are connected to?

Thanks

Pete


Peter Davies
Edited by PDavies541 on Jun 11, 2013 at 08:11:54