Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. sb
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    sb

    @sb

    0
    Reputation
    3
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    sb Follow

    Best posts made by sb

    This user hasn't posted anything yet.

    Latest posts made by sb

    • SmartWebSocketOrderUpdate: Response message format: json or list or dictionary or string?

      When I tries to use commands like message["orderData"] or message.get("user-id") in ipython, it showed error.
      Then I have to do do resp_dict = json.loads(message) to check and access for values stored in message.

      Can you please confirm the data type of message received in SmartWebSocketOrderUpdate.

      Also in SmartWebSocketV2 to receive LTP, I need not do json.loads(message).

      Will someone please mention the data type of message response?
      @Moderator_3 @Moderator_1

      posted in Python SDK
      S
      sb
    • RE: Issue with websocket close_connection()

      I am also facing the same issue.
      Whenever I give close_connection command, it reconnect on its own?

      Is there any temporary fix you have done? @pari
      @Moderator_3

      posted in Bugs
      S
      sb
    • ERROR: SmartWebSocketV2._on_close() takes 2 positional arguments but 4 were given

      Why does this error occur? websocket - ERROR - error from callback <bound method SmartWebSocketV2._on_close of <SmartApi.smartWebSocketV2.SmartWebSocketV2 object at 0x10c0760a0>>: _on_close() takes 2 positional arguments but 4 were given.

      sws.on_close = on_close
      def on_close(wsapp):
      logger.info(f"Connection closed: {wsapp}")

      @admin @Moderator_3

      posted in Bugs
      S
      sb