Navigation

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

    vivekruhela

    @vivekruhela

    1
    Reputation
    14
    Posts
    4
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    vivekruhela Follow

    Best posts made by vivekruhela

    • 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.

      posted in Python SDK
      V
      vivekruhela

    Latest posts made by vivekruhela

    • RE: Connection reset by peer Error

      @admin : Anyone?? Is everyone on holiday??

      posted in Python SDK
      V
      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.

      posted in Python SDK
      V
      vivekruhela
    • 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.

      posted in Python SDK
      V
      vivekruhela
    • RE: Repeated breakdown of websocket

      @admin The issue of AUTH_TOKEN is solved but I am not able to get the price and volume in websocket 2.0. I am getting the error message In on pong function==> b'ping' consistently. Please suggest ASAP.

      posted in Python SDK
      V
      vivekruhela
    • RE: Repeated breakdown of websocket

      @admin The issue of AUTH_TOKEN is solved but I am not able to get the price and volume in websocket 2.0. I am getting message In on pong function==> b'ping' consistently. Please suggest.

      posted in Python SDK
      V
      vivekruhela
    • 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) and obj.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

      posted in Python SDK
      V
      vivekruhela
    • RE: Repeated breakdown of websocket

      @admin What is AUTH_TOKEN? Is it access_token generated obtained from obj.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'

      posted in Python SDK
      V
      vivekruhela
    • RE: Repeated breakdown of websocket

      @admin What is AUTH_TOKEN? Is it access_token generated obtained from obj.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'

      posted in Python SDK
      V
      vivekruhela
    • 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

      posted in Python SDK
      V
      vivekruhela
    • RE: How to compute RSI for first 13 minutes (intraday)

      Issue solved.

      posted in Python SDK
      V
      vivekruhela