Navigation

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

    What is FEED_TOKEN in websocket connection?

    General Discussion
    2
    2
    21
    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
      nisha last edited by

      What is FEED_TOKEN in websocket connection?

      J 1 Reply Last reply Reply Quote 0
      • J
        jiwan1986 @nisha last edited by

        @nisha Feed token is necessary if you want to stream live prices. You can get the feed token using the below snippet.

        obj = SmartConnect(api_key = API_KEY)
        data = obj.generateSession(CLIENT_ID, PASSWORD)
        FEED_TOKEN = obj.getfeedToken()
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post