Exception - Route not found

rajtk
I am getting the above exception when trying to modify the order. (Cover order).
Please explain , what this exception raised for ?
  • sujith
    You need to pass lower case 'co' as variety param while modifying a cover order. I think you are passing something else. Can you check?
  • rajtk
    Have checked it and have always been using 'co' only. today for some scripts it went through fine, rest this exception.
  • sujith
    Can you give the params for which request failed?
  • sujith
    Also, add the final URL of the request.
  • rajtk
    Parameters
    exchange=NSE

    order_type=MARKET

    product=co

    validity=DAY

    buystock=BUY

    sellstock=SELL

    variety=co

    access_token = kite.set_access_token(data["access_token"])
    self.sl_id = kite.order_modify(order_id=self.sl_id, parent_order_id = self.primary_id , exchange=exchg, tradingsymbol=self.symbol,trigger_price= price,product = product, variety= variety)

    I am not sure how to provide you with the final url of the request.

    The issue started after 10:50 am
    TATAGLOBAL - Curr price below sell price | Pr Diff 0.40
    Trigger range {u'start': 585.35, u'end': 626.3, u'percent': 7.0} AUROPHARMA
    AUROPHARMA - Close SELL Order failed - Route not found
  • sujith
    This error message can happen when the order id is invalid or order id doesn't exist or order id doesn't exist under cover order but exist in normal order.

    If you are modifying second leg cover order then order type is SL-M, but it has nothing to do with the issue you are facing.
    If you enable debug mode then you can see the URL. Give it a shot.
Sign In or Register to comment.