Does anyone have a sample code to change the tokens while consuming messages using WebSocket without stopping the script?
Example: Initially consuming messages for SBI-EQ and HDFC-EQ. Then after 5 min can we consume messages for ITC-EQ and LT-EQ. without stopping the script and manually changing the token values.
praveen3405
@praveen3405
Best posts made by praveen3405
-
Changing token
Latest posts made by praveen3405
-
RE: WebSocket 2.0 Streaming is not Receiving the Live Price Feed
@admin I'm facing the same issue on 18 May. No information in Ticks, just heartbeat messages.
-
Not able to receive ticks from websocket.
Not able to receive any information in websocket ticks,
Just heart beat messages. Could you please resolve this issue?Ticks: [{'ak': 'nk', 'msg': 'cn', 'task': 'cn'}] Ticks: [{'ak': 'nk', 'msg': 'mw', 'task': 'mw'}] Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}] Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}] Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}] Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}] Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}]
-
RE: Sample code to avoid connection reset by peer error
@admin figured it out. You can close the ticket.
-
Sample code to avoid connection reset by peer error
Hello, can someone provide me a sample code to avoid "connection reset by peer error"? As I observe this error more often. I need to monitor the script and restart it in case of failure.
-
RE: [Errno 104] Connection reset by peer
@admin any update on this. I could still see this issue.
-
Changing token
Does anyone have a sample code to change the tokens while consuming messages using WebSocket without stopping the script?
Example: Initially consuming messages for SBI-EQ and HDFC-EQ. Then after 5 min can we consume messages for ITC-EQ and LT-EQ. without stopping the script and manually changing the token values. -
RE: I have a problem to please check
@Nimitjain Print "data" and see the output. Mostly it is your username and password error. Please check if you were able to log into Angel Broking using the same credentials.
-
Order parameters sample to palce Robo order
Does anyone have sample python code or order parameters json to place robo order? Thanks in advance.
-
RE: What is the Symbol for L&T Ltd
@admin I know all the symbols will be present in this link
https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
but I couldn't find L&T Ltd.