User Feedback - WebSocket 2.0 Beta Rollout – Python Language
-
@admin said in User Feedback - WebSocket 2.0 Beta Rollout – Python Language:
ws://smartapisocket.angelone.in/smart-stream
How do I unsub a script and add another
-
@admin
How do I unsub a script and add another -
How do I unsub a script and add another
-
Can anyone tell me what modules I have to install. When I run the codes following message occurred from "SmartApi.smartWebSocketV2 import SmartWebSocketV2
ModuleNotFoundError: No module named 'SmartApi'". And when trying to install SmartApi module following error occurred " ERROR: Command errored out with exit status 1: 'c:\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\JP\AppData\Lo
cal\Temp\pip-install-bmd4tanj\pycrypto_3cd0936adc594488ab991db614b3c888\setup.py'"'"'; file='"'"'C:\Users\JP\AppData\Local\Temp\pip-install-bmd4tanj\py
crypto_3cd0936adc594488ab991db614b3c888\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from se
tuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record '
C:\Users\JP\AppData\Local\Temp\pip-record-h0mix75_\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\PyCrypto' Check the logs for full command output. " -
Hi @admin,
In general, Even if hearbeat issue occurs, pls provide a way to clean up websocket & create new websocket OR some kind of self healing stuff. -
@admin I am getting following error in smartWebSocketv2Example.py on open
In on pong function==> b'ping'
In on pong function==> b'ping'Not able to fetch any data.
-
Hi @admin,
I am also getting the same msg "In on pong function==> b'ping'".
Any reason why I am not able to fetch data ? -
@azkhan
same here,any solution.on open
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'
Attempting to resubscribe/reconnect...
Close
Close -
@zubuco said in User Feedback - WebSocket 2.0 Beta Rollout – Python Language:
@azkhan
same here,any solution.on open
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'
Attempting to resubscribe/reconnect...
Close
Close
sometimes its saying NO module as SmartApi -
@admin @administrators getting error "sent 1011 (unexpected error) keepalive ping timeout; no close frame received" in async websockets python module.
error while send ping. because websockets module by default send Ping with Random Binary 4 Bytes and we have to send "ping" as ping Payload. so help me to resolve the issue.
-
HI @Ankita @J88913 @azkhan @zubuco The ping pong issue is resolved by one of the early adopter and a loyal SmartAPI client @rajanprabu here - https://smartapi.angelbroking.com/topic/2570/websocket-2-0?_=1667760289934. Thank you @rajanprabu
-
@admin
still not working -
@admin
still not wroking -
@zubuco Still struck ?
-
@Ashok now wroking
-
Hi @admin,
I am running websocket V2.0. for every 30 sec's its landing in pong function. I have subscribed only one token while running the below.its consistent even with other token. Please look into this.
-
@vrkhyd It looks like heartbeat message. you can ignore it.
-
@Ashok ok Thank you.
Sometimes its printing the same message. multiple times. does it mean no response from server.
-
-
@vrkhyd You will get one in every 30 seconds.
Are you getting tick data ?[2022/11/24 09:14:02] on open
[2022/11/24 09:14:32] In on pong function==> b'\x00'
[2022/11/24 09:15:02] In on pong function==> b'\x00'
[2022/11/24 09:15:32] In on pong function==> b'\x00'
[2022/11/24 09:16:02] In on pong function==> b'\x00'
[2022/11/24 09:16:32] In on pong function==> b'\x00'
[2022/11/24 09:17:02] In on pong function==> b'\x00'
[2022/11/24 09:17:32] In on pong function==> b'\x00'
[2022/11/24 09:18:02] In on pong function==> b'\x00'
[2022/11/24 09:18:32] In on pong function==> b'\x00'
[2022/11/24 09:19:02] In on pong function==> b'\x00'