Vincent 11 Report post Posted January 26, 2015 Hi, Is there a way to find our if an user account is a live account or a demo account through API? http://docs.labs.cityindex.com/#HTTP%20Services/LogOn.htm%3FTocPath%3DCIAPI%2520Reference|HTTP%2520Services|Authentication|_____3 Thanks. 1 inatadePlalse reacted to this Share this post Link to post
Physicsman 25 Report post Posted January 26, 2015 Hello Vincent, Yes there is in the following way: Test or demo accounts are always denoted as such in the Account Operator with a "- Demo" or "- Test". This suffix is always appended to the user name. For example: Chuck Bartowski - Test. Use the GetClientAndTradingAccount service call to retrieve account information. This returns the AccountInformationResponseDTO, which has the property LogonUserName. Parse this property to read the name "Chuck Bartowski - Test" and check the name string for - Test or - Demo. Share this post Link to post