WebSocket connection lost

TUSH123
getting this error after some time of program ran (using on_ticks call back where I am putting my logic):

WebSocket connection lost: [Failure instance: Traceback (failure with no frames): : Connection was aborted locally, using.
].
  • TUSH123
    and I only subscribed one instrument and running this in main thread forever
  • Vivek
    @TUSH123 Can you please post complete logs?
  • TUSH123
    Actually this all I got in Exception block on tick call back(Python) .

    WebSocket connection lost: [Failure instance: Traceback (failure with no frames): : Connection was aborted locally, using.
    ].

    Moreover please advice if a session is valid for whole day and suppose I want to reuse that session in a program again, can I do that without asking login() ?
  • sujith
    @TUSH123,
    Once you get access token, you can use it any number of times in that day. You just need to make sure, you don't call generat_session() method every time you run the script.
This discussion has been closed.