Fetch order telemetry for a deployment
get_deployment_order_telemetryA saved-code-only edit does not require live orders or positions. Implement confirmed-fill handling in the strategy runtime without inventing a current fill or deployment. The live evidence requirements below apply only when investigating or preserving state for an existing live deployment. Requires the exact deploymentId from a matching list_deployments row or supplied by the user. If discovery returns no matching deployment and the user has not supplied its deploymentId, live telemetry is unavailable: continue an authorized saved-code repair using the saved revision and supported order/fill lifecycle, and disclose the missing live evidence. Do not probe with placeholders, strategy IDs, bot IDs, or invented deployment IDs; this tool cannot discover a deployment from them. For current bot performance and decision summaries, use show_bot_activity first; it includes recorded fills and orders. Use this separate reader for a targeted order/fill investigation requiring its filters, not to repeat that report. Returns orders tracked for a live bot: active/open orders plus recent terminal orders (filled, partially_filled, canceled, rejected, expired) updated in the last 24 hours. Order snapshots may include imported broker-account orders. A botId or deploymentId wrapper does not prove that this strategy submitted an order. Establish attribution from matching order_id submission/fill events in deployment logs, revision and run timing, and user corrections before diagnosing strategy behavior. Orders predating this run may be recovered strategy orders or unrelated account trades; do not infer either from symbol or wrapper alone. Each order includes timestamp, symbol, action (buy/sell), quantity/filled quantity, fill price, order_id, status, reason, and available option metadata. For an existing live deployment, after verifying attribution, use this as primary evidence for latest bot-owned fills, latest buy, cost basis, entry price, sell-trigger basis, and questions like 'why didn't it sell'. When this conflicts with get_deployment_position_telemetry avg_fill_price, state the conflict and prefer the newest relevant bot-owned filled order for latest-fill logic. This tool does not replace get_deployment_position_telemetry: for live fill-basis/code-fix work on that resolved deployment, attempt positions separately even if orders fail, and do not treat list_deployments as a substitute for either evidence tool. A concrete fill supplied by the user is recovery evidence only after live order/position tools fail or are unavailable; do not skip this tool just because the user gave a fill. If order tools fail but the user supplied a concrete bot-owned fill, continue the requested code fix using that supplied fill instead of stopping; record/use the supplied fill in executable strategy state as the bootstrap latest verified fill until live order evidence replaces it, not only in prose and not as an unset placeholder. If the user says to stop using position.avg_fill_price or says it is stale/wrong, the saved code must remove executable calls such as position.avg_fill_price, getattr(position, 'avg_fill_price'), or average_fill_price(...) instead of keeping them as fallback logic. Do not solve this by trying orders first and then falling back to avg_fill_price; hold/skip, keep the last verified bot-owned fill, or use the concrete bot-owned fill supplied by the user instead. Supports filtering by status (e.g. 'filled,canceled'), symbol (case-insensitive), hoursAgo, includeOpen, and time window (via ISO-8601 or Unix epoch). Results are paginated — use nextToken from the response to fetch subsequent pages. For live order analysis, use includeOpen=true, sort='desc', a small limit, and status/statuses filters when relevant. Default sort is newest-first (desc). This is not the first reader for a general activity summary: show_bot_activity includes recent orders with their dates. Use this for a requested detailed filtered order investigation such as 'show me all filled orders for AAPL'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | ||
| limit | No | ||
| status | No | ||
| symbol | No | ||
| hoursAgo | No | ||
| statuses | No | ||
| nextToken | No | ||
| endTimeIso | No | ||
| includeOpen | No | ||
| deploymentId | Yes | ||
| endTimestamp | No | ||
| startTimeIso | No | ||
| startTimestamp | No |