IBKR Evaluate Order
Evaluate and validate a single-leg order without placing it. Produces a constraint-adjusted order preview with portfolio impact, concentration change, and profile compliance.
When to Use
- User says "buy X shares of Y" or "sell Y" and you need to validate before execution
- Comparing multiple order scenarios before committing
- Use after
ibkr-portfolio-snapshot for context
- Follow up with
ibkr-place-order once the user approves
Workflow
Phase 1 — Trading Status Check
- Call
ibkr_get_trading_status — read dryRun, ordersEnabled, tradingMode, blockReason
- If
dryRun=true or tradingMode=paper, note it in the output (the user may want to change it before evaluating)
- If
ordersEnabled=false, stop here and report the block to the user
blockReason alone is informational and does NOT block evaluation when ordersEnabled=true and dryRun=false
- A safety-lock blockReason (e.g., "Safety lock engaged after environment switch") is cleared automatically when the user intentionally unlocks via
ibkr_admin_update_trading_control
Phase 2 — Instrument Qualification
- Call
ibkr_resolve_contract to fully qualify the instrument (symbol + securityType + exchange + currency)
Phase 3 — Pre-Trade Validation
- Call
ibkr_preview_order with the full OrderSpec — get estimated price, notional, commission, warnings
- Call
ibkr_assess_order_impact — get concentration change, buying-power usage, margin impact
- Call
ibkr_validate_against_profile — confirm the order is within profile limits
Phase 4 — Constraint Presentation
- Present the evaluated order with a clear summary table:
Instrument: <symbol> | <securityType> | <exchange> / <currency>
Side: <BUY|SELL> | Qty: <qty> | Order Type: <orderType>
Est. Price: <price> | Est. Notional: <notional>
Portfolio Impact:
| Metric |
Value |
| Concentration before |
<pct>% |
| Concentration after |
<pct>% |
| Buying power used |
<pct>% |
| Margin utilisation |
<pct>% |
Profile Check: <passed|failed> | Violations: <list or "None">
Warnings: <list or "None">
If the qty needed adjustment to satisfy profile limits or the minimum remaining position constraint, note the adjusted qty and why.
Call question to confirm: "Ready to submit for Telegram approval?" with options "Yes, submit" and "No, cancel" (only proceed if they confirm)
Guardrails
- This skill is read-only with respect to execution. Do not call
ibkr_place_order, ibkr_request_trade_approval, or any execution tool inside this skill.
- Use a unique
clientOrderId for every evaluation (e.g. {symbol}-{side}-{timestamp}).
- If
ordersEnabled=false or blockReason is set, stop and report the block reason — do not proceed to evaluation.
- If
dryRun=true or tradingMode=paper, note it but still run the full validation (the user may choose to enable live trading before execution).
OrderSpec Reference
{
"instrument": { "symbol": "<SYMBOL>", "securityType": "STK", "exchange": "SMART", "currency": "USD" },
"side": "BUY" | "SELL",
"quantity": <positive number>,
"orderType": "MKT" | "LMT" | "STP" | "STP_LMT",
"limitPrice": <number, required for LMT/STP_LMT>,
"tif": "DAY" | "GTC" | "IOC",
"outsideRth": false,
"clientOrderId": "<unique-id>",
"transmit": true
}
Resources
ibkr_get_trading_status
ibkr_resolve_contract
ibkr_preview_order
ibkr_assess_order_impact
ibkr_validate_against_profile
1---
2name: ibkr-evaluate-order
3description: Evaluate a proposed single-leg order through full pre-trade validation. Use when the user requests to buy or sell a specific instrument and you need to assess portfolio impact, concentration, and profile compliance before any approval or execution. Call ibkr-place-order after this skill to execute an approved order.
4metadata:
5 source: https://skillmd.com/skills/aibot88/ibkr-evaluate-order
6---
7
8# IBKR Evaluate Order
9
10Evaluate and validate a single-leg order without placing it. Produces a constraint-adjusted order preview with portfolio impact, concentration change, and profile compliance.
11
12## When to Use
13
14- User says "buy X shares of Y" or "sell Y" and you need to validate before execution
15- Comparing multiple order scenarios before committing
16- Use after `ibkr-portfolio-snapshot` for context
17- Follow up with `ibkr-place-order` once the user approves
18
19## Workflow
20
21### Phase 1 — Trading Status Check
22
231. Call `ibkr_get_trading_status` — read `dryRun`, `ordersEnabled`, `tradingMode`, `blockReason`
242. If `dryRun=true` or `tradingMode=paper`, note it in the output (the user may want to change it before evaluating)
253. If `ordersEnabled=false`, stop here and report the block to the user
26 - `blockReason` alone is informational and does NOT block evaluation when `ordersEnabled=true` and `dryRun=false`
27 - A safety-lock blockReason (e.g., "Safety lock engaged after environment switch") is cleared automatically when the user intentionally unlocks via `ibkr_admin_update_trading_control`
28
29### Phase 2 — Instrument Qualification
30
314. Call `ibkr_resolve_contract` to fully qualify the instrument (symbol + securityType + exchange + currency)
32
33### Phase 3 — Pre-Trade Validation
34
355. Call `ibkr_preview_order` with the full `OrderSpec` — get estimated price, notional, commission, warnings
366. Call `ibkr_assess_order_impact` — get concentration change, buying-power usage, margin impact
377. Call `ibkr_validate_against_profile` — confirm the order is within profile limits
38
39### Phase 4 — Constraint Presentation
40
418. Present the evaluated order with a clear summary table:
42
43**Instrument:** `<symbol>` | `<securityType>` | `<exchange>` / `<currency>`
44**Side:** `<BUY|SELL>` | **Qty:** `<qty>` | **Order Type:** `<orderType>`
45**Est. Price:** `<price>` | **Est. Notional:** `<notional>`
46
47**Portfolio Impact:**
48| Metric | Value |
49|--------|-------|
50| Concentration before | `<pct>%` |
51| Concentration after | `<pct>%` |
52| Buying power used | `<pct>%` |
53| Margin utilisation | `<pct>%` |
54
55**Profile Check:** `<passed|failed>` | Violations: `<list or "None">`
56**Warnings:** `<list or "None">`
57
589. If the qty needed adjustment to satisfy profile limits or the minimum remaining position constraint, note the adjusted qty and why.
59
6010. Call `question` to confirm: "Ready to submit for Telegram approval?" with options "Yes, submit" and "No, cancel" (only proceed if they confirm)
61
62## Guardrails
63
64- **This skill is read-only with respect to execution.** Do not call `ibkr_place_order`, `ibkr_request_trade_approval`, or any execution tool inside this skill.
65- Use a unique `clientOrderId` for every evaluation (e.g. `{symbol}-{side}-{timestamp}`).
66- If `ordersEnabled=false` or `blockReason` is set, stop and report the block reason — do not proceed to evaluation.
67- If `dryRun=true` or `tradingMode=paper`, note it but still run the full validation (the user may choose to enable live trading before execution).
68
69## OrderSpec Reference
70
71```
72{
73 "instrument": { "symbol": "<SYMBOL>", "securityType": "STK", "exchange": "SMART", "currency": "USD" },
74 "side": "BUY" | "SELL",
75 "quantity": <positive number>,
76 "orderType": "MKT" | "LMT" | "STP" | "STP_LMT",
77 "limitPrice": <number, required for LMT/STP_LMT>,
78 "tif": "DAY" | "GTC" | "IOC",
79 "outsideRth": false,
80 "clientOrderId": "<unique-id>",
81 "transmit": true
82}
83```
84
85## Resources
86
87- `ibkr_get_trading_status`
88- `ibkr_resolve_contract`
89- `ibkr_preview_order`
90- `ibkr_assess_order_impact`
91- `ibkr_validate_against_profile`