Navigation

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

    Websocket response

    Python SDK
    2
    2
    46
    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.
    • S
      sudhakar last edited by

      I am getting some strange response from websocket, what responses I get on every message and how to interrupt ?
      __on_open################
      {'task': 'cn', 'channel': 'NONLM', 'token': '0941629945', 'user': 'SPUI1001', 'acctid': 'SPUI1001'}
      2021-06-07 14:18:04.774882 : Start task in the backgroundon open
      {'task': 'hb', 'channel': '', 'token': '0941629945', 'user': 'SPUI1001', 'acctid': 'SPUI1001'}

      [{'ak': 'ok', 'msg': 'connected', 'task': 'cn'}] 0
      [{'ak': 'ok', 'msg': 'heartbeat', 'task': 'hb'}] 1
      [{'name': 'tm', 'tvalue': '07/06/2021 14:18:06'}] 2
      [{'ap': '2211.74', 'bp': '2230.00', 'bq': '56', 'bs': '60', 'c': '2190.50', 'cng': '40.00', 'e': 'nse_cm', 'lo': '2185.00', 'ltp': '2230.50', 'ltq': '2', 'ltt': '07/06/2021 14:18:05', 'name': 'sf', 'nc': '01.8261', 'sp': '2230.50', 'tbq': '355462', 'tk': '2885', 'to': '13114764468.36', 'tsq': '667393', 'v': '5929614'}] 3
      [{'e': 'nse_cm', 'ltp': '2230.45', 'ltq': '20', 'ltt': 'NA', 'name': 'sf', 'tk': '2885'}] 4
      [{'name': 'tm', 'tvalue': '07/06/2021 14:18:07'}] 5

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

        Hi @sudhakar kindly go through the web socket doc to understand this.

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