ws: acknowledgement on order rejection


  • what ?

    • order via placeOrder method -> the returned response was this :
    {
      status: true,
      message: 'SUCCESS',
      errorcode: '',
      data: {
        script: 'MIDCPNIFTY05FEB2410375PE',
        orderid: '240205000140605',
        uniqueorderid: 'b837bc9d-8113-4bdc-b515-696e5bea278f'
      }
    }
    
    • on checking the angel platform saw that the order was rejected (placing an order through the placeOrder method, the returned response indicates success, but upon further verification on the Angel platform, the order appears to be rejected)
      WhatsApp Image 2024-02-05 at 11.38.05 AM.jpeg

    • need a way to detect order rejection programatically -> I understand that the first API call might not be directly responsible for executing the order (might be placing transit orders in a queue), hence it might not be able to return the correct order execution status. This is a crucial requirement -> otherwise there is a duplication of effort in terms of executing orders via the api and checking them simultaneously on the Platform.

    • the callee should be responded with what happened to the order. If there is already an implementation for the same, will be happy to know.


  • @Moderator_2 cool, can make do with the getOrderBook endpoint.


  • Hi @shashwatVar

    The smartAPI has placed the order successfully to the exchange.
    Further exchange has rejected the order with "Blocker for nse_fo" remark. The rejection can be checked via getOrderBook API(https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/getOrderBook) and the same can be implement to proceed further for the next order placement.

    Please refer the below Doc:
    https://smartapi.angelbroking.com/docs/Orders

    Thanks & Regards,
    SmartAPI team