Navigation

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

    How do I get current price of any symbol token/company stocks..

    Python SDK
    3
    9
    103
    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.
    • D
      darshan last edited by

      How do I get the current price of any symbol token? I am using historical API and that gives open, high, close, low, and volume. Any specific API to get the current price?

      A W 2 Replies Last reply Reply Quote 0
      • A
        admin @darshan last edited by

        HI @darshan you can get the current market price by using ltp function or websocket.

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

          @admin I am using python SDK and tried to use obj.getltpdata() but it seems this function is not there in python SDK.

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

            HI @darshan Kindly go through below thread.
            https://github.com/angelbroking-github/smartapi-python

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

              @admin Hi Admin, I think the thread link is missing, I cant see. Can you please post again?

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

                HI @darshan You can go through above link now.

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

                  @admin Thanks

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

                    @darshan #

                    Get LTP

                    #create object of call
                    obj=SmartConnect(api_key="......")

                    exchange = "NSE"
                    tradingsymbol = "SBIN-EQ"
                    symboltoken = 3045
                    print("LTP SBIN-EQ")
                    print(obj.ltpData("NSE", "SBIN-EQ", "3045"))

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      darshan @webseos last edited by

                      @webseos Thank you so much

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