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 June 27
    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.
  • lokiMajedar
    Try to Understand. I want to make an api that can use multiple Api websoockets. So that user can select the api to use for data gathering. Hence, I don't wanna code around your API but python websocket instead. The way that you've provided in the java web socket expamples
Sign In or Register to comment.