Navigation

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

    How to get LTP using python sdk

    Python SDK
    2
    4
    196
    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.
    • T
      Thiyaneswaran last edited by

      Hi Team,
      There is no example in documentation to fetch ltp using python sdk. which function i need to call to get ltp for the given scrips

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

        HI @Thiyaneswaran

        from smartapi import SmartConnect
        SmartApi =SmartConnect(api_key="Your Api Key")
        login = smartApi.generateSession('Your Client Id', 'Your Password')

        exchange = "NSE"
        tradingsymbol = "SBIN-EQ"
        symboltoken = 3045
        smartApi.ltpData("NSE", "SBIN-EQ", "3045")

        T S 2 Replies Last reply Reply Quote 1
        • T
          Thiyaneswaran @admin last edited by

          @admin Hi, Thanks for your quick response, Can you please share me sample other API call function which is not in documentation. and can you please me sample python (not SDK) login flow code

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

            @Thiyaneswaran
            Thanks

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