{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ibkr-trader",
    "name": "IBKR Trading",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/FlokieW/ibkr-trader",
    "canonicalUrl": "https://clawhub.ai/FlokieW/ibkr-trader",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ibkr-trader",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ibkr-trader",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/keepalive.py",
      "scripts/setup.sh",
      "scripts/trading_bot.py",
      "references/api-endpoints.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ibkr-trader"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/ibkr-trader",
    "agentPageUrl": "https://openagent3.xyz/skills/ibkr-trader/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ibkr-trader/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ibkr-trader/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "IBKR Trading Skill",
        "body": "Automate trading with Interactive Brokers using the Client Portal Gateway API."
      },
      {
        "title": "Overview",
        "body": "This skill enables:\n\nAutomated IBKR authentication via IBeam + IBKR Key\nPortfolio and position monitoring\nOrder placement and management\nBuilding custom trading strategies"
      },
      {
        "title": "Prerequisites",
        "body": "IBKR account (live or paper)\nIBKR Key app installed on phone (for 2FA)\nLinux server with Java 11+ and Chrome/Chromium"
      },
      {
        "title": "1. Install Dependencies",
        "body": "# Java (for Client Portal Gateway)\nsudo apt-get install -y openjdk-17-jre-headless\n\n# Chrome + ChromeDriver (for IBeam)\nsudo apt-get install -y chromium-browser chromium-chromedriver\n\n# Virtual display (headless auth)\nsudo apt-get install -y xvfb\n\n# Python venv\npython3 -m venv ~/trading/venv\nsource ~/trading/venv/bin/activate\npip install ibeam requests"
      },
      {
        "title": "2. Download Client Portal Gateway",
        "body": "cd ~/trading\nwget https://download2.interactivebrokers.com/portal/clientportal.gw.zip\nunzip clientportal.gw.zip -d clientportal"
      },
      {
        "title": "3. Configure Credentials",
        "body": "Create ~/trading/.env:\n\nIBEAM_ACCOUNT=your_username\nIBEAM_PASSWORD='your_password'\nIBEAM_GATEWAY_DIR=/path/to/trading/clientportal\nIBEAM_CHROME_DRIVER_PATH=/usr/bin/chromedriver\nIBEAM_TWO_FA_SELECT_TARGET=\"IB Key\""
      },
      {
        "title": "Start Gateway + Authenticate",
        "body": "# 1. Start Client Portal Gateway\ncd ~/trading/clientportal && bash bin/run.sh root/conf.yaml &\n\n# 2. Wait for startup (~20 sec)\nsleep 20\n\n# 3. Run IBeam authentication\ncd ~/trading\nsource venv/bin/activate\nsource .env\nexport DISPLAY=:99\nXvfb :99 -screen 0 1024x768x24 &\npython -m ibeam --authenticate\n\nImportant: User must approve IBKR Key notification on phone within ~2 minutes!"
      },
      {
        "title": "Check Auth Status",
        "body": "curl -sk https://localhost:5000/v1/api/iserver/auth/status\n\nAuthenticated response includes \"authenticated\": true."
      },
      {
        "title": "Account Info",
        "body": "# List accounts\ncurl -sk https://localhost:5000/v1/api/portfolio/accounts\n\n# Account summary\ncurl -sk \"https://localhost:5000/v1/api/portfolio/{accountId}/summary\""
      },
      {
        "title": "Positions",
        "body": "# Current positions\ncurl -sk \"https://localhost:5000/v1/api/portfolio/{accountId}/positions/0\""
      },
      {
        "title": "Market Data",
        "body": "# Search for symbol\ncurl -sk \"https://localhost:5000/v1/api/iserver/secdef/search?symbol=AAPL\"\n\n# Get quote (after searching)\ncurl -sk \"https://localhost:5000/v1/api/iserver/marketdata/snapshot?conids=265598&fields=31,84,86\""
      },
      {
        "title": "Place Orders",
        "body": "curl -sk -X POST \"https://localhost:5000/v1/api/iserver/account/{accountId}/orders\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"orders\": [{\n      \"conid\": 265598,\n      \"orderType\": \"MKT\",\n      \"side\": \"BUY\",\n      \"quantity\": 1,\n      \"tif\": \"DAY\"\n    }]\n  }'"
      },
      {
        "title": "Session Management",
        "body": "Sessions expire after ~24 hours. Options:\n\nKeepalive cron - Ping /v1/api/tickle every 5 min\nAuto re-auth - Run IBeam when session expires (requires phone approval)"
      },
      {
        "title": "Keepalive Script",
        "body": "import requests\nimport urllib3\nurllib3.disable_warnings()\n\ndef keepalive():\n    try:\n        r = requests.post(\"https://localhost:5000/v1/api/tickle\", verify=False, timeout=10)\n        status = requests.get(\"https://localhost:5000/v1/api/iserver/auth/status\", verify=False, timeout=10)\n        return status.json().get(\"authenticated\", False)\n    except:\n        return False"
      },
      {
        "title": "Troubleshooting",
        "body": "IssueSolutionGateway not respondingCheck if Java process is running: ps aux | grep GatewayStartLogin timeoutUser didn't approve IBKR Key in time - retry authConnection refusedGateway not started - run bin/run.sh root/conf.yamlChrome errorsEnsure Xvfb is running: Xvfb :99 & and export DISPLAY=:99"
      },
      {
        "title": "Files Reference",
        "body": "See references/api-endpoints.md for complete API documentation.\nSee scripts/ for ready-to-use automation scripts."
      }
    ],
    "body": "IBKR Trading Skill\n\nAutomate trading with Interactive Brokers using the Client Portal Gateway API.\n\nOverview\n\nThis skill enables:\n\nAutomated IBKR authentication via IBeam + IBKR Key\nPortfolio and position monitoring\nOrder placement and management\nBuilding custom trading strategies\nPrerequisites\nIBKR account (live or paper)\nIBKR Key app installed on phone (for 2FA)\nLinux server with Java 11+ and Chrome/Chromium\nQuick Setup\n1. Install Dependencies\n# Java (for Client Portal Gateway)\nsudo apt-get install -y openjdk-17-jre-headless\n\n# Chrome + ChromeDriver (for IBeam)\nsudo apt-get install -y chromium-browser chromium-chromedriver\n\n# Virtual display (headless auth)\nsudo apt-get install -y xvfb\n\n# Python venv\npython3 -m venv ~/trading/venv\nsource ~/trading/venv/bin/activate\npip install ibeam requests\n\n2. Download Client Portal Gateway\ncd ~/trading\nwget https://download2.interactivebrokers.com/portal/clientportal.gw.zip\nunzip clientportal.gw.zip -d clientportal\n\n3. Configure Credentials\n\nCreate ~/trading/.env:\n\nIBEAM_ACCOUNT=your_username\nIBEAM_PASSWORD='your_password'\nIBEAM_GATEWAY_DIR=/path/to/trading/clientportal\nIBEAM_CHROME_DRIVER_PATH=/usr/bin/chromedriver\nIBEAM_TWO_FA_SELECT_TARGET=\"IB Key\"\n\nAuthentication\nStart Gateway + Authenticate\n# 1. Start Client Portal Gateway\ncd ~/trading/clientportal && bash bin/run.sh root/conf.yaml &\n\n# 2. Wait for startup (~20 sec)\nsleep 20\n\n# 3. Run IBeam authentication\ncd ~/trading\nsource venv/bin/activate\nsource .env\nexport DISPLAY=:99\nXvfb :99 -screen 0 1024x768x24 &\npython -m ibeam --authenticate\n\n\nImportant: User must approve IBKR Key notification on phone within ~2 minutes!\n\nCheck Auth Status\ncurl -sk https://localhost:5000/v1/api/iserver/auth/status\n\n\nAuthenticated response includes \"authenticated\": true.\n\nAPI Usage\nAccount Info\n# List accounts\ncurl -sk https://localhost:5000/v1/api/portfolio/accounts\n\n# Account summary\ncurl -sk \"https://localhost:5000/v1/api/portfolio/{accountId}/summary\"\n\nPositions\n# Current positions\ncurl -sk \"https://localhost:5000/v1/api/portfolio/{accountId}/positions/0\"\n\nMarket Data\n# Search for symbol\ncurl -sk \"https://localhost:5000/v1/api/iserver/secdef/search?symbol=AAPL\"\n\n# Get quote (after searching)\ncurl -sk \"https://localhost:5000/v1/api/iserver/marketdata/snapshot?conids=265598&fields=31,84,86\"\n\nPlace Orders\ncurl -sk -X POST \"https://localhost:5000/v1/api/iserver/account/{accountId}/orders\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"orders\": [{\n      \"conid\": 265598,\n      \"orderType\": \"MKT\",\n      \"side\": \"BUY\",\n      \"quantity\": 1,\n      \"tif\": \"DAY\"\n    }]\n  }'\n\nSession Management\n\nSessions expire after ~24 hours. Options:\n\nKeepalive cron - Ping /v1/api/tickle every 5 min\nAuto re-auth - Run IBeam when session expires (requires phone approval)\nKeepalive Script\nimport requests\nimport urllib3\nurllib3.disable_warnings()\n\ndef keepalive():\n    try:\n        r = requests.post(\"https://localhost:5000/v1/api/tickle\", verify=False, timeout=10)\n        status = requests.get(\"https://localhost:5000/v1/api/iserver/auth/status\", verify=False, timeout=10)\n        return status.json().get(\"authenticated\", False)\n    except:\n        return False\n\nTroubleshooting\nIssue\tSolution\nGateway not responding\tCheck if Java process is running: ps aux | grep GatewayStart\nLogin timeout\tUser didn't approve IBKR Key in time - retry auth\nConnection refused\tGateway not started - run bin/run.sh root/conf.yaml\nChrome errors\tEnsure Xvfb is running: Xvfb :99 & and export DISPLAY=:99\nFiles Reference\n\nSee references/api-endpoints.md for complete API documentation. See scripts/ for ready-to-use automation scripts."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/FlokieW/ibkr-trader",
    "publisherUrl": "https://clawhub.ai/FlokieW/ibkr-trader",
    "owner": "FlokieW",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ibkr-trader",
    "downloadUrl": "https://openagent3.xyz/downloads/ibkr-trader",
    "agentUrl": "https://openagent3.xyz/skills/ibkr-trader/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ibkr-trader/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ibkr-trader/agent.md"
  }
}