Navigation

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

    Phanilbb

    @Phanilbb

    6
    Reputation
    14
    Posts
    8
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Age 29

    Phanilbb Follow

    Best posts made by Phanilbb

    • Can u provide the historical data of NIFTY and BANKNIFTY ?

      By when can you provide the historical data of nifty and bank nifty?

      posted in General Discussion
      P
      Phanilbb
    • Postback call for what all order status

      For what all order status do we receive the postback call? Its not mentioned in the document.

      posted in General Discussion
      P
      Phanilbb
    • RE: Historic API not working

      facing similar issue..

      posted in Bugs
      P
      Phanilbb
    • Not receiving the postback calls

      I have set my postback URL as but im not receiving the order updates.

      Client Id : L128041

      https://7near4m73hujvcqlnpwqxk5lzm0rppuj.lambda-url.ap-south-1.on.aws/
      

      @Moderator_1 @Moderator_2

      posted in Bugs
      P
      Phanilbb

    Latest posts made by Phanilbb

    • RE: Not receiving the postback calls

      @Phanilbb @Moderator_2 any update on this?

      posted in Bugs
      P
      Phanilbb
    • RE: Not able to connect to the websocket, please help!

      @Moderator_2 can u plz check this issue as well

      https://smartapi.angelbroking.com/topic/4145/not-receiving-the-postback-calls

      posted in General Discussion
      P
      Phanilbb
    • RE: Not able to connect to the websocket, please help!

      @trader_noob One of the things I hate with smart API is that there is no instant support. have to wait days to get an issue resolved.

      posted in General Discussion
      P
      Phanilbb
    • RE: What is the issue with this request.. Im getting Invalid Token error

      @Moderator_2 The document is outdated. when i passed the refresh_token and make it post API, it worked.

      posted in General Discussion
      P
      Phanilbb
    • Not receiving the postback calls

      I have set my postback URL as but im not receiving the order updates.

      Client Id : L128041

      https://7near4m73hujvcqlnpwqxk5lzm0rppuj.lambda-url.ap-south-1.on.aws/
      

      @Moderator_1 @Moderator_2

      posted in Bugs
      P
      Phanilbb
    • Connection Error while login.

      Im getting the below error while trying to login.

      ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

      This is the code. Its working sometimes and sometimes not.

      def create_session(angel_one_details):
          headers = {
              'Content-Type': 'application/json',
              'Accept': 'application/json',
              'X-UserType': 'USER',
              'X-SourceID': 'WEB',
              'X-PrivateKey': angel_one_details['api_key'],
              'X-ClientLocalIP': "127.0.0.1",
              'X-ClientPublicIP': "106.193.147.98",
              'X-MACAddress': ':'.join(re.findall('..', '%012x' % uuid.getnode())),
          }
          totp = pyotp.TOTP(angel_one_details['totp'])
          payload = {
              'clientcode': angel_one_details['id'],
              'password': angel_one_details['pin'],
              'totp': str(totp.now())
          }
          r = requests.post(ANGEL_ONE_LOGIN_URL, data=json.dumps(payload), headers=headers)
          print("Angle one login response : {}".format(r.text))
          if r.status_code != 200:
              raise errors.CustomError("Angle one login Failed {}".format(r.text))
          return r.json()
      
      posted in Bugs
      P
      Phanilbb
    • What is the issue with this request.. Im getting Invalid Token error
      def get_profile(angel_one_details, jwtToken):
          url = "https://apiconnect.angelbroking.com/rest/secure/angelbroking/user/v1/getProfile"
          headers = {
              'Content-Type': 'application/json',
              'Accept': 'application/json',
              'X-UserType': 'USER',
              'X-SourceID': 'WEB',
              'X-PrivateKey': angel_one_details['api_key'],
              'X-ClientLocalIP': "127.0.0.1",
              'X-ClientPublicIP': "106.193.147.98",
              'X-MACAddress': ':'.join(re.findall('..', '%012x' % uuid.getnode())),
              'Authorization': "Bearer {}".format(jwtToken)
          }
          r = requests.get(url, headers)
          print(r.json())
      

      Im getting the below response

      {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

      posted in General Discussion
      P
      Phanilbb
    • RE: Historic API not working

      facing similar issue..

      posted in Bugs
      P
      Phanilbb
    • RE: Place order error: {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}

      Facing the same issue..

      posted in Bugs
      P
      Phanilbb
    • Can u provide the historical data of NIFTY and BANKNIFTY ?

      By when can you provide the historical data of nifty and bank nifty?

      posted in General Discussion
      P
      Phanilbb