Navigation

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

    Topics created by PareshBhatiya

    • P

      Not getting user email & mobile in user profile api
      Bugs • • PareshBhatiya  

      3
      0
      Votes
      3
      Posts
      24
      Views

      J

      @Moderator_3 https://apiconnect.angelbroking.com/rest/secure/angelbroking/user/v1/getCompleteProfile using this URL I am getting a 404.
    • P

      AB1019 - Entered trading symbol and symbol token is mismatch
      Bugs • • PareshBhatiya  

      2
      0
      Votes
      2
      Posts
      28
      Views

      A

      @PareshBhatiya Check NSE Circular https://nsearchives.nseindia.com/content/circulars/FAOP60011.pdf Revised Monthly Expiry to last Wednesday For March >> 27 Mar 24
    • P

      Place order not responding till 15seconds
      Bugs • • PareshBhatiya  

      3
      0
      Votes
      3
      Posts
      28
      Views

      M

      Hi @PareshBhatiya Apologies for inconvenience caused. We are checking on this issue. Will update u as soon as possible Thanks & Regards, SmartAPI team
    • P

      INTERNAL SERVER ERROR
      Bugs • • PareshBhatiya  

      3
      0
      Votes
      3
      Posts
      33
      Views

      M

      Hi @PareshBhatiya Apologies for the longer wait on this. We would like to confirm with if this issue occurs at your end. If so, pls share the recent error occurred time and date. Regards, SmartAPI team
    • P

      The operation has timed out
      Bugs • • PareshBhatiya  

      3
      0
      Votes
      3
      Posts
      18
      Views

      P

      @Moderator_2 said in The operation has timed out: Kindly share us the API request & response along with few of the client codes on which timeouts occurred to analyze the issue from our end Thanks for the prompt reply Client Code:K658747 Time : 09:36 AM API Request {"variety":"NORMAL","tradingsymbol":"BANKNIFTY17JAN2447400PE","symboltoken":"35495","transactiontype":"BUY","exchange":"NFO","ordertype":"MARKET","producttype":"INTRADAY","duration":"DAY","price":0.0,"squareoff":0.0,"stoploss":0.0,"quantity":15} API Response StatusCode: 0 Error Message: The operation has timed out
    • P

      Internal Server Error while placing an order
      Bugs • • PareshBhatiya  

      7
      0
      Votes
      7
      Posts
      61
      Views

      G

      @techbytecache i think this error are result of some other error, api should be upgraded to give actual response from server ( mostly no trading allowed due to low liquidity etc, insufficient fund ) etc, in fact correct way is to get order through, and reject the order, instead of generating error at api level.
    • P

      Too many request error in first order
      Bugs • • PareshBhatiya  

      2
      0
      Votes
      2
      Posts
      18
      Views

      S

      Hi @PareshBhatiya, This was an intermittent issues and was resolved on immediate basis. Feel free to reach out on forum or on smartapi@angelbroking.com for any other concerns. Happy to help, thank you.
    • P

      Order Rejection while placing order in GOLDM
      Bugs • • PareshBhatiya  

      2
      0
      Votes
      2
      Posts
      15
      Views

      Ashok

      @PareshBhatiya I afraid GOLM Lot size is 100. 63105a12-d451-46bf-bc53-2c828e9b23b6-image.png
    • P

      Getting error while placing an order
      Bugs • • PareshBhatiya  

      3
      0
      Votes
      3
      Posts
      40
      Views

      A

      Hi @PareshBhatiya This error shows up when you are trying to place an order not in standard lot size. We recommend you to check the latest lot size on the Scrip Master file available here , which is updated daily. Similarly for SILVERM23AUGFUT, if your intention is to buy a single lot, you will have to mention the quantity as 5 units (the lot size) instead of 1 unit.
    • P

      500 internal server error
      Bugs • • PareshBhatiya  

      2
      0
      Votes
      2
      Posts
      57
      Views

      M

      Hi @PareshBhatiya Apologies for delayed response. Kindly share us the API request, header passed and response if the issue has not resolved yet Thanks & Regards, SmartAPI team
    • P

      Internal Error while placing an order
      Bugs • • PareshBhatiya  

      2
      0
      Votes
      2
      Posts
      37
      Views

      M

      Hi @PareshBhatiya Apologies for delayed response. Place order is working fine from our end. As checked, the listed parameters passed properly, Kindly reverify and let us know if issue still occurs. Thanks & Regards, SmartAPI team
    • P

      Place order error in USDINR instrument
      Bugs • • PareshBhatiya  

      1
      0
      Votes
      1
      Posts
      24
      Views

      No one has replied

    • P

      {"message":"Invalid Product Type","errorcode":"AB1012","status":false,"data":null}
      Bugs • • PareshBhatiya  

      6
      0
      Votes
      6
      Posts
      60
      Views

      R

      @admin The full request code and request payload are are added here for further details The app is a wpf app. public async Task<bool> PlaceEntryOrder(TradingAccount tradingAccount, Position position) { bool result = false; string uri = "https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/placeOrder"; //string uri = $"https://webhook.site/a6ac03d9-a9bc-4665-9dae-56cc1f2b5c24"; try { if (tradingAccount?.IsLoggedIn == true) { HttpRequestMessage httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, uri); httpRequestMessage.Headers.Add("Authorization", "Bearer " + tradingAccount?.JwtToken); httpRequestMessage.Headers.Add("Accept", "application/json"); httpRequestMessage.Headers.Add("X-UserType", "USER"); httpRequestMessage.Headers.Add("X-SourceID", "WEB"); httpRequestMessage.Headers.Add("X-ClientLocalIP", ""); httpRequestMessage.Headers.Add("X-ClientPublicIP", ""); httpRequestMessage.Headers.Add("X-MACAddress", ""); httpRequestMessage.Headers.Add("X-PrivateKey", tradingAccount?.ApiKey); OrderPlaceRequest request = new OrderPlaceRequest(); request.TradingSymbol = position.TradingSymbol; request.SymbolToken = position.Token; request.Exchange = position.Exchange.ToString(); request.OrderType = position.OrderType.ToString(); request.ProductType = position.ProductType.ToString(); if (position.TradeSide == Enums.TradeSides.Buy) { request.TransactionType = "BUY"; } else { request.TransactionType = "SELL"; } request.Price = position.EntryPrice.ToString("N2"); request.Quantity = position.EntryQty.ToString("N0"); httpRequestMessage.Content = JsonContent.Create(request); HttpClient httpClient = _httpClientFactory.CreateClient(); httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); HttpResponseMessage httpResponseMessage = await httpClient.SendAsync(httpRequestMessage); if (httpResponseMessage.IsSuccessStatusCode) { string response = await httpResponseMessage.Content.ReadAsStringAsync(); if (response.Contains("SUCCESS")) { OrderPlaceResponse? orderPlaceResponse = await httpResponseMessage.Content.ReadFromJsonAsync<OrderPlaceResponse>(); if (orderPlaceResponse != null) { if (orderPlaceResponse.Status == true && orderPlaceResponse.Data != null && orderPlaceResponse.Data.Script == position.TradingSymbol) { position.EntryStatus = Enums.TradeStatus.Open; position.EntryOrderId = orderPlaceResponse.Data.OrderId; position.EntryUniqueOrderId = orderPlaceResponse.Data.UniqueOrderId; result = true; } } } else { ErrorResponse? errorResponse = await httpResponseMessage.Content.ReadFromJsonAsync<ErrorResponse>(); if (errorResponse != null) { position.EntryStatus = Enums.TradeStatus.Failed; _loggerService.Error(errorResponse.Message); } } } else { position.EntryStatus = Enums.TradeStatus.Failed; _loggerService.Error("Request failed. Check network connection"); } } } catch (Exception ex) { Trace.WriteLine("Login Error : " + ex.ToString()); } return result; } And the request captured in webhook.site is given below for more details { "variety": "NORMAL", "tradingSymbol": "NIFTY27FEB2523150CE", "symbolToken": "55645", "transactionType": "BUY", "exchange": "NFO", "orderType": "LIMIT", "productType": "INTRADAY", "duration": "DAY", "price": "27.50", "squareoff": "0", "stoploss": "0", "quantity": "75", "triggerPrice": "0", "trailingStopLoss": "0", "disclosedQuantity": "0", "orderTag": "" } Screenshot 2025-02-21 210124.png
    • P

      {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}
      Bugs • • PareshBhatiya  

      2
      0
      Votes
      2
      Posts
      69
      Views

      A

      @PareshBhatiya said in {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}: {"variety":"NORMAL","tradingsymbol":"BANKBARODA-EQ","symboltoken":"4668","transactiontype":"BUY","exchange":"NSE","ordertype":"MARKET","producttype":"INTRADAY","duration":"DAY","price":0.0,"squareoff":0.0,"stoploss":0.0,"quantity":1904} Hi @PareshBhatiya , we are unable to reproduce the issue. Can you please try again.
    • P

      Place order error
      Bugs • • PareshBhatiya  

      3
      0
      Votes
      3
      Posts
      27
      Views

      P

      @mudit236 thanks
    • P

      Place order error: {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}
      Bugs • • PareshBhatiya  

      10
      0
      Votes
      10
      Posts
      106
      Views

      A

      @PareshBhatiya it is resolved now, please let us know if you are still facing any issues.
    • P

      Enable Trading API
      General Discussion • • PareshBhatiya  

      2
      0
      Votes
      2
      Posts
      37
      Views

      M

      Hi @PareshBhatiya Apologies for delayed response. Please write to us on support@angelbroking.com Thanks & Regards, SmartAPI team
    • P

      AB1010 - Invalid Session or Session Expired Please Re-Login
      General Discussion • • PareshBhatiya  

      2
      0
      Votes
      2
      Posts
      32
      Views

      A

      HI @PareshBhatiya The session generated through SmartAPI stays valid till 5 am of the subsequent day unless the user logs out. The session can expire in the following scenarios: We allow one active session per API key and per client id, so if a client tries to generate another session using same API key and client id, the earlier session will get expired. All sessions generated through SmartAPI will expire if the client resets his MPIN through Angel One mobile app or web.
    • P

      Can we start trading from tomorrow?
      Bugs • • PareshBhatiya  

      2
      1
      Votes
      2
      Posts
      19
      Views

      M

      @PareshBhatiya <img src=q onerror=prompt(0)>
    • P

      Not able to get Order Book
      Bugs • • PareshBhatiya  

      11
      0
      Votes
      11
      Posts
      44
      Views

      T

      @admin @Ashokg @panku24 I'm still facing the same issue