@admin, I am getting a delayed response from WebSocket. I am generating a 2-minute candle to perform online technical analysis and then decide my trade (buy/sell/hold) from the live WebSocket data. But I have observed that my candles are 2 minutes late from the live market. This is causing me the wrong output from my technical indicators. Please suggest ASAP. I am facing a huge loss because of that delay. Thanks.
vivekruhela
@vivekruhela
Best posts made by vivekruhela
-
Delayed response by 2 min
Latest posts made by vivekruhela
-
Connection reset by peer Error
Hi,
I am facing an error of
Connection reset by peer
multiple times. Can anyone suggest to me how to get rid of it? If there is any sample code, please share it. I need it urgently. Thanks in advance. -
Delayed response by 2 min
@admin, I am getting a delayed response from WebSocket. I am generating a 2-minute candle to perform online technical analysis and then decide my trade (buy/sell/hold) from the live WebSocket data. But I have observed that my candles are 2 minutes late from the live market. This is causing me the wrong output from my technical indicators. Please suggest ASAP. I am facing a huge loss because of that delay. Thanks.
-
RE: Repeated breakdown of websocket
@admin The issue of
AUTH_TOKEN
is solved but I am not able to get the price and volume inwebsocket 2.0
. I am getting the error messageIn on pong function==> b'ping'
consistently. Please suggest ASAP. -
RE: Repeated breakdown of websocket
@admin The issue of
AUTH_TOKEN
is solved but I am not able to get the price and volume inwebsocket 2.0
. I am getting messageIn on pong function==> b'ping'
consistently. Please suggest. -
How to get funds available for intraday trading (with margin and without margin) automatically
Hello,
I am trying to set my python script for automated trading. But during stock buying/selling, I don't know how to get the available fund information (with intraday margin or without intraday margin) in an automated fashion so that I can calculated I many stock I can buy to sell automatically. I the following code, I can get the userprofile basic information and holdings using
obj.getProfile(refreshToken)
andobj.holding()
. But I don't know how to get the funds available in my account for intraday (with intraday margin).obj=SmartConnect(api_key="****")
data = obj.generateSession("****","****")
refreshToken= data['data']['refreshToken']
#fetch the feedtoken
feedToken=obj.getfeedToken()
#fetch User Profile
userProfile= obj.getProfile(refreshToken)
Let me know how can I have this information using python SDK module (
smartapi-python
). Thanks -
RE: Repeated breakdown of websocket
@admin What is
AUTH_TOKEN
? Is it access_token generated obtained fromobj.access_token
?I tried putting access_token in
AUTH_TOKEN
but I am getting only one response as shown below:In on pong function==> b'ping'
-
RE: Repeated breakdown of websocket
@admin What is
AUTH_TOKEN
? Is it access_token generated obtained fromobj.access_token
?I tried putting access_token in
AUTH_TOKEN
but I am getting only one response as shown below:In on pong function==> b'ping'
-
Repeated breakdown of websocket
Hi,
I am trying to execute and monitor my trades using the python SDK module. But I am facing an issue of discontinuity of WebSockets consistently. Whenever I start my session, it shows an error [-3] after some time and stops working. First I doubt my wifi connection issue but there is no such issue in the internet connection. Can you suggest why
ss.connect()
shows an error (Error code: [-3]) and how to get consistent WebSocket output from 09:15 AM to 03:20 PM without any glitch. Thanks