xerolite

Integrate OpenClaw with Xerolite - IBKR. Use when: querying Xerolite API, placing orders, searching contracts, fetching portfolio.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "xerolite" with this command: npx skills add xero-flex/xerolite

Xerolite

Trading Bridge from TradingView to Interactive Brokers.

Xerolite automates execution of your trading ideas: it connects TradingView alerts to your Interactive Brokers account so orders are sent in real time with no manual steps. You design the logic and alerts in TradingView; Xerolite handles the bridge to IB (TWS or IB Gateway) and execution.

This skill lets your OpenClaw agent call the Xerolite REST API to place orders, search contracts, and fetch portfolio — so you can trade, look up symbols, or inspect positions from natural language or automation without leaving your workflow.

Package Structure

skills/xerolite/
├── SKILL.md              # This file
├── scripts/
│   ├── xerolite.mjs      # CLI (order place, contract search, portfolio get)
└── references/
    └── API.md            # REST API guide

Capabilities

  • Place orders via Xerolite REST API.
  • Search contracts via Xerolite REST API.
  • Fetch portfolio (positions) via Xerolite agentic API.

Commands

Use these commands from the skill directory (or with {baseDir} in other skills).

Default flag values (optional; omit to use): --currency USD, --asset-class STOCK, --exch SMART.

Place order

Required: --action, --qty, --symbol. Optional: --currency, --asset-class, --exch, --api-key.

# Minimal (defaults: USD, STOCK, SMART)
node {baseDir}/scripts/xerolite.mjs order place --symbol AAPL --action BUY --qty 10

# Full
node {baseDir}/scripts/xerolite.mjs order place \
  --symbol AAPL \
  --currency USD \
  --asset-class STOCK \
  --exch SMART \
  --action BUY \
  --qty 10 \
  --api-key "$XEROLITE_AGENTIC_API_KEY"

Request sent to POST /api/agentic/order/place-order with header:

X-Agentic-Api-Key: <your-api-key>

JSON body:

{
  "name": "Agent",
  "action": "BUY",
  "qty": "10",
  "symbol": "AAPL",
  "currency": "USD",
  "asset_class": "STOCK",
  "exch": "SMART"
}

Search contract

Required: --symbol. Optional: --currency, --asset-class, --exch, --api-key.

# Minimal (defaults: USD, STOCK, SMART)
node {baseDir}/scripts/xerolite.mjs contract search --symbol AAPL

# Full
node {baseDir}/scripts/xerolite.mjs contract search \
  --symbol AAPL \
  --currency USD \
  --asset-class STOCK \
  --exch SMART \
  --api-key "$XEROLITE_AGENTIC_API_KEY"

Request sent to POST /api/agentic/contract/search with header:

X-Agentic-Api-Key: <your-api-key>

JSON body:

{
  "brokerName": "IBKR",
  "symbol": "AAPL",
  "currency": "USD",
  "xeroAssetClass": "STOCK"
}

Get portfolio

Optional: --api-key. No symbol or other flags.

node {baseDir}/scripts/xerolite.mjs portfolio get

node {baseDir}/scripts/xerolite.mjs portfolio get --api-key "$XEROLITE_AGENTIC_API_KEY"

Request sent to POST /api/agentic/portfolio with header:

X-Agentic-Api-Key: <your-api-key>

Body: {} (empty object). Response: JSON array of position rows from the broker connection.

REST API

For the order, contract search, and portfolio endpoints used by this skill, see references/API.md.

Requirements

  • Node.js 18+ (for built-in fetch)
  • CLI: Optional XEROLITE_API_URL — base URL for Xerolite API. If not set, defaults to http://localhost.
  • Auth required: Set XEROLITE_AGENTIC_API_KEY (or pass --api-key) for X-Agentic-Api-Key header.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wangdongjie Cfo Skill

基于王东杰26年实战经验,提供A+H双市场IPO操盘、资本杠杆设计、业财融合和AI数字化风控咨询。

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for Chinese bank trading desk. Use when user asks "生成晨报", "股市晨报", "今日股市", "港股晨報", or any similar HK stock mark...

Registry SourceRecently Updated
General

Nansen Mpp Payment

Pay-per-call access to the Nansen API via MPP (Tempo). Use when a user wants anonymous Nansen access without an API key and without managing their own Base/S...

Registry SourceRecently Updated
General

Etsy Autolist

Auto-create and manage digital product listings on Etsy. Creates listings from existing digital product files (PDFs, templates, spreadsheets) using Etsy Open...

Registry SourceRecently Updated