TypeError: __init__() missing 1 required positional argument: 'task'


  • @admin
    Getting below error while testing websocket code.
    TypeError: init() missing 1 required positional argument: 'task'
    Error on line :
    ss = WebSocket(FEED_TOKEN,CLIENT_CODE)

    feed token is generated successfully. Is it because I am trying to test the code after market hours?