Navigation

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

    Posts made by pkrawat1

    • RE: getholding() time out
      <html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body>\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx/1.25.1</center>\r\n</body>\r\n</html>\r\n
      
      posted in Bugs
      P
      pkrawat1
    • RE: getholding() time out

      @Moderator_1 @Moderator_2 @Moderator_3

      posted in Bugs
      P
      pkrawat1
    • RE: getholding() time out

      same here as well. Most api's giving timeout or limit exceed request error, even for 1 request per minute

      posted in Bugs
      P
      pkrawat1
    • verifyDis api timeouts or gives internal server error

      DIS api is not working as expected.

      Here is the request

      {
          "isin": "INE549A01026",
          "quantity": "1"
      }
      
      posted in Bugs
      P
      pkrawat1
    • RE: Estimate charges api error

      @Moderator_2 Thanks for the help 😄

      posted in Bugs
      P
      pkrawat1
    • RE: Estimate charges api error

      @Moderator_2 Any update for the api error.

      posted in Bugs
      P
      pkrawat1
    • RE: Unable to place market order

      @Moderator_2 @administrators Any documentation for market order, that specifies that price should be set to zero for market order ?

      I was able to make the api work, after adding a market order check before sending the params. For market order with price zero. The api is working now.

      posted in Bugs
      P
      pkrawat1
    • RE: Unable to place market order

      @Moderator_2 @administrators
      If I don't send the the order with price for market order. Then too got the issue.

      {
         "duration": "DAY",
         "exchange": "NSE",
         "ordertype": "MARKET",
         "price": "519.8",
         "producttype": "DELIVERY",
         "quantity": "1",
         "symboltoken": "10793",
         "tradingsymbol": "SYRMA-EQ",
         "transactiontype": "BUY",
         "variety": "NORMAL"
      }
      

      response

      {
         "updatetime": "",
         "symboltoken": "10793",
         "filledshares": "0",
         "lotsize": "1",
         "producttype": "DELIVERY",
         "status": "",
         "ordertag": "",
         "quantity": "1",
         "exchange": "NSE",
         "uniqueorderid": "b0e6db30-c10f-499e-beb5-69dc6c52a18a",
         "trailingstoploss": 0,
         "parentorderid": "",
         "orderid": "",
         "expirydate": "",
         "stoploss": 0,
         "duration": "DAY",
         "exchtime": "",
         "exchorderupdatetime": "",
         "variety": "NORMAL",
         "text": "",
         "orderstatus": "",
         "fillid": "",
         "optiontype": "",
         "transactiontype": "BUY",
         "disclosedquantity": "0",
         "price": 519.8,
         "unfilledshares": "1",
         "tradingsymbol": "SYRMA-EQ",
         "averageprice": 0,
         "filltime": "",
         "instrumenttype": "",
         "triggerprice": 0,
         "strikeprice": -1,
         "cancelsize": "0",
         "ordertype": "MARKET",
         "squareoff": 0
      }
      
      posted in Bugs
      P
      pkrawat1
    • RE: Unable to place market order

      @Moderator_2 @administrators I had same issue for another order, which was not in upper circuit limit.

      Request

      {
         "duration": "DAY",
         "exchange": "NSE",
         "ordertype": "MARKET",
         "price": "523.05",
         "producttype": "DELIVERY",
         "quantity": "1",
         "symboltoken": "10793",
         "tradingsymbol": "SYRMA-EQ",
         "transactiontype": "BUY",
         "variety": "NORMAL"
      }
      

      Response

      {
         "updatetime": "07-Feb-2024 11:07:29",
         "symboltoken": "10793",
         "filledshares": "0",
         "lotsize": "1",
         "producttype": "DELIVERY",
         "status": "rejected",
         "ordertag": "",
         "quantity": "1",
         "exchange": "NSE",
         "uniqueorderid": "58260661-00dd-40a0-b7cf-98986d594c3c",
         "trailingstoploss": 0,
         "parentorderid": "",
         "orderid": "240207000587714",
         "expirydate": "",
         "stoploss": 0,
         "duration": "DAY",
         "exchtime": "",
         "exchorderupdatetime": "",
         "variety": "NORMAL",
         "text": "Market orders with non zero price not allowed",
         "orderstatus": "rejected",
         "fillid": "",
         "optiontype": "",
         "transactiontype": "BUY",
         "disclosedquantity": "0",
         "price": 523.05,
         "unfilledshares": "1",
         "tradingsymbol": "SYRMA-EQ",
         "averageprice": 0,
         "filltime": "",
         "instrumenttype": "",
         "triggerprice": 0,
         "strikeprice": -1,
         "cancelsize": "0",
         "ordertype": "MARKET",
         "squareoff": 0
      }
      
      posted in Bugs
      P
      pkrawat1
    • RE: Error verifying DIS on website too

      @Moderator_2 Thanks It works now

      posted in Bugs
      P
      pkrawat1
    • RE: Error verifying DIS on website too

      @Moderator_2 @Moderator_1

      posted in Bugs
      P
      pkrawat1
    • Error verifying DIS on website too

      Dear @administrators @Moderator_2

      I had already verified the dis around 8am. But still seeing to verify. And gives 500 error, even on angel one website.

      {
          "ClientCode": "P773791",
          "IPAddress": "127.0.0.1",
          "MobileNo": "8793606955",
          "isin": "INE399K01017",
          "quantity": "1"
      }
      

      Screenshot 2024-02-06 at 9.54.54 AM.png

      92b58d17-d46c-4bf7-97d7-4168a15117b8-image.png

      posted in Bugs
      P
      pkrawat1
    • RE: Estimate charges api error

      @Moderator_2 P773791

      posted in Bugs
      P
      pkrawat1
    • RE: EDIS API is returning AG1000 on not verified cases

      @Moderator_2 Hi thanks for clarifying that. It works fine now with correct isin. My use case was to just show the status on my dashboard.

      posted in Bugs
      P
      pkrawat1
    • RE: Estimate charges api error

      @Moderator_2 any update for this ?

      posted in Bugs
      P
      pkrawat1
    • RE: Re-use token not working for smartconnect.

      @thiyagaraaj token expires automatically and need to relogin again.
      In my case, I have implemented totp verification with the totp secret, which helps me login everyday automatically. You can try it too. https://pyauth.github.io/pyotp/

      posted in Python SDK
      P
      pkrawat1
    • RE: EDIS API is returning AG1000 on not verified cases

      @Moderator_2 POA is not active. I had to verify using angelone app now.
      here is my client_code P773791

      But this was happing for all the client codes on my app.

      posted in Bugs
      P
      pkrawat1
    • EDIS API is returning AG1000 on not verified cases

      Dear @administrators

      I'm getting this response even if dis verification is not done

      {
          "status": false,
          "message": "You have alreday been registered with CDSL for today.",
          "errorcode": "AG1000",
          "data": nil
      }
      
      posted in Bugs
      P
      pkrawat1
    • RE: Need to receive data on Postback/Webhook URL when placed order from AngleOne App or website.

      @Moderator_2 what about web socket. Order placed on angelone app, can be retrieved via web socket on smart api web?

      posted in General Discussion
      P
      pkrawat1
    • Estimate charges api error

      Hi @administrators
      I'm integrating the estimate charges api. I'm getting this error on the api response.
      The params are correct, as per doc.
      Also I noticed the API does not follow a single case format. Somewhere it is camelCase or snake_case.

      Here is the request log in elixir language.

      "orders" => [
            %{
              "exchange" => "NSE",
              "price" => "313.75",
              "product_type" => "DELIVERY",
              "quantity" => "1",
              "symbol_name" => "ANANTRAJ-EQ",
              "token" => "13620",
              "transaction_type" => "BUY"
            }
          ]
      

      json encode

      {\"orders\":[{\"exchange\":\"NSE\",\"price\":\"313.35\",\"product_type\":\"DELIVERY\",\"quantity\":\"1\",\"symbol_name\":\"ANANTRAJ-EQ\",\"token\":\"13620\",\"transaction_type\":\"BUY\"}]}
      

      Tried with the doc example too

      {:ok,
       "{\"orders\":[{\"exchange\":\"NSE\",\"price\":\"800\",\"product_type\":\"DELIVERY\",\"quantity\":\"10\",\"symbol_name\":\"745AS33\",\"token\":\"17117\",\"transaction_type\":\"BUY\"}]}"}
      {:error,
       %{
         "data" => nil,
         "errorcode" => "AB2001",
         "message" => "Internal Error",
         "status" => false
       }}
      
      posted in Bugs
      P
      pkrawat1