Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. ashigro
    3. Best
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 20
    • Best 5
    • Groups 0

    Best posts made by ashigro

    • RE: Historical API Max Records:500

      @skkarwasra02 It seems admin introduced this limitation to prohibit large data downloads. Earlier API allowed downloading 1min data of years too which might not be of much use. Also, it would be expensive for them as this is data-transfer-out from cloud and chargeable by cloud providers.

      posted in General Discussion
      A
      ashigro
    • RE: Not able to connect to the websocket, please help!

      @trader_noob same here
      e6f49868-e516-4bc0-9c61-2c775230b016-image.png

      posted in General Discussion
      A
      ashigro
    • RE: Not able to connect to the websocket, please help!

      @Moderator_2
      client code is MVY398

      posted in General Discussion
      A
      ashigro
    • RE: Error in WebSocket 2.0: byte indices must be integers or slices, not str

      <Error: SmartWebSocketV2._on_close() takes 2 positional arguments but 4 were given>

      We can fix this error by updating _on_close method with additional arguments in SmartWebSocketV2.py file.

      def _on_close(self, wsapp, close_status_code, close_msg):

      This error is thrown because on_close method of websocket class takes multiple arguments which are missing in SmartWebSocket library. Example code:
      https://websocket-client.readthedocs.io/en/latest/examples.html

      posted in Python SDK
      A
      ashigro
    • smartWebSocketV2:304] Error occurred during WebSocket connection: WebSocketApp.run_forever()

      [E 240226 09:00:36 smartWebSocketV2:304] Error occurred during WebSocket connection: WebSocketApp.run_forever() got an unexpected keyword argument 'ping_payload'
      Exception in thread Thread-8 (feed):
      Traceback (most recent call last):
      File "C:\Users\ashig\anaconda3\envs\trader-env\lib\threading.py", line 1016, in _bootstrap_inner
      self.run()
      File "C:\Users\ashig\anaconda3\envs\trader-env\lib\threading.py", line 953, in run
      self._target(*self._args, **self._kwargs)
      File "C:\Users\ashig\AppData\Local\Temp\ipykernel_11200\1613896697.py", line 325, in feed
      File "C:\Users\ashig\anaconda3\envs\trader-env\lib\site-packages\SmartApi\smartWebSocketV2.py", line 305, in connect
      raise e
      File "C:\Users\ashig\anaconda3\envs\trader-env\lib\site-packages\SmartApi\smartWebSocketV2.py", line 301, in connect
      self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL,
      TypeError: WebSocketApp.run_forever() got an unexpected keyword argument 'ping_payload'

      posted in Python SDK
      A
      ashigro