Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. webiwork
    3. Topics
    W
    • Profile
    • Following 1
    • Followers 0
    • Topics 7
    • Posts 7
    • Best 0
    • Groups 1

    Topics created by webiwork

    • W

      Kill or reset sws connection
      Python SDK • • webiwork

      2
      0
      Votes
      2
      Posts
      3
      Views

      U

      I assume your deployed strategy is running while you redeploy a new strategy, and this is leaving the websocket in previous deployment still alive, causing a leak.

      One simple way is to handle keyboard interrupt.
      https://stackoverflow.com/questions/4205317/capture-keyboardinterrupt-in-python-without-try-except

      Make sure you do the websocket connection inside a new thread. Use the main thread for the signal handler as shown in above url. Perform cleanup (unsubscribe+disconnect) in the signal handler function.

    • W

      Kill or reset sws connection
      General Discussion • • webiwork

      1
      0
      Votes
      1
      Posts
      1
      Views

      No one has replied

    • W

      Kill or reset sws connection
      Test • • webiwork

      2
      0
      Votes
      2
      Posts
      16
      Views

      M

      Hi @webiwork Could you provide the working python code along with your expected case so we can investigate and provide you with a solution.

    • W

      How to kill privious all sws conection
      General Discussion • • webiwork

      1
      0
      Votes
      1
      Posts
      1
      Views

      No one has replied

    • W

      How to kill privious all sws conection
      Python SDK • • webiwork

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • W

      How to kill privious all sws conection, how to get active sws connection
      General Discussion • • webiwork

      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • W

      I am creating one strategy one sws connection how i create more then three strategy How to kill privious all sws conection I am not able to store sws object, Give me proper step wise solution
      Python SDK • • webiwork

      1
      0
      Votes
      1
      Posts
      0
      Views

      No one has replied