Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    JSONObject["data not found"] not found.

    NodeJS SDK
    2
    10
    49
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pankaj8932 last edited by

      Hi I am new and trying to login using below code. But it gives me error every time. Can you please let me know what causing it or an I missing something?

      SmartConnect smartConnect = new SmartConnect();
      smartConnect.setApiKey(angel_api_key);
      smartConnect.generateSession(angel_userId, angel_password); (Error in this line)

      It gives below error
      Exception in thread "main" org.json.JSONException: JSONObject["data not found"] not found.

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @pankaj8932 last edited by

        Hi @pankaj8932 Have you migrated your account..?

        P 1 Reply Last reply Reply Quote 0
        • P
          pankaj8932 @admin last edited by

          @admin Not sure what it is but I never raised any request to
          migrate. Do I need to migrate my account for this? Can you help me on this? My client code id P51757

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @pankaj8932 last edited by

            Hi @pankaj8932 said in JSONObject["data not found"] not found.:

            P51757
            You have not migrated your account as we can see..Kindly fill below form to migrate your account.
            https://docs.google.com/forms/d/e/1FAIpQLSdgpCiDhSBa_bsKsec002e9unbeQkipOLFAKW7DzPvmiowsaw/viewform

            P 1 Reply Last reply Reply Quote 0
            • P
              pankaj8932 @admin last edited by

              @admin After migration I can access API with no issues. But now I am unable to place sell order from app. Every time it says "Trade in Margin product type is not allowed". When changing to Intraday again it says "Intraday trade is not allowed"

              Always I have to buy first then sell. If I do sell first then it gives above error. Earlier I was able to place this order. Can you check what goes wrong in my account?

              Same I tried in code and it give error if I use product type as PRODUCT_INTRADAY or PRODUCT_MIS

              A 1 Reply Last reply Reply Quote 0
              • A
                admin @pankaj8932 last edited by

                Hi @pankaj8932 You need to call normal customer care for this issue.

                P 1 Reply Last reply Reply Quote 0
                • P
                  pankaj8932 @admin last edited by

                  @admin Now I can place the intraday/margin sell order first through app/desktop but now I am unable to access API. It gives same error again " JSONObject["data not found"] not found".

                  I think these issues are interrelated. Can you please check from your side what is causing the issue.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    admin @pankaj8932 last edited by

                    Hi @pankaj8932 post your request and response here.

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      pankaj8932 @admin last edited by

                      @admin
                      SmartConnect smartConnect = new SmartConnect();
                      smartConnect.setApiKey(angel_api_key);
                      smartConnect.generateSession(angel_userId, angel_password); (Error in this line)

                      It gives below error
                      Exception in thread "main" org.json.JSONException: JSONObject["data not found"] not found.

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        admin @pankaj8932 last edited by

                        Hi @pankaj8932 please check your id password and try to regenerate session.Also have you migrated your account.?

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post