Couldn't find that 'order_id'

HowUTrade
@sujith

Today received the above error while modifying the order.
Pls check the logs below;
09:31:16.343 GeneralException: Couldn't find that `order_id`.: 200106000476990
09:31:17.562 GeneralException: Couldn't find that `order_id`.: 200106000476990
09:31:18.781 GeneralException: Couldn't find that `order_id`.: 200106000476990
  • sujith
    @HowUTrade,
    This is because OMS couldn't update the orderbook on time. There was some delay in orderbook updates. Our team is working with the OMS team to find a solution to this issue.
  • Kamalv
    @sujith i'm also facing same, what is the max delay we can expect for OMS update (i will wait till the time)? bcz my logic depends on this and it is failing.
  • sujith
    @Kamalv,
    This should be fixed now. If it is still happening you can give us the client id and order_id in a private message and we will check and get back to you.
  • Kamalv
    @sujith Thanks for the response. I faced this today, at 9:15:32, shared details in private msg.
  • Kamalv
    @sujith any updates (did you get any chance to check details in private msg)?
  • sujith
    I didn't receive any details. Let me private message you.
  • Kamalv
    @sujith i faced same issue today, sent you details in personal msg.
  • debashis88
    debashis88 edited November 2021
    @sujith Dear Team,
    Even I faced the same problem today. Here are the details.
    Error: Couldn't find that `order_id`.
    Order ID: 211124200080679
    Time: 2021-11-24 09:15:10
    Order type: MARKET
    Product: MIS
    Stock name: TCS

    Is there any way to avoid this issue?
  • lalit1569
    Today I faced the same issue.
     KiteConnect\Exception\GeneralException
    Couldn't find that `order_id`.
    at D:\Ampps\www\rudraksh-trading\vendor\zerodha\phpkiteconnect\src\KiteConnect.php:1654
    [order_id] => 211126001783139
    [tradingsymbol] => NIFTY21DECFUT
    [status] => TRIGGER PENDING
    [product] => NRML
    [quantity] => 50
    [price] => 0
    [trigger_price] => 17403.5
    [fprice] => 17403.5
    [last_price] => 0
    [order_timestamp] => 2021-11-26 10:46:13
  • rakeshr
    Couldn't find that `order_id`.
    Has it happened only for that specific order or it's happening continuously?
    Also, can you check the complete order book and paste order response for the same order here?
  • lalit1569
    It's happening continuously.
  • lalit1569
    This happened again today here is the order log.
    {
    "placed_by": "HU1230",
    "order_id": "211129003621420",
    "exchange_order_id": "1100000079455702",
    "parent_order_id": null,
    "status": "TRIGGER PENDING",
    "status_message": null,
    "status_message_raw": null,
    "order_timestamp": "2021-11-29 14:45:00",
    "exchange_update_timestamp": "2021-11-29 14:45:02",
    "exchange_timestamp": {
    "date": "2021-11-29 14:45:02.000000",
    "timezone_type": 3,
    "timezone": "Asia/Kolkata"
    },
    "variety": "regular",
    "exchange": "NFO",
    "tradingsymbol": "NIFTY21DECFUT",
    "instrument_token": 18258178,
    "order_type": "SL-M",
    "transaction_type": "BUY",
    "validity": "DAY",
    "product": "NRML",
    "quantity": 100,
    "disclosed_quantity": 0,
    "price": 0,
    "trigger_price": 17143.7,
    "average_price": 0,
    "filled_quantity": 0,
    "pending_quantity": 100,
    "cancelled_quantity": 0,
    "market_protection": 0,
    "meta": {},
    "tag": "",
    "tags": [
    ],
    "guid": "21099XAgcNLYEqqIBH",
    "fprice": 17143.7,
    "last_price": 0
    }
  • manojmo
    hi,
    i am facing this issue, albeit in java. For testing, I using an order id that i see in my app's trade book. Is this a correct way, i.e. is the id we see in the trade book indeed the order id ? If not, how do i find it from the trade ?
  • sujith
    @manojmo, You should be looking for order_id from the orderbook or the tradebook.
  • manojmo
    @sujith , did you mean "NOT the tradebook" ? Coz i am using it from the trade book, but in the other thread, it was said that the exchange order_id is shown in the tradebook, not the zerodha one. And since this was an order created a few days ago, and the orderbook only shows today's orders, i can't find it there either. I understand there is no way to get the historical order ids.
  • Nivas
    You can retrieve the order ID from the API calls like the Orderbook and Tradebook for the current day (not for historical orders or trades).

    At our end, we generate the order ID (i.e., order_id), whereas the exchange generates the exchange order ID (i.e., exchange_order_id). In the console tradebook report, the exchange order ID (i.e., exchange_order_id) is updated under the Order ID column, not the order ID (i.e., order_id).

    For more details about the response fields, you can refer to the response parameters in the documentation.
Sign In or Register to comment.