Navigation

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

    rajanprabu

    @rajanprabu

    4
    Reputation
    335
    Posts
    270
    Profile views
    11
    Followers
    0
    Following
    Joined Last Online

    rajanprabu Follow

    Best posts made by rajanprabu

    • RE: Websocket 2.0

      @admin and Team,

      I had spent sometime in python SDK to see whats the issue. In the SmartWebSocketV2 file in GitHub (https://github.com/angel-one/smartapi-python/blob/AMX-3393-Smart-Api-Python-Library/SmartApi/smartWebSocketV2.py )

      line 310 that is converting byte string to token is not working. If I simply comment it out and give the token number directly it can now print Ticks.

       def _parse_binary_data(self, binary_data):
      
              try:
                  parsed_data = {
                      "subscription_mode": self._unpack_data(binary_data, 0, 1, byte_format="B")[0],
                      "exchange_type": self._unpack_data(binary_data, 1, 2, byte_format="B")[0],
                      #"token": SmartWebSocketV2._parse_token_value(binary_data[2:27]),
                       "token": 234876,
                      "sequence_number": self._unpack_data(binary_data, 27, 35, byte_format="q")[0],
                      "exchange_timestamp": self._unpack_data(binary_data, 35, 43, byte_format="q")[0],
                      "last_traded_price": self._unpack_data(binary_data, 43, 51, byte_format="q")[0]
                  }
      

      lines 353 to 360. This functions needs a re look.

          @staticmethod
          def _parse_token_value(binary_packet):
              token = ""
              for i in range(len(binary_packet)):
                  if binary_packet[i] == b'\x00':
                      return token
                  token += binary_packet[i].encode("UTF-8")
              return token
      

      I could re write the function but I would request the team to have a look .

      posted in Python SDK
      R
      rajanprabu
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      @admin migration was already done for account BBKG1037. But Im still getting

      YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007
      

      I have changed the password and tried so many times. I still could not login. Kindly do the needful. Thanks

      posted in General Discussion
      R
      rajanprabu

    Latest posts made by rajanprabu

    • RE: Important Announcement: Change in Angel One Login Policy

      @admin

      Please send PIN via email as well. only mobile will cause lots of inconveniences.

      posted in General Discussion
      R
      rajanprabu
    • RE: Websocket 2.0

      @admin and Team,

      I had spent sometime in python SDK to see whats the issue. In the SmartWebSocketV2 file in GitHub (https://github.com/angel-one/smartapi-python/blob/AMX-3393-Smart-Api-Python-Library/SmartApi/smartWebSocketV2.py )

      line 310 that is converting byte string to token is not working. If I simply comment it out and give the token number directly it can now print Ticks.

       def _parse_binary_data(self, binary_data):
      
              try:
                  parsed_data = {
                      "subscription_mode": self._unpack_data(binary_data, 0, 1, byte_format="B")[0],
                      "exchange_type": self._unpack_data(binary_data, 1, 2, byte_format="B")[0],
                      #"token": SmartWebSocketV2._parse_token_value(binary_data[2:27]),
                       "token": 234876,
                      "sequence_number": self._unpack_data(binary_data, 27, 35, byte_format="q")[0],
                      "exchange_timestamp": self._unpack_data(binary_data, 35, 43, byte_format="q")[0],
                      "last_traded_price": self._unpack_data(binary_data, 43, 51, byte_format="q")[0]
                  }
      

      lines 353 to 360. This functions needs a re look.

          @staticmethod
          def _parse_token_value(binary_packet):
              token = ""
              for i in range(len(binary_packet)):
                  if binary_packet[i] == b'\x00':
                      return token
                  token += binary_packet[i].encode("UTF-8")
              return token
      

      I could re write the function but I would request the team to have a look .

      posted in Python SDK
      R
      rajanprabu
    • RE: API BUG

      @chexki

      Try the SDK from angel-one

      https://github.com/angel-one/smartapi-python

      This resolved some of my order errors.. Although im not sure if this will resolve your issue,,

      posted in Python SDK
      R
      rajanprabu
    • RE: API BUG

      @chexki

      Are you trying to sell your holding ?

      Are you using the latest SDK ?

      posted in Python SDK
      R
      rajanprabu
    • Websocket 2.0

      Hello @admin and all,

      Did you anyone managed to get Ticks via the new smartWebSocketv2 using python SDK. I only get Pings ans Pongs and no ticks.

      on open
      In on pong function==> b'\x00'
      In on pong function==> b'\x00'
      In on pong function==> b'\x00'
      In on pong function==> b'\x00'
      In on pong function==> b'\x00'
      In on pong function==> b'\x00'
      In on pong function==> b'\x00'
      In on pong function==> b'\x00'
      In on pong function==> b'\x00'
      In on pong function==> b'\x00'
      In on pong function==> b'\x00'

      It would be helpful to get some feedback from people who used it successfully.

      Thanks

      posted in Python SDK
      R
      rajanprabu
    • Websockets drop one instrument randomly

      Hi @admin and Team,

      We discovered a major issue today that was nagging us for a while. This never happened before August. We subscribed to Nifty and BankNifty Futures and few more options data ( different strikes ) using web sockets. while ticks for options were coming properly randomly Futures ticks stopped coming. This happened at least dozen times today.

      We could get ticks once we restart the script. But this is not anywhere close to being optimal as order being sent around each minute. Please take this as a priory and diagnose whats really the issue.

      We are using latest python SDK. Until August everything was stable and we hardly had to intervene. It went downhill from there.

      posted in Python SDK
      R
      rajanprabu
    • RE: RMS:Blocked for NON-INTRADAY BO Remarks

      @vishant You have ti enable intraday trading.. contact your broker.

      posted in Bugs
      R
      rajanprabu
    • RE: Unable to get live data

      @admin

      Again we cant get data via web socket 😞

      I hope you guys realise that its our hard earned money on the stake here.

      posted in Python SDK
      R
      rajanprabu
    • RE: Unable to get live data

      @Reddy @admin

      please fix it asap. This morning we cant get data via websockets. Yesterday webpage was issue and today this is.

      posted in Python SDK
      R
      rajanprabu
    • RE: Login Password has been Expired

      @chandrabr80 @psshri

      Just change the password in your trading portal. passwords have one year validity.. it should work after you change the password.

      posted in General Discussion
      R
      rajanprabu