clawby-data
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseClawby Data Analysis
Clawby 数据分析
Fetch real financial data through the Clawby aggregated data API and analyze it. The single source of truth for every interface — its params (required · format · example) and ⚠️ pitfalls — is (start at ). Always read the relevant category yaml before calling. The full machine catalog is (server-generated, versioned).
api/catalog/api/catalog/_index.yamlapi/clawby.yamlWorks with any AI agent — Claude Code, Codex, OpenClaw, Hermes, and anything that can run shell commands or call an HTTP API: just an API key + the catalog + plain .
curl通过 Clawby 聚合数据 API 获取真实金融数据并进行分析。每个接口的唯一事实来源——其参数(必填 · 格式 · 示例)和 ⚠️ 注意事项——是 (从 开始)。调用前务必阅读相关类别的 yaml。 完整的机器目录为 (由服务器生成,带版本)。
api/catalog/api/catalog/_index.yamlapi/clawby.yaml适用于任何 AI Agent——Claude Code、Codex、OpenClaw、Hermes,以及任何能够运行 shell 命令或调用 HTTP API 的工具:只需一个 API key + 目录 + 简单的 。
curlQuick start
快速开始
bash
undefinedbash
undefined1. Auth (once): sign in at https://www.openclawby.com/ → export CLAWBY_API_KEY=pk_xxx
1. Auth (once): sign in at https://www.openclawby.com/ → export CLAWBY_API_KEY=pk_xxx
2. Find the interface in api/catalog/<category>/ (routing table below)
2. Find the interface in api/catalog/<category>/ (routing table below)
3. Call it:
3. Call it:
curl -s -X POST https://api.openclawby.com/api/relay
-H "X-API-Key: $CLAWBY_API_KEY" -H "Content-Type: application/json"
-d '{"name":"<interface name from catalog>","params":{ ... }}'
-H "X-API-Key: $CLAWBY_API_KEY" -H "Content-Type: application/json"
-d '{"name":"<interface name from catalog>","params":{ ... }}'
curl -s -X POST https://api.openclawby.com/api/relay
-H "X-API-Key: $CLAWBY_API_KEY" -H "Content-Type: application/json"
-d '{"name":"<interface name from catalog>","params":{ ... }}'
-H "X-API-Key: $CLAWBY_API_KEY" -H "Content-Type: application/json"
-d '{"name":"<interface name from catalog>","params":{ ... }}'
→ {source, data, credits:{remaining,used_total}}
→ {source, data, credits:{remaining,used_total}}
undefinedundefinedCore workflow · Gather ALL available data first, then analyze
核心工作流 · 先收集所有可用数据,再进行分析
Completeness is the goal. A thin answer from a single source is a failure even when correct — go broad first, analyze second. Apply this to every request.
- Turn the request into a data checklist. Ask "what would a thorough analyst pull?" and list every relevant dimension. Over-collect on purpose (a stock → quote, short data, dark pool, options, financials, sentiment, peers; a token → DEX price/liquidity, holders, funding & OI, odds, social buzz).
- For each item, sweep ALL FOUR source layers — never stop at the first hit:
- Layer 1 — Clawby data (): scan the catalog for every interface that touches the item and call them all. Primary, authoritative.
/api/relay - Layer 2 — Local akshare (, read-only): China markets (A-shares · HK · futures · convertible bonds · ETFs · boards · northbound flows · dragon-tiger list · shareholder data) and global macro (CPI · non-farm · PMI · rate decisions) — 1080 interfaces Layer 1 does not carry. Runs locally on the user's machine with no Clawby key and no credits. Guide:
akdata/.akdata/akshare.md - Layer 3 — Execution connectors (, read-only use): the Binance / Bitget / OKX / Polymarket CLIs expose market data, order books, funding, smart-money and news the other layers may not have. Read-only needs no confirmation.
exec/ - Layer 4 — Your own web access: news, filings, official docs, macro context — fill every remaining gap.
- Layer 1 — Clawby data (
- Maximize coverage. If two layers supply the same metric, fetch both and cross-check. Fire independent fetches in parallel. Never skip a reachable source.
- Track coverage, then analyze. Ground every claim in collected data; if a source failed, say so instead of silently dropping the dimension.
- Offer a formal report when it fits — for substantial asset analysis, offer a professional PDF research report (see Professional analysis reports). Ask first.
目标是保证完整性。 即使答案正确,如果只依赖单一来源也属于失败——先广泛收集,再进行分析。必须对每个请求遵循此原则。
- 将请求转化为数据检查清单。 询问:“一名严谨的分析师会拉取哪些数据?”并列出所有相关维度。刻意进行过度收集(股票 → 行情、空头数据、暗池、期权、财务数据、情绪、同行;代币 → DEX 价格/流动性、持有者、资金费率与 OI、赔率、社交热度)。
- 针对每个项目扫描全部四个来源层——绝不要在首次命中后停止:
- 第 1 层——Clawby 数据():扫描目录,查找所有与该项目相关的接口并全部调用。这是主要且权威的数据源。
/api/relay - 第 2 层——本地 akshare(,只读):中国市场(A 股 · 港股 · 期货 · 可转债 · ETF · 板块 · 北向资金 · 龙虎榜 · 股东数据)和全球宏观数据(CPI · 非农 · PMI · 利率决议)——包含 1080 个第 1 层未覆盖的接口。在用户机器上本地运行,无需 Clawby key,也不消耗 credits。使用指南:
akdata/。akdata/akshare.md - 第 3 层——执行连接器(,只读使用):Binance / Bitget / OKX / Polymarket CLI 提供其他层可能没有的市场数据、订单簿、资金费率、智能资金和新闻。只读操作无需确认。
exec/ - 第 4 层——你自己的 Web 访问能力:新闻、文件、官方文档、宏观背景——填补所有剩余空白。
- 第 1 层——Clawby 数据(
- 最大化覆盖范围。 如果两个来源层提供同一指标,则同时获取并交叉验证。并行发起相互独立的请求。绝不要跳过任何可访问的来源。
- 追踪覆盖情况,然后进行分析。 每项结论都必须以已收集的数据为依据;如果某个来源失败,应明确说明,而不是悄然丢弃相应维度。
- 在适合时提供正式报告——对于全面的资产分析,可提供专业 PDF 研究报告(参见专业分析报告)。先征求用户同意。
Skill structure
Skill 结构
clawby-data/
├── SKILL.md ← this file (managed — refreshed on update; re-read after updating)
├── update-protocol.md ← first-run + update rules (read at Step 0)
├── manifest.json ← version + managed file list
├── api/
│ ├── catalog/ ← per-category interface docs (params + gotchas) — READ before calling
│ ├── clawby.yaml ← full machine catalog (all interfaces)
│ └── index.yaml ← catalog registry
├── akdata/ ← local akshare executor: China markets + global macro; guide akdata/akshare.md
├── exec/ ← trade-execution connectors; registry exec/index.yaml
├── script/ ← connector helpers: baw/ (fast one-shot scripts) + 42space/ (42.space automated trading); see each dir's README
├── rpc/ ← BYOK RPC (EVM + non-EVM; Ankr/Alchemy/BlockPI) using the user's OWN key — or a NO-KEY public endpoint for 8 chains; registry rpc/index.yaml
├── social/ ← BYOK social & search (Desearch, TwexAPI) using the user's OWN key; registry social/index.yaml
├── llm/ ← BYOK LLM APIs (DeepSeek/OpenAI/Claude/Qwen/Kimi/GLM/OpenRouter) using the user's OWN key; registry llm/index.yaml
├── defi/ ← DeFi connectors: LI.FI cross-chain bridge/swap quotes + Earn yield (key OPTIONAL — no-key tier); registry defi/index.yaml
├── custom/ ← BYOK for user-defined vault providers; first use records the API into local/custom-apis/ for quick reuse; registry custom/index.yaml
├── account/ ← account self-service (email login → key · usage · Key Vault management) via /api/self/*; registry account/index.yaml
├── report/ ← PDF report guide + stylesheet
├── data/ ← misc reference data
└── local/ ← local state / caches; the ONLY folder preserved across updatesclawby-data/
├── SKILL.md ← this file (managed — refreshed on update; re-read after updating)
├── update-protocol.md ← first-run + update rules (read at Step 0)
├── manifest.json ← version + managed file list
├── api/
│ ├── catalog/ ← per-category interface docs (params + gotchas) — READ before calling
│ ├── clawby.yaml ← full machine catalog (all interfaces)
│ └── index.yaml ← catalog registry
├── akdata/ ← local akshare executor: China markets + global macro; guide akdata/akshare.md
├── exec/ ← trade-execution connectors; registry exec/index.yaml
├── script/ ← connector helpers: baw/ (fast one-shot scripts) + 42space/ (42.space automated trading); see each dir's README
├── rpc/ ← BYOK RPC (EVM + non-EVM; Ankr/Alchemy/BlockPI) using the user's OWN key — or a NO-KEY public endpoint for 8 chains; registry rpc/index.yaml
├── social/ ← BYOK social & search (Desearch, TwexAPI) using the user's OWN key; registry social/index.yaml
├── llm/ ← BYOK LLM APIs (DeepSeek/OpenAI/Claude/Qwen/Kimi/GLM/OpenRouter) using the user's OWN key; registry llm/index.yaml
├── defi/ ← DeFi connectors: LI.FI cross-chain bridge/swap quotes + Earn yield (key OPTIONAL — no-key tier); registry defi/index.yaml
├── custom/ ← BYOK for user-defined vault providers; first use records the API into local/custom-apis/ for quick reuse; registry custom/index.yaml
├── account/ ← account self-service (email login → key · usage · Key Vault management) via /api/self/*; registry account/index.yaml
├── report/ ← PDF report guide + stylesheet
├── data/ ← misc reference data
└── local/ ← local state / caches; the ONLY folder preserved across updatesYour own RPC / social / LLM keys via the Key Vault (BYOK)
通过 Key Vault 使用你自己的 RPC / 社交 / LLM 密钥(BYOK)
rpc//api/relayFlow: fetch the key once ( with ; if the user set a trusted-IP whitelist, this machine's public IP must be on it, and their vault retrieval switch must be ON) → keep it in memory only, never write it to disk → build the provider's endpoint URL and POST JSON-RPC. Start at (auth flow + JSON-RPC primer + file map + security). Per-provider endpoint template, full chain/network lists and enhanced methods: (ankr/alchemy/blockpi). The complete standard EVM JSON-RPC method catalog (params + request/response for eth_/net_/web3_/trace_/debug_*): . Non-EVM chains — Solana, TRON, TON, Sui, XRP, Aptos, NEAR — each have their own method guide in . The fetched key sits inside the endpoint URL, so treat the whole URL as a secret. No key for a chain? → has a built-in no-key public endpoint for 8 chains — BSC, ETH, Base, Arbitrum, X Layer, Robinhood, Solana, Tron — used automatically when the vault has no key (no credits; rate-limited, so prefer a vaulted key for heavy/archive reads).
GET https://api.openclawby.com/api/vault/<provider>CLAWBY_API_KEYrpc/index.yamlrpc/<provider>.mdrpc/evm-methods.mdrpc/non-evm/rpc/index.yamlpublic_fallbackSocial & search data uses the same vault pattern — holds BYOK connectors for social/search providers: Desearch ( — X/Twitter, TikTok, Facebook, Instagram, Web/SERP, AI search, People search; raw key) and TwexAPI ( — deep X/Twitter: advanced search, users, tweets/replies, followers & following, communities, lists, trending, sentiment; token). Fetch the user's key from , call the provider directly (billed to the user's own provider plan — never Clawby credits), and start at (each provider's carries its base URL, auth and file map).
social/social/desearch/Authorizationsocial/twexapi/Authorization: Bearer/api/vault/<provider>social/index.yaml_index.yamlLLM APIs use the same vault pattern — holds BYOK connectors for DeepSeek, OpenAI, Claude (Anthropic), Qwen, Kimi, GLM and OpenRouter. Fetch the user's key from , then call the model API directly (billed to the user's own LLM plan — never Clawby credits). Six are OpenAI-compatible (shared spec — streaming, tools, params — in ); Claude uses the Anthropic Messages API (). Per-provider base URL + current model ids + quirks: .
llm//api/vault/<provider>POST {base}/chat/completionsllm/index.yamlllm/claude.mdllm/<provider>.mdDeFi / cross-chain uses the same vault pattern, but the key is OPTIONAL — holds connectors for on-chain DeFi protocols. LI.FI () is a cross-chain bridge & DEX aggregator across 65+ EVM chains + Solana: best-route swap/bridge quotes that return a signable transaction, transfer-status tracking, chain/token/tool discovery, and a DeFi yield (Earn) API for vaults and a wallet's positions. It works with no key (public rate limits) or with the user's own LI.FI key from the vault (slug ). Quotes/data are read-only; to execute a returned transaction, sign it with the user's wallet via (risk: high — confirm). Start at → → .
defi/defi/lifi/lifiexec/bawdefi/index.yamldefi/lifi/_index.yamldefi/lifi/overview.mdCustom / user-defined providers — for any key the user stored under the vault's "custom" entry (their own slug + field names), follow : on first use, look up that provider's API doc and record how to call it into (local/ persists across updates), then reuse that note next time instead of re-researching.
custom/index.yamllocal/custom-apis/<slug>.mdrpc//api/relay流程:先获取一次密钥(,并带上 ;如果用户设置了可信 IP 白名单,则本机的公网 IP 必须位于其中,同时用户必须开启 vault 检索开关)→ 仅在内存中保存,绝不写入磁盘→ 构造服务商 endpoint URL 并发送 POST JSON-RPC 请求。从 开始(认证流程 + JSON-RPC 入门 + 文件映射 + 安全说明)。每个服务商的 endpoint 模板、完整链/网络列表及增强方法:(ankr/alchemy/blockpi)。完整的标准 EVM JSON-RPC 方法目录(参数与请求/响应示例,涵盖 ////):。非 EVM 链——Solana、TRON、TON、Sui、XRP、Aptos、NEAR——各自有方法指南,位于 。获取的密钥位于 endpoint URL 内部,因此应将整个 URL 视为机密。某条链没有密钥? → 内置了适用于 8 条链的免密钥公共 endpoint——BSC、ETH、Base、Arbitrum、X Layer、Robinhood、Solana、Tron——当 vault 中没有密钥时会自动使用(不消耗 credits;存在速率限制,因此大量读取或归档查询时优先使用 vault 中的密钥)。
GET https://api.openclawby.com/api/vault/<provider>CLAWBY_API_KEYrpc/index.yamlrpc/<provider>.mdeth_*net_*web3_*trace_*debug_*rpc/evm-methods.mdrpc/non-evm/rpc/index.yamlpublic_fallback社交与搜索数据采用相同的 vault 模式—— 存放使用用户自有密钥的 BYOK 社交/搜索服务商:Desearch(——X/Twitter、TikTok、Facebook、Instagram、Web/SERP、AI search、People search;使用原始 key)和 TwexAPI(——深度 X/Twitter:高级搜索、用户、推文/回复、粉丝与关注、社区、列表、热门内容、情绪;使用 token)。从 获取用户密钥,然后直接调用服务商(费用计入用户自己的服务商套餐——绝不消耗 Clawby credits),并从 开始(每个服务商的 包含 base URL、认证方式和文件映射)。
social/social/desearch/Authorizationsocial/twexapi/Authorization: Bearer/api/vault/<provider>social/index.yaml_index.yamlLLM API采用相同的 vault 模式—— 存放使用用户自有密钥的 BYOK 连接器:DeepSeek、OpenAI、Claude(Anthropic)、Qwen、Kimi、GLM 和 OpenRouter。从 获取用户密钥,然后直接调用模型 API(费用计入用户自己的 LLM 套餐——绝不消耗 Clawby credits)。其中六个兼容 OpenAI(共享 规范——streaming、tools、params;见 );Claude 使用 Anthropic Messages API(见 )。每个服务商的 base URL、当前 model id 和注意事项:。
llm//api/vault/<provider>POST {base}/chat/completionsllm/index.yamlllm/claude.mdllm/<provider>.mdDeFi / 跨链采用相同的 vault 模式,但密钥可选—— 存放链上 DeFi 协议连接器。LI.FI()是覆盖 65+ EVM 链和 Solana 的跨链桥与 DEX 聚合器:最佳路径 swap/bridge 报价会返回可签名交易,并提供交易状态跟踪、链/代币/工具发现,以及 DeFi 收益(Earn)API,可查询金库和钱包持仓。它支持免密钥使用(受公共速率限制),也可使用用户自己的 LI.FI 密钥(vault slug 为 )。报价和数据操作均为只读;若要执行返回的交易,应使用 通过用户钱包签名(风险:高——必须确认)。从 → → 开始。
defi/defi/lifi/lifiexec/bawdefi/index.yamldefi/lifi/_index.yamldefi/lifi/overview.md自定义/用户定义服务商——对于用户存储在 vault“自定义”条目下的任意密钥(用户自己的 slug 和字段名),遵循 :首次使用时,查找该服务商的 API 文档,并将调用方式记录到 ( 会在更新后保留),之后直接复用该说明,无需重复研究。
custom/index.yamllocal/custom-apis/<slug>.mdlocal/Account self-service (manage the user's Clawby account)
账户自助服务(管理用户自己的 Clawby 账户)
account/CLAWBY_API_KEYGET /api/accountPOST /api/account/email-codePOST /api/account/email-loginGET /api/accountGET /api/self/usage/api/self/*account/index.yamlaccount/vault.mdaccount/CLAWBY_API_KEYGET /api/accountPOST /api/account/email-codePOST /api/account/email-loginGET /api/accountGET /api/self/usage/api/self/*account/index.yamlaccount/vault.mdStep 0 · First use in a session
第 0 步 · 会话中的首次使用
- Check the user's plan & balance (free call): →
curl -s https://api.openclawby.com/api/account -H "X-API-Key: $CLAWBY_API_KEY"({plan, payg_balance, rate_per_min, accessible_providers, free_providers, rate_per_sec}= the per-API-key per-second request limit, default 5).rate_per_sec - Version check (≤ once per 24h), then ASK — follow : if
update-protocol.mdis older than 24h, compare the remote version; on a difference ask the user before updating. Never auto-update. Updates refresh every file exceptmanifest.json— including this SKILL.md (re-read it afterward).local/ - Executor CLIs install lazily — do NOT install anything up front. Only when the user first asks to trade on a venue, check/install that one connector (see Step A).
update-protocol.md
- 检查用户套餐与余额(免费调用):→
curl -s https://api.openclawby.com/api/account -H "X-API-Key: $CLAWBY_API_KEY"({plan, payg_balance, rate_per_min, accessible_providers, free_providers, rate_per_sec}= 每个 API key 每秒的请求限制,默认值为 5)。rate_per_sec - 版本检查(每 24 小时最多一次),然后询问——遵循 :如果
update-protocol.md已超过 24 小时未更新,则比较远程版本;发现差异时,更新前先询问用户。绝不自动更新。更新会刷新除manifest.json以外的所有文件——包括local/(更新后需重新读取)。SKILL.md - 按需延迟安装执行器 CLI——不要预先安装任何内容。只有当用户首次要求在某个场所交易时,才检查并安装对应的连接器(参见 中的步骤 A)。
update-protocol.md
Auth
认证
- Base URL: ; send the key in the
https://api.openclawby.comheader.X-API-Key - Read the key from the env var. If unset, the user has no key — tell them to sign in at https://www.openclawby.com/ (free) and
CLAWBY_API_KEY. Never invent a key.export CLAWBY_API_KEY=pk_xxx
- Base URL:;通过
https://api.openclawby.com请求头发送密钥。X-API-Key - 从 环境变量读取密钥。如果未设置,则用户没有密钥——告知用户登录 https://www.openclawby.com/(免费)并执行
CLAWBY_API_KEY。 绝不虚构密钥。export CLAWBY_API_KEY=pk_xxx
Symbol formats
标的格式
- Stocks: (GME →
US:TICKER) · Crypto:US:GME(BTC →BASE:USD) · Forex:BTC:USD(BASE:USD)EUR:USD
- 股票:(GME →
US:TICKER)· 加密货币:US:GME(BTC →BASE:USD)· 外汇:BTC:USD(BASE:USD)EUR:USD
Locate an interface
定位接口
Pick the category from the Routing table below (the full category list is ), then open that category's yaml — it lists every interface with its params and ⚠️ gotchas — and ALWAYS read it before calling. The complete machine-readable list of all interfaces is .
api/catalog/_index.yamlapi/clawby.yaml从下方路由表中选择类别(完整类别列表见 ),然后打开该类别的 yaml——其中列出了每个接口的参数和 ⚠️ 注意事项——调用前务必阅读。完整的机器可读接口列表位于 。
api/catalog/_index.yamlapi/clawby.yamlRouting table — which catalog file answers which need
路由表——哪个目录文件可满足对应需求
Interface details (params + ⚠️ gotchas) live in the catalog file — read it, then call via :
/api/relay| Need | Interface prefix | Catalog |
|---|---|---|
| US equities: quotes · candles · short interest/volume · borrow fee · FTDs · dark pool · options chain/max-pain · Reddit mentions · screener · dividends/splits | (various) | |
| Crypto derivatives (cross-exchange): funding · open interest · liquidations · long/short ratios · taker volume · ETF flows · market indicators (fear&greed, RSI…) · whale/exchange reserves | | |
| Hyperliquid perps: mids · contexts (funding/OI/mark) · order book · candles · a wallet's positions/fills | | |
| Prediction markets / betting odds (Polymarket) | | |
| Address labels (who owns an address) · AML risk score · address profile/trace/counterparties | | |
| DEX pairs & token market data, any chain (DexScreener) | | |
| On-chain DEX/memecoin intel: security audit · holders/traders PnL · trending · smart-money/KOL · signals · new launches · swap quotes (read-only) | | |
| US company financials & SEC filings | | |
| Mobula on-chain wallet / token / market data (80+ chains) — Pro-only | | |
Cross-interface mini-flows (details in the catalog):
- SEC: (ticker→10-digit CIK) first →
sec_cik_lookup(sec_company_concept+ us-gaapcik, e.g.concept,Revenues,NetIncomeLoss) per line item → assemble by period (EarningsPerShareDiluted/fy/fp). Filings/profile:form.sec_submissions - Polymarket: /
polymarket_events→ readpolymarket_markets→ per token idclobTokenIds/polymarket_price/midpoint(a 0–1 price = implied probability); history viaorderbook.polymarket_price_history - Routing rule — queries vs execution: all read-only DEX/memecoin lookups go through relay interfaces; to execute (swap, TP/SL orders, launch) use
dex_*. Same split everywhere: data via relay, execution viaexec/gmgn/.exec/
接口详情(参数 + ⚠️ 注意事项)位于目录文件中——阅读后再通过 调用:
/api/relay| 需求 | 接口前缀 | 目录 |
|---|---|---|
| 美国股票:行情 · K 线 · 空头持仓/成交量 · 借券费 · FTD · 暗池 · 期权链/max pain · Reddit 提及 · 筛选器 · 股息/拆股 | (各种) | |
| 加密货币衍生品(跨交易所):资金费率 · 未平仓量 · 清算 · 多空比 · 主动成交量 · ETF 资金流 · 市场指标(恐惧与贪婪、RSI 等)· 巨鲸/交易所储备 | | |
| Hyperliquid 永续合约:中间价 · contexts(资金费率/OI/标记价)· 订单簿 · K 线 · 钱包持仓/成交 | | |
| 预测市场/投注赔率(Polymarket) | | |
| 地址标签(地址归属)· AML 风险评分 · 地址画像/追踪/交易对手 | | |
| 任意链的 DEX 交易对与代币市场数据(DexScreener) | | |
| 链上 DEX/Memecoin 情报:安全审计 · 持有者/交易者 PnL · 热门项目 · 智能资金/KOL · 信号 · 新项目 · swap 报价(只读) | | |
| 美国公司财报与 SEC 文件 | | |
| Mobula 链上钱包/代币/市场数据(80+ 链)——仅限 Pro | | |
跨接口迷你流程(详情见目录):
- SEC:先调用 (ticker→10 位 CIK),然后对每个报表项目调用
sec_cik_lookup(sec_company_concept+ us-gaapcik,例如concept、Revenues、NetIncomeLoss),再按期间(EarningsPerShareDiluted/fy/fp)组装。文件/资料:form。sec_submissions - Polymarket:/
polymarket_events→ 读取polymarket_markets→ 对每个 token id 调用clobTokenIds/polymarket_price/midpoint(0–1 的价格 = 隐含概率);历史数据通过orderbook获取。polymarket_price_history - 路由规则——查询与执行分离:所有只读 DEX/Memecoin 查询都通过 relay 接口;如需执行(swap、止盈/止损单、项目创建),则使用
dex_*。其他场景也遵循相同规则:数据通过 relay 获取,执行通过exec/gmgn/完成。exec/
China markets & global macro (akdata/ — runs locally)
中国市场与全球宏观数据(akdata——本地运行)
akdata/akdata/akshare.mdbash
P=~/.clawby/akvenv/bin/python; cd akdata
$P ak.py doctor # first use in a session (see below)
$P ak.py find 龙虎榜 # locate an interface (Chinese or English)
$P ak.py doc stock_lhb_detail_em # params + formats + gotchas — ALWAYS read first
$P ak.py call stock_lhb_detail_em --start_date 20260701 --end_date 20260710 --rows 30Routing — which layer owns which asset:
| Ask | Use |
|---|---|
| US equities · options · dark pool · short interest | Layer 1 relay (faster, maintained) |
| crypto · DEX · on-chain · prediction markets · social | Layer 1 relay |
| A-shares · HK · CN futures · convertible bonds · ETFs | |
| dragon-tiger list · northbound flows · limit-up pool · shareholder counts | |
| global macro: CPI · non-farm · PMI · rate decisions | |
Prefer the relay wherever both can answer — akshare mirrors public Chinese
websites and breaks when they change layout. also needs a local
akshare install (lazy: ,
~20 s) and network reach to Chinese sources. reports both, and
probes every upstream host twice — through the proxy and direct — so you can
tell whether to add for a given host. Large results: default budget
is 30 rows / 20 000 chars, then use or .
akdata/python3 -m venv ~/.clawby/akvenv && ~/.clawby/akvenv/bin/pip install akshareak.py doctor--no-proxy--summary--out data.csvakdata/akdata/akshare.mdbash
P=~/.clawby/akvenv/bin/python; cd akdata
$P ak.py doctor # first use in a session (see below)
$P ak.py find 龙虎榜 # locate an interface (Chinese or English)
$P ak.py doc stock_lhb_detail_em # params + formats + gotchas — ALWAYS read first
$P ak.py call stock_lhb_detail_em --start_date 20260701 --end_date 20260710 --rows 30路由——每类资产由哪一层负责:
| 需求 | 使用方式 |
|---|---|
| 美国股票 · 期权 · 暗池 · 空头持仓 | 第 1 层 relay(更快,且有维护) |
| 加密货币 · DEX · 链上数据 · 预测市场 · 社交数据 | 第 1 层 relay |
| A 股 · 港股 · 中国期货 · 可转债 · ETF | |
| 龙虎榜 · 北向资金 · 涨停板池 · 股东户数 | |
| 全球宏观数据:CPI · 非农 · PMI · 利率决议 | |
当两层都能回答时,优先使用 relay——akshare 只是镜像中国公共网站,网站布局变化时容易失效。 还需要在本地安装 akshare(按需安装:,约 20 秒),并需要能够访问中国来源。 会检查以上条件,并分别通过代理和直连探测每个上游主机两次,从而判断是否需要为特定主机添加 。大型结果:默认预算是 30 行/20 000 字符,然后使用 或 。
akdata/python3 -m venv ~/.clawby/akvenv && ~/.clawby/akvenv/bin/pip install akshareak.py doctor--no-proxy--summary--out data.csvTrade execution (exec/)
交易执行(exec/)
Everything above is read-only data. To place trades, use the connectors under (registry: ; per-venue guide = each file). They run locally with the user's own keys — never routed through Clawby:
exec/exec/index.yamlentry| Venue | Guide | Tool |
|---|---|---|
| Binance (spot/futures/margin/options/earn) | | |
Bitget (spot/margin/futures UTA, | | |
OKX (spot/swap/futures/bots, | | |
| Polymarket (CLOB V2 orders, own wallet key) | | |
| GMGN (on-chain swap/TP-SL/launch, 9 chains) | | |
| Binance Agentic Wallet (on-chain Web3: swap/send/limit/DeFi/prediction/x402) | | |
Rule for any action (order / transfer / withdrawal): restate the order — venue · pair · side · size · price type — show the exact command, get the user to type , prefer testnet when unsure. Read-only queries need no confirmation.
risk: highCONFIRM以上内容均为只读数据。如需下单交易,请使用 下的连接器(注册表:;每个场所的指南 = 对应 文件)。它们在本地运行,使用用户自己的密钥——绝不通过 Clawby 路由:
exec/exec/index.yamlentry| 场所 | 指南 | 工具 |
|---|---|---|
| Binance(现货/期货/杠杆/期权/earn) | | |
Bitget(现货/杠杆/期货 UTA, | | |
OKX(现货/swap/期货/机器人, | | |
| Polymarket(CLOB V2 订单,使用自己的钱包密钥) | | |
| GMGN(链上 swap/止盈止损/项目创建,支持 9 条链) | | |
| Binance Agentic Wallet(链上 Web3:swap/send/limit/DeFi/prediction/x402) | | |
任何 操作的规则(订单/转账/提现):重述订单——场所 · 交易对 · 方向 · 数量 · 价格类型——展示准确的命令,要求用户输入 ,不确定时优先使用测试网。只读查询无需确认。
risk: highCONFIRM42.space automated trading (script/42space/)
42.space 自动化交易(script/42space/)
When the user says "42space", read — the full host-agent playbook — and follow it. It automates prediction-market trading on 42.space (BNB Smart Chain): wallet-only login (import mnemonic · create a wallet · BN AI wallet/baw) → balance check → silent Clawby identity (API key + free Identity SBT) → one of three trading modes. Runs locally (needs Node ≥18 + ethers — ; run the commands from that folder); wallet secrets stay in (chmod 600), never routed through Clawby.
script/42space/README.mdcd script/42space && npm installlocal/42space.json| Step | Commands |
|---|---|
| Status / log in | |
| Balance | |
| Identity (silent) | |
| Fast mode — volume farming, no LLM | |
| AI one-shot — you do the reasoning | |
| Take-profit — auto-exit at +X% | |
| Claim settled wins | |
| Manual on-chain | |
Everything is DRY unless : run the dry command first, show the user the quoted numbers, and get their go-ahead before any . AI picks put real money at risk, and a market's price is not a probability.
--live--live当用户提到 “42space” 时,阅读 ——这是完整的 host-agent 操作手册——并遵循其中说明。它在 BNB Smart Chain 上自动执行预测市场交易:仅钱包登录(导入助记词 · 创建钱包 · BN AI wallet/baw)→ 余额检查 → 静默 Clawby 身份验证(API key + 免费 Identity SBT)→ 从三种交易模式中选择一种。它在本地运行(需要 Node ≥18 + ethers——执行 ;从该目录运行命令);钱包机密始终保存在 (chmod 600),绝不通过 Clawby 路由。
script/42space/README.mdcd script/42space && npm installlocal/42space.json| 步骤 | 命令 |
|---|---|
| 状态/日志登录 | |
| 余额 | |
| 身份验证(静默) | |
| 快速模式——刷成交量,不使用 LLM | |
| AI 单次模式——由你进行推理 | |
| 止盈——达到 X% 后自动退出 | |
| 领取已结算赢款 | |
| 手动链上操作 | |
除非添加 ,否则所有操作均为 DRY:先运行 dry 命令,向用户展示报价数字,获得用户同意后才能执行任何 操作。AI 选出的交易会让真实资金面临风险,而且市场价格并不等于概率。
--live--liveKey gotchas (highest-frequency; the full list lives in each catalog file)
关键注意事项(最高频问题;完整列表位于各目录文件中)
- Dark pool needs (a real trading day
date; empty result → step back a day); the levels interface also needsYYYY-MM-DD.decimals - Options chain uses +
underlying(notexpiration).symbol - Reddit top mentions and OHLC bars take as Unix seconds —
start(Linux) /date -u -d '7 days ago' +%s(mac).date -u -v-7d +%s - Quotes are delayed 30 minutes; the screener is real-time.
- Derivatives: aggregated/coin endpoints take ; single-exchange ones take a pair
symbol=BTCstyle (BTC USDT) — check the catalog entry.BTCUSDT - address_labels / address_risk use special coin ids (,
ETH,BNB,POL-Polygon,ETH-Base,TRX,SOL…) — seeSUI.api/catalog/address-intel/
- 暗池需要 (必须是真实的交易日,格式为
date;结果为空时,应向前回退一天);levels 接口还需要YYYY-MM-DD。decimals - 期权链使用 +
underlying(不是expiration)。symbol - Reddit 热门提及和 OHLC K 线的 参数采用 Unix 秒——
start(Linux)/date -u -d '7 days ago' +%s(macOS)。date -u -v-7d +%s - 行情延迟 30 分钟;筛选器为实时数据。
- 衍生品:聚合/coin endpoint 使用 ;单交易所接口使用
symbol=BTC形式的交易对(BTC USDT)——请检查目录条目。BTCUSDT - /
address_labels使用特殊 coin id(address_risk、ETH、BNB、POL-Polygon、ETH-Base、TRX、SOL等)——参见SUI。api/catalog/address-intel/
Plan & access
套餐与访问权限
Most data is free. Each account has a plan ( / / , shown by the Step-0 call); there lists the sources this key can call. A few sources are Pro-only — e.g. Mobula on-chain wallet / token / market data — and return for non-Pro accounts.
freestandardpro/api/accountaccessible_providers403 pro_onlyPro is granted by the Clawby team (app membership) — it is not self-serve and cannot be purchased, so never suggest the user buy anything. If a Pro-only source is blocked, note it in one short line (which source, what it would have added) and continue with the data you can access.
大多数数据免费。每个账户都有一个套餐( / / ,可在第 0 步的 调用中查看);其中的 会列出该 key 可以调用的来源。少数来源仅限 Pro——例如 Mobula 链上钱包/代币/市场数据——非 Pro 账户会收到 。
freestandardpro/api/accountaccessible_providers403 pro_onlyPro 由 Clawby 团队授予(应用会员权益),并非自助购买,也无法直接购买,因此绝不能建议用户购买。若某个 Pro-only 来源被屏蔽,只需用简短一句话说明(说明是哪个来源以及它原本能补充什么数据),然后继续使用当前可访问的数据。
Professional analysis reports (PDF)
专业分析报告(PDF)
When the user wants a formal write-up (research report / due-diligence / memo): offer it first, then follow end-to-end — gather ALL data (Layers 1–3), 10 required sections, required charts (price w/ levels, scenario targets, unlock schedule for crypto, metric trends, risk matrix), styled A4 HTML () → PDF via headless Chromium (fallbacks: weasyprint / wkhtmltopdf). Ask where to save; include a not investment advice disclaimer.
report/report-guide.mdreport/report.css当用户需要正式说明(研究报告/尽职调查/备忘录)时:先主动提供该选项,然后严格遵循 完整执行——收集全部数据(第 1–3 层)、完成 10 个必需章节和必需图表(价格与关键水平、情景目标、代币解锁计划、指标趋势、风险矩阵)、生成带样式的 A4 HTML(),再通过无头 Chromium 转换为 PDF(后备方案:weasyprint / wkhtmltopdf)。询问保存位置;加入不构成投资建议的免责声明。
report/report-guide.mdreport/report.cssErrors
错误
- 401 invalid/missing key → tell the user to set .
CLAWBY_API_KEY - 403 → a Pro-only source (e.g. Mobula) and this account isn't Pro: say so in one short line and carry on with accessible data (Pro can't be bought — don't point to any purchase page).
pro_only - 402 (rare, legacy) → treat that source as unavailable and continue with the others.
- 429 per-API-key rate limit (~5 requests/sec — in
rate_per_sec) → slow down and retry./api/account - 502 "Upstream HTTP 4xx" = bad params (missing required / wrong symbol format) → fix against the interface's catalog entry.
- Empty = nothing for that date/symbol (dark pool: try an earlier trading day).
data
- 401 密钥无效或缺失 → 告知用户设置 。
CLAWBY_API_KEY - 403 → 来源仅限 Pro(如 Mobula),而当前账户不是 Pro:用简短一句话说明,然后继续处理可访问的数据(Pro 无法购买——不要指向任何购买页面)。
pro_only - 402(少见,旧版遗留)→ 将该来源视为不可用,并继续使用其他来源。
- 429 每个 API key 的速率限制(约 5 请求/秒——见 中的
/api/account)→ 放慢速度后重试。rate_per_sec - 502 “Upstream HTTP 4xx” = 参数错误(缺少必填参数或标的格式错误)→ 根据接口目录条目进行修正。
- 为空 = 该日期/标的没有数据(暗池:尝试更早的交易日)。
data
Output
输出
- Analyze only real numbers from ; never fabricate. For multi-dimensional questions, fetch several interfaces and combine.
data - If you need to cite a source, say "Clawby data". Write naturally and concisely — no raw interface names/links in user-facing prose.
- End with a short note: "Not investment advice."
- 只分析 中的真实数字;绝不编造。对于多维度问题,应获取多个接口并合并分析。
data - 如果需要引用来源,请写“Clawby 数据”。表达应自然、简洁;面向用户的说明中不要出现原始接口名称或链接。
- 结尾添加简短说明:“不构成投资建议。”