Using python websocket package to connect to kite

lokiMajedar
I want ot use the python websocket (https://pypi.org/project/websockets/) api for recieving the data from kite. Is this possible?

Thanks
Tagged:
  • sujith
    You can get started from FAQs.
  • lokiMajedar
    lokiMajedar edited 8:25AM
    I have used Python library of websockets :

    infFullMode= { "a": "mode", "v": ["full", [408065]] }
    # web.send(str(infosys))
    with connect(url) as websocket:
    websocket.send(str(infFullMode))
    message = websocket.recv()
    print(message)


    It just returned this json:
    {"type": "instruments_meta", "data": {"count": 101874, "etag": "--redacted text to avoid any exposure---""}}

    I want to get the final json that is depicted in the API Websocket documentation page.

    Any leads?

    Thanks for any help
  • rakeshr
    I want to get the final json that is depicted in the API Websocket documentation page
    You will need to use pykiteconnect WebSocket client.
Sign In or Register to comment.