Navigation

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

    Unable to fetch LTP

    General Discussion
    7
    12
    201
    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.
    • N
      NST @sakshi_97 last edited by

      @krishna I suppose you're passing wrong feedToken. Please review.

      Ramesh 0 1 Reply Last reply Reply Quote 0
      • Ramesh 0
        Ramesh 0 @NST last edited by

        @sandipkhairnar

        I am also trying the same and getting 404 error. Here is a screenshot:
        3748fa8a-69b5-4026-91f1-045aeee11676-image.png

        I am trying to get the LTP for days now. Please help me. I have already tried the 'SmartConnect' approach and it gives me 500 (Internal Sever error). I am happy to continue with the API documentation.

        Kindly help me get through this.

        Thank you 🙂

        C 1 Reply Last reply Reply Quote 0
        • C
          chetan.yakapur @Ramesh 0 last edited by

          @A224819 I can see a space in the URL. Also for the post method only data is enough, no need of params. You can download the smarApi package and see the code implemented by Angel developers.

          Ramesh 0 1 Reply Last reply Reply Quote 0
          • Ramesh 0
            Ramesh 0 @chetan.yakapur last edited by Ramesh 0

            @Shailesh
            Bro, can you please tell me what package you are referring to? I am using the documentation (this part), which does take the params (header and the security/exchange symbol data):
            d1306824-7485-4e8a-b7cc-2351227d032c-image.png

            Also, I have tried removing the space and still no luck, mate! 😞
            a4ef1c6d-123c-4480-97b5-4b0cbe06a993-image.png

            Thank you.

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

              @krishna said in Unable to fetch LTP:

              404 page not found error when trying to fetch LTP.

              Hi, please verify trading symbol, symbol token and exchange inputs from below link

              https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

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

                Hi @A224819 , Exchange input is incorrect in your code.

                {"token":"474","symbol":"3MINDIA-EQ","name":"3MINDIA","expiry":"","strike":"-1.000000","lotsize":"1","instrumenttype":"","exch_seg":"NSE","tick_size":"5.000000"}

                Please verify trading symbol, symbol token and exchange inputs from below link

                https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

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

                  @admin

                  i am using php library

                  Request URL: https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/getLtpData
                  Request Method: POST
                  Status Code: 405

                  Req Param:
                  {"exchange":"NSE","tradingsymbol":"TCS-EQ","symboltoken":"11536"}

                  Res :
                  {"status":"fail","error":"","http_code":405,"http_error":"Method not allowed","response_data":null}

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

                    HI @krishna7578 We have reported this to our team we will update you soon.

                    1 Reply Last reply Reply Quote 0
                    • W
                      webseos @sakshi_97 last edited by

                      @krishna Can you write sample quote to get profile data, sample php code

                      what to be sent from websocket

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

                        HI @webseos follow below thread:
                        https://smartapi.angelbroking.com/topic/1186/ltp-error-in-php-library

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

                          HI @A224819 @krishna @This issue has been resolved.

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