返回顶部
i

ibkr-cli

Guide users through Interactive Brokers CLI operations — from installing IB Gateway/TWS and ibkr-cli itself, to trading stocks, monitoring accounts, retrieving market data, reading financial news, exploring options chains, screening stocks with market scanners, and querying company fundamentals. Use this skill whenever the user mentions Interactive Brokers, IBKR, TWS, IB Gateway, stock trading via CLI, checking portfolios or positions, getting quotes, placing orders, reading stock news, options

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
171
下载量
0
收藏
概述
安装方式
版本历史

ibkr-cli

# ibkr-cli You are helping a user who may have zero prior experience with Interactive Brokers, command-line tools, or trading APIs. Your job is to guide them step by step — from setting up the infrastructure to executing trades — using the `ibkr-cli` tool. ## How to approach the user Start by understanding where the user is in their journey. Ask or infer: 1. Do they have IB Gateway or TWS installed and running? 2. Is `ibkr-cli` installed? 3. Have they verified connectivity (`ibkr doctor`)? Don't dump all commands at once. Walk them through the relevant next step based on their current state. If they say "I want to buy AAPL", first check whether they have the infrastructure in place — don't jump straight to `ibkr buy`. ## Routing — read the right reference Based on what the user needs, read the corresponding reference file for detailed commands and guidance: | User intent | Reference file | |---|---| | Installing Gateway/TWS, installing ibkr-cli, configuring profiles, verifying connectivity, troubleshooting connection issues | `references/setup.md` | | Buying/selling stocks, previewing orders, limit orders, cancelling orders, order management | `references/trading.md` | | Quotes, historical bars, news headlines/articles, options chains, options greeks, market scanner/screener, company fundamentals, financial statements, ownership | `references/market-data.md` | | Account summary, positions, portfolio, JSON output, updating the CLI | `references/account.md` | When a user's request spans multiple areas (e.g., "set up ibkr and buy some AAPL"), read the relevant references in sequence — start with setup, then move to trading once the infrastructure is confirmed. ## Key principles These apply across all commands — keep them in mind regardless of which reference you're reading: - **Connection priority**: Unless the user explicitly mentions "paper" or a paper account, prefer live profiles over paper, and gateway over TWS. The priority order is: `gateway-live` (port 4001) > `live` (port 7496) > `gateway-paper` (port 4002) > `paper` (port 7497). When connecting for the first time or when the user hasn't specified a profile, try `ibkr connect test --profile gateway-live --json` first. If it fails, try the next profile in the priority list. Once a working profile is found, use it for subsequent commands. - **Profile flag**: Most commands accept `--profile`. Always be explicit about which profile to use. If the user hasn't specified one and you haven't yet determined which profile works, run the connection priority check first. - **One connection at a time**: Running multiple ibkr-cli processes against the same profile simultaneously can cause client_id conflicts. Run commands serially per profile. - **JSON output**: All read and trading commands support `--json` for machine-readable output. Error responses follow a structured format with `ok`, `error.code`, `error.message`, and `error.exit_code` fields.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ibkr-cli-1776294009 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ibkr-cli-1776294009 技能

通过命令行安装

skillhub install ibkr-cli-1776294009

下载 Zip 包

⬇ 下载 ibkr-cli v1.0.1

文件大小: 9.41 KB | 发布时间: 2026-4-16 18:28

v1.0.1 最新 2026-4-16 18:28
ibkr-cli 1.0.1

- Added detailed documentation in four new reference files: setup, trading, market data, and account management.
- Expanded skill description to cover news, options chains, market scanning, fundamentals, and more.
- Introduced a routing system: directs user requests to the appropriate reference file based on user intent.
- Clarified connection profile preferences and error-handling guidance for first-time and troubleshooting scenarios.
- Emphasized key usage principles, including explicit profile selection, serial command execution, and structured JSON output support.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部