{"record":{"id":"1f8aa07baccff4be","repo":"nautechsystems/nautilus_trader","slug":"order-not-found-in-open-orders-or-events-venue-o","errorCode":null,"errorMessage":"Order not found in open orders or events: {venue_order_id}","messagePattern":"Order not found in open orders or events: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/adapters/kraken/src/http/futures/client.rs","lineNumber":2213,"sourceCode":"                    anyhow::bail!(\"No order, orderTrigger, or orderPriorExecution data in event\");\n                };\n                return parse_futures_order_event_status_report(\n                    &event,\n                    Some(send_event.event_type),\n                    &instrument,\n                    account_id,\n                    ts_init,\n                );\n            }\n\n            // Fall back to querying order events\n            let events_response = self.inner.get_order_events(None, None, None).await?;\n            let event_wrapper = events_response\n                .order_events\n                .iter()\n                .find(|e| e.order.order_id == venue_order_id)\n                .ok_or_else(|| {\n                    anyhow::anyhow!(\"Order not found in open orders or events: {venue_order_id}\")\n                })?;\n\n            parse_futures_order_event_status_report(\n                &event_wrapper.order,\n                Some(event_wrapper.event_type),\n                &instrument,\n                account_id,\n                ts_init,\n            )\n        }\n        .await;\n\n        report.map_err(|source| KrakenSubmitOrderError::PostSubmitLookup { source }.into())\n    }\n\n    /// Modifies an existing order on the Kraken Futures exchange.\n    ///\n    /// Returns the new venue order ID assigned to the modified order.","sourceCodeStart":2195,"sourceCodeEnd":2231,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/adapters/kraken/src/http/futures/client.rs#L2195-L2231","documentation":"After submitting an order, submit_order tries to locate its status report first in open orders and then across order events. If the venue order ID appears in neither, this error is raised — the exchange accepted/acknowledged differently than expected or the report is not yet visible.","triggerScenarios":"submit_order calls get_open_orders, doesn't find venue_order_id, then calls get_order_events(None, None, None) and find() fails — e.g. order was rejected instantly, filled and archived outside the event window, or eventual-consistency lag means the event hasn't appeared yet.","commonSituations":"Racing the exchange's eventual consistency right after submit; orders rejected at the venue (never appear in open orders or events); API credential scoped to a different account than the order.","solutions":["Check whether the order was actually rejected — inspect any rejection status returned earlier in submit_order.","Add a short retry/delay and re-query order status (eventual consistency lag).","Verify venue_order_id matches what the venue returned in the submit response.","Confirm the client's credentials target the same account the order was submitted to."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"// wrap the lookup phase with a bounded retry for eventual-consistency lag\nfor attempt in 0..3 {\n    if let Ok(report) = find_order_report(venue_order_id).await { return Ok(report); }\n    tokio::time::sleep(Duration::from_millis(200 * (attempt + 1))).await;\n}\nErr(anyhow!(\"Order not found in open orders or events: {venue_order_id}\"))","preventionTips":["Allow a short grace period after submit before resolving order status.","Treat instant 'not found' as a possible venue rejection and check submit responses first.","Ensure the client credentials match the account orders are submitted to.","Log the venue_order_id from the submit response for correlation."],"tags":["orders","kraken","futures","not-found","reconciliation"],"backgroundTag":"record-not-found","analyzedSha":"18893faf8b356be3320add8de2f861b0b647cf06","analyzedAt":"2026-09-08T20:49:34.690Z","contentChangedAt":"2026-09-08T20:49:34.690Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}