Navigation

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

    Posts made by Phanilbb

    • RE: Not receiving the postback calls

      @Phanilbb @Moderator_2 any update on this?

      posted in Test
      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 Test
      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 Test
      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 Test
      P
      Phanilbb
    • RE: Place order error: {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}

      Facing the same issue..

      posted in Test
      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
    • Why my limit order executed before the limit price?

      My limit order has been executed before the trigger price. Am i sending anything wrong in the request.

      {
      "variety": "NORMAL",
      "tradingsymbol": "NIFTY12JAN2318000CE",
      "symboltoken": "49705",
      "transactiontype": "BUY",
      "exchange": "NFO",
      "ordertype": "LIMIT",
      "producttype": "INTRADAY",
      "price": "127.0",
      "duration": "DAY",
      "quantity": "50"
      }

      It got executed at price 121.4

      This is the order ID. : 230109000193355

      posted in General Discussion
      P
      Phanilbb
    • RE: how to close open position

      Hi Admin.. It would be great that you provide exit by order ID and exit all APIs. that would be of great help for us

      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
    • Error while placing market order

      'NoneType' object is not subscriptable

      Sometimes getting the error like this while placing orders. But on trying with same payload, its getting successful in the 3rd or 4th attempt.. My order execution is getting delayed bcoz of this.

      {
      "variety": "NORMAL",
      "tradingsymbol": "ADANIPORTS-EQ",
      "symboltoken": "15083",
      "transactiontype": "SELL",
      "exchange": "NSE",
      "ordertype": "MARKET",
      "producttype": "INTRADAY",
      "duration": "DAY",
      "quantity": 1
      }

      posted in Python SDK
      P
      Phanilbb