plugins/ibkr-trading/skills/ibkr-trading/SKILL.md
Comprehensive Interactive Brokers algotrading knowledge base covering TWS API 10.45 architecture, ib_async event-driven programming, market data subscriptions, order execution with bracket orders, historical data with pacing rules, reconnection resilience, IBC automation, and Windows production deployment. TRIGGER WHEN: building, implementing, writing, coding, creating, optimizing, or debugging IB trading systems with Python. DO NOT TRIGGER WHEN: the task is outside the specific scope of this component.
npx skillsauth add acaprino/anvil-toolset ibkr-tradingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Knowledge base for building production-grade algorithmic trading systems with Interactive Brokers TWS API and ib_async in Python.
For 80% of use cases, start with:
pip install ib_async (asyncio-native successor to ib_insync)reqRealTimeBars for live 5-sec bars with local aggregationtransmit=False patterndisconnectedEvent + exponential backoff reconnectionThen harden incrementally:
reqExecutions() reconciliationreqPositions()tws-api-architecture.md -- TWS API 10.45, Gateway vs TWS, Client Portal, ib_async setup, clientId strategy, official docsevent-driven-data.md -- reqMktData, reqRealTimeBars, reqTickByTickData, keepUpToDate, OHLCV construction, pacing violations, historical dataorder-execution.md -- order types, bracket orders, lifecycle states, execDetails monitoring, race conditions, error codesreconnection-resilience.md -- daily reset, IBC automation, reconnect patterns, heartbeat, Windows deployment, community resources| Decision | Default | Upgrade When | |----------|---------|-------------| | Connection target | IB Gateway | Need visual debugging -- TWS | | Python library | ib_async | Need same-day new features -- ibapi | | Live data | reqRealTimeBars (5s bars) | Need tick precision -- reqTickByTickData (max 3) | | Chart data | keepUpToDate | Network-sensitive env -- reqRealTimeBars + aggregation | | Historical data | reqHistoricalData + throttle | Bulk backfill -- chunked requests with Semaphore | | Order type | Bracket (parent+TP+SL) | Need trailing: TRAIL. Need algo: Adaptive | | Lifecycle mgmt | IBC + Task Scheduler | Docker available -- gnzsnz/ib-gateway-docker | | whatToShow | TRADES | Forex: MIDPOINT. Backtesting: ADJUSTED_LAST |
tools
Master memory forensics techniques including memory acquisition, process analysis, and artifact extraction using Volatility and related tools. Use when analyzing memory dumps, investigating incidents, or performing malware analysis from RAM captures.
development
Master binary analysis patterns including disassembly, decompilation, control flow analysis, and code pattern recognition. Use when analyzing executables, understanding compiled code, or performing static analysis on binaries.
development
Idiomatic Kotlin implementation patterns: coroutines and structured concurrency, Flow / StateFlow / SharedFlow, Kotlin Multiplatform (KMP) shared-code architecture, Jetpack Compose UI, Ktor server with JWT auth and Exposed, and type-safe DSL design (lambdas with receivers, delegated properties, inline reified, value classes). TRIGGER WHEN: building, writing, or reviewing Kotlin code using coroutines / Flow / suspend functions, expect/actual, Compose composables / ViewModels, Ktor routing, sealed-class state modeling, scope functions, or DSL builders. DO NOT TRIGGER WHEN: libGDX game work (use libgdx-development), Android Java without Kotlin, or pure JVM tuning unrelated to Kotlin language features.
tools
Strategic website planning skill that conducts structured client discovery, produces professional deliverables (website brief, sitemap, design direction, content strategy), and orchestrates frontend-design, frontend-layout, seo-specialist, and content-marketer agents automatically. TRIGGER WHEN: planning a new website or redesign before any code is written. DO NOT TRIGGER WHEN: the task is outside the specific scope of this component.