Navigation

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

    Failed to get symbol details

    Bugs
    2
    10
    70
    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.
    • S
      Sourav last edited by

      @angelbroking @admin @SmartAPI_Angel @StocksDeveloper

      While calling getLtpdata api, I'm not able to get some stock details. They give this response.

      {
      "message": "Failed to get symbol details",
      "errorcode": "AB1018",
      "status": false,
      "data": null
      }

      I want to know the probable reasons behind this response.

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

        HI @Sourav please post your request here.

        S 1 Reply Last reply Reply Quote 0
        • S
          Sourav @admin last edited by

          @admin This is my request body.
          {
          "exchange": "NSE",
          "tradingsymbol": "182D010721-TB",
          "symboltoken": "2630"

          }

          And api endpoint is:

          https://apiconnect.angelbroking.com/order-service/rest/secure/angelbroking/order/v1/getLtpData

          S 1 Reply Last reply Reply Quote 0
          • S
            Sourav @Sourav last edited by Sourav

            @admin When I call this api endpoint for all nse stocks. Then approx 300 request giving this error response with "Failed to get symbol details" message.

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

              HI @Sourav You need to debug the code and check if you are breaching the limits.

              S 1 Reply Last reply Reply Quote 0
              • S
                Sourav @admin last edited by

                @admin What it means "breaching the limits"?
                I didn't understand. Can you explain a bit more about it?

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

                  HI @Sourav Possibilty for this is :

                  1. Entered token does not matches symbol in instrument file.
                  2. you can check what no of time your are hitting ltp function in 1 sec to fetch the ltp.
                  S 1 Reply Last reply Reply Quote 0
                  • S
                    Sourav @admin last edited by

                    @admin I have also got this response when I manually change the symbol and token.

                    {"exchange":"NSE","tradingsymbol":"KOTAKIT","symboltoken":"2632"}

                    {
                    "message": "Entered trading symbol and symbol token is mismatch",
                    "errorcode": "AB1019",
                    "status": false,
                    "data": null
                    }

                    Actual is value of symbol and token.

                    {"exchange":"NSE","tradingsymbol":"KOTAKIT-BL","symboltoken":"2632"}

                    And the response is

                    {
                    "status": true,
                    "message": "SUCCESS",
                    "errorcode": "",
                    "data": {
                    "exchange": "NSE",
                    "tradingsymbol": "KOTAKIT-BL",
                    "symboltoken": "2632",
                    "open": 0.0,
                    "high": 0.0,
                    "low": 0.0,
                    "close": 0.0,
                    "ltp": 0.0
                    }
                    }

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

                      HI @Sourav We are testing it we will update you on this.

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

                        HI @Sourav You can try with EQ series of instruments form the file.

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