Navigation

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

    WebSocket is not returning script values

    Test
    0
    3
    55
    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.
    • G
      GannuRamya last edited by

      I'm trying to fetch the LTP value for specific strike price, but the websocket is not returning expected values. It is returning as like below:
      2022-12-30 12:46:37.228620 : Start task in the background
      {'task': 'hb', 'channel': '', 'token': 'xxxxxxxx', 'user': 'xxxxx', 'acctid': 'xxxxx'}
      Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}]

      punit 1 Reply Last reply Reply Quote 0
      • punit
        punit @GannuRamya last edited by

        @GannuRamya, looks like you are using websocket V1. AB have migrated to websocketV2. Below is are the details.

        https://smartapi.angelbroking.com/topic/1861/user-feedback-websocket-2-0-beta-rollout-python-language

        1 Reply Last reply Reply Quote 0
        • G
          GannuRamya last edited by

          @Ashok Thanks for your valuable reply. Updated WebSocket V1 to WebSocket V2. It solved my issue.

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