← 返回
开发者工具 Key 中文

Xerolite

Integrate OpenClaw with Xerolite - IBKR. Use when: querying Xerolite API, placing orders, searching contracts, fetching portfolio.
集成 OpenClaw 与 Xerolite‑IBKR,用于查询 Xerolite API、下单、搜索合约、获取投资组合。
xero-flex xero-flex 来源
开发者工具 clawhub v0.1.4 2 版本 99928.4 Key: 需要
★ 0
Stars
📥 1,396
下载
💾 10
安装
2
版本
#latest

概述

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.

版本历史

共 2 个版本

  • v0.1.4 当前
    2026-05-03 02:59 安全 安全
  • v0.1.1
    2026-03-29 04:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

Stock Market Pro

kys42
Yahoo Finance (yfinance) 驱动的股票分析技能:行情报价、基本面、ASCII 趋势图、高分辨率图表(RSI/MACD/BB/VWAP/ATR),以及可选的网络...
★ 161 📥 39,926
professional

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 178 📥 61,353
professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 118 📥 40,937