Trade FOREX with FXCM

  • Award-Winning Platform
  • 24/7 Customer Support
  • Trade Directly on Charts
  • Free $50K Practice Account
Register


Results 1 to 7 of 7

Thread: Can not make an order

  1. #1
    cmctrader is offline Member
    Join Date
    Dec 2007
    Posts
    160

    Can not make an order

    I am using a real accoutn, get an error followed.

    ZDas Exception
    ORA-20001: Account is not in pool. Skip request for acct 29936

    What is that mean? Something wrong with my account?
    Last edited by cmctrader; 08-26-2011 at 03:05 AM.

  2. #2
    rkichenama is offline FXCM Automated Platform Specialist
    Join Date
    Jun 2011
    Posts
    194
    Thank you for choosing FXCm and your interest in the FX Connect API.

    It seems that you are requesting a truncated account ID or an account not accessible from your login. Please note that your trading account ID should be about 8 characters long and you can retrieve a list of trading accounts through the API with the following code:

    Code:
        // retrieve a list of all the accounts under the current login credentials
        private List<O2GAccountRow> accountList()
        {
          // if the API is currently logged in
          if (isLoggedIn)
          {
            // create a request builder
            O2GRequestFactory requestBuilder = session.getRequestFactory();
            // create a request for a refresh of the accounts table
            O2GRequest request = requestBuilder.createRefreshTableRequest(O2GTable.Accounts);
            // set state to the request has not been completed
            requestCompleted = false;
            // send the request to the API
            session.sendRequest(request);
            // wait until the request has been completed
            while (!requestCompleted) { }
            // take the response object and interpret it as an account reader from the API
            O2GAccountsTableResponseReader accountsReader = (O2GAccountsTableResponseReader)objResponse;
            // create a list object to serve as the functions return value
            List<O2GAccountRow> returnObj = new List<O2GAccountRow>();
            // go through the account reader from the API
            for (int i = 0; i < accountsReader.Count; i++)
            // add each O2GAccountRow found in the account reader to the return value list
              returnObj.Add(accountsReader.getRow(i));
            // return the list created above
            return returnObj;
          }
          // otherwise
          else
          // since the API is not logged in, we are unable to find any accounts
            return null;
        }
    Richard Kichenama
    API Support

  3. #3
    cmctrader is offline Member
    Join Date
    Dec 2007
    Posts
    160
    It is a Pamm account, we changed the login id, it works.
    Thanks.

  4. #4
    olipticus is offline Member
    Join Date
    Oct 2008
    Posts
    8

    Same error when making an order

    I too am having a similar issue. When I create an order, I get this error:

    "Desc=19915;DAS 19915: ZDas Exception
    ORA-20001: Account is not in pool. Skip request for acct 1"

    I do not know why it is truncating my account ID number. When I print my account ID variable to the console output, it prints the whole number, but when it is passed to the valuemap->setstring(AccountID, acctID) it gets truncated. I am using c++ on Linux.

    Thank you for the help!

  5. #5
    olipticus is offline Member
    Join Date
    Oct 2008
    Posts
    8
    Quote Originally Posted by olipticus View Post
    I too am having a similar issue. When I create an order, I get this error:

    "Desc=19915;DAS 19915: ZDas Exception
    ORA-20001: Account is not in pool. Skip request for acct 1"

    I do not know why it is truncating my account ID number. When I print my account ID variable to the console output, it prints the whole number, but when it is passed to the valuemap->setstring(AccountID, acctID) it gets truncated. I am using c++ on Linux.

    Thank you for the help!
    Also, when I manually enter the ID number as valuemap->setstring(AccountID, "1234567"), it works perfect. But when I use a variable of type const char* it truncates the value.

  6. #6
    Natalya is online now Member
    Join Date
    Apr 2009
    Posts
    744
    Hi,

    Could you please provide code snippet how do you fill valuemap and retrieve order parameters (such as AccountID etc.)? It will greatly help to understand what is going wrong.

    Please also tell me the version of ForexConnect you use and platform (Linux 32 or 64-bit).

  7. #7
    olipticus is offline Member
    Join Date
    Oct 2008
    Posts
    8
    Hi Natalya,

    Thank you, but I got it working now. It won't work if I do this:

    const char* acctID;

    valuemap->setString(AccountID, acctID);


    But it will work if I do this:

    string acctID;

    valuemap->setString(AccountID, acctID.c_str());


    I am using version 1.0.1 on Linux 32-bit.

    Thanks again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.