Xpersona
I

IBKR + OpenClaw

CLAWHUB · Unverified

Connect OpenClaw to Interactive Brokers via IB Gateway Docker. Live portfolio data, real-time quotes, historical K-lines, technical analysis, and Telegram al... Skill: IBKR + OpenClaw Owner: amuletxheart Summary: Connect OpenClaw to Interactive Brokers via IB Gateway Docker. Live portfolio data, real-time quotes, historical K-lines, technical analysis, and Telegram al... Tags: docker:1.0.0, ibkr:1.0.0, interactive-brokers:1.0.0, latest:1.0.0, portfolio:1.0.0, trading:1.0.0 Version history: v1.0.0 | 2026-03-29T19:20:07.332Z | auto - Initial release of ibkr-openclaw. - Enables

62
Rank
84
Safety
977
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 977 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s174py3nsjj923av72z2h6yx8983t72r:ibkr-openclaw
  1. Setup complexity is MEDIUM. Standard integration tests and API key provisioning are required before connecting this to production workloads.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-amuletxheart-ibkr-openclaw/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

9,823 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: ibkr-openclaw
description: Connect OpenClaw to Interactive Brokers via IB Gateway Docker. Live portfolio data, real-time quotes, historical K-lines, technical analysis, and Telegram alerts — all read-only safe. Use when users ask about IBKR integration, portfolio monitoring, stock analysis, or automated trading alerts.
---

# IBKR + OpenClaw Integration

Connect OpenClaw to your Interactive Brokers account for live portfolio monitoring, real-time quotes, technical analysis, and automated Telegram alerts.

## Features

- **Live account data** — NAV, cash, P&L, buying power
- **Positions** — all holdings with avg cost and exchange
- **Real-time quotes** — delayed or live market data
- **Historical K-lines** — daily OHLCV data for technical analysis
- **Technical indicators** — RSI, MACD, Bollinger Bands, ATR, MA (via ib_async)
- **Read-only safe** — API configured for read-only access

## Prerequisites

- Interactive Brokers account (live or paper)
- IBKR Mobile app (for 2FA approval)
- Docker & Docker Compose installed on your server
- Python 3.9+ with `ib_async` and `pandas`

## Setup Guide

### Step 1: Install Docker

```bash
curl -fsSL https://get.docker.com | sh
docker --version
docker compose version
```

### Step 2: Clone IB Gateway Docker

The IB Gateway runs in a Docker container based on [gnzsnz/ib-gateway-docker](https://github.com/gnzsnz/ib-gateway-docker).

```bash
cd ~/.openclaw/workspace
git clone https://github.com/gnzsnz/ib-gateway-docker.git
cd ib-gateway-docker
```

### Step 3: Configure Environment

Create a `.env` file in the `ib-gateway-docker` directory:

```env
# IBKR Account
TWS_USERID=your_username
TWS_PASSWORD=your_password

# Trading mode: live or paper
TRADING_MODE=live

# Read-only API (recommended for monitoring)
READ_ONLY_API=yes

# API settings
TWS_ACCEPT_INCOMING=auto
TWS_MASTER_CLIENT_ID=1

# 2FA device name (find in IBKR web portal → Settings → Security)
TWOFA_DEVICE=IB Key

# 2FA timeout
TWOFA_TIMEOUT_ACTION=exit

# Timezone
TIME_ZONE=Asia/Singapore
TZ=Asia/Singapore

# VNC password (optional, for remote desktop)
VNC_SERVER_PASSWORD=your_password

# Auto restart (daily maintenance)
AUTO_RESTART_TIME=23:45

# Save settings between restarts
SAVE_TWS_SETTINGS=yes
```

**Important:** Find your `TWOFA_DEVICE` name in your IBKR web portal under:
Settings → Security → Second Factor Authentication → Devices

### Step 4: Start the Container

```bash
docker compose up -d
```

Check logs:
```bash
docker logs algo-trader-ib-gateway-1 --tail 20
```

### Step 5: Approve 2FA

The Gateway will prompt for 2FA. Approve the notification on your **IBKR Mobile app**.

Once connected, the API is available on:
- **Port 4001** → Paper trading API
- **Port 4002** → Live trading API (read-only if configured)

### Step 6: Install Python Dependencies

```bash
pip install ib_async pandas
```

### Step 7: Test the Connection

```bash
python3 ~/.openclaw/workspace/skills/ibkr-openclaw/scripts/ibkr_client.py summary --port 4001
```

_meta.json

{
  "ownerId": "kn7deahdzy0d5frn16tw63yvb183v3h9",
  "slug": "ibkr-openclaw",
  "version": "1.0.0",
  "publishedAt": 1774812007332
}

skill-card.md

## Description:

Connect OpenClaw to Interactive Brokers via IB Gateway Docker for portfolio data, real-time quotes, historical K-lines, technical analysis, and Telegram alerts.

This skill is ready for commercial/non-commercial use.

## Publisher:

[amuletxheart](https://clawhub.ai/user/amuletxheart)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and OpenClaw users with Interactive Brokers accounts use this skill to configure IB Gateway Docker access and query portfolio, position, quote, and historical market data for monitoring and alerts.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The setup relies on mutable installers, package installs, and a cloned Docker/Gateway dependency.

Mitigation: Review and pin Docker, Python package, and IB Gateway Docker versions before installation.

Risk: Brokerage credentials are stored in a plaintext .env file during setup.

Mitigation: Use a safer secret mechanism where possible, or restrict file permissions and host access before adding credentials.

Risk: Read-only configuration may not remove all operational or financial risk when connecting to a live brokerage account.

Mitigation: Prefer paper trading or least-privilege IBKR settings, verify read-only access before use, and monitor account permissions.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/amuletxheart/skills/ibkr-openclaw)
- [IB Gateway Docker](https://github.com/gnzsnz/ib-gateway-docker)
- [ib_async](https://github.com/ib-api-reloaded/ib_async)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with bash, env, and Python snippets; CLI commands emit plain-text account, position, NAV, and quote summaries.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires an Interactive Brokers account, IB Gateway Docker, local API access, and Python dependencies.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to IBKR + OpenClaw and adjacent AI workflows.