← 返回 Skills 市场
ivangdavila

Arbitrage

作者 Iván · GitHub ↗ · v1.0.0 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
262
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install arbitrage
功能描述
Find, validate, and compare arbitrage opportunities across markets with fee-aware math, execution sequencing, and failure-mode checks.
使用说明 (SKILL.md)

When to Use

User is evaluating an apparent price gap, hedge, surebet, basis trade, multi-leg basket, or cross-venue spread. Agent handles fee-aware arbitrage math, execution planning, settlement checks, and fast rejection of fake edge.

Architecture

Memory lives in ~/arbitrage/. If ~/arbitrage/ does not exist, run setup.md. See memory-template.md for structure.

~/arbitrage/
├── memory.md         # Preferences, constraints, and activation rules
├── opportunities.md  # Active ideas, status, and next checks
├── venue-notes.md    # Withdrawal, fill, and settlement notes by venue
└── archive/          # Old opportunities and retired notes

Quick Reference

Topic File
Setup guide setup.md
Memory template memory-template.md
Locked Spread Protocol workflow.md
Fee-aware formulas calculator.md
Venue and settlement checks venue-checks.md
Scenario playbooks playbooks.md
Safe language and disclaimers legal.md

Requirements

  • No credentials required
  • No extra binaries required
  • Live data only when the user provides it or explicitly asks you to fetch it

Locked Spread Protocol

Use the full protocol in workflow.md. At minimum, every opportunity passes these gates:

  1. Confirm the legs really describe the same economic outcome
  2. Normalize prices, fees, financing, transfer, and timing costs with calculator.md
  3. Decide whether the position is fully locked, soft-locked, or only expected value
  4. Check venue rules, fill depth, and settlement mechanics with venue-checks.md
  5. Classify the trade and explain the remaining failure modes before discussing size

Core Rules

1. Define the Exact Arbitrage

  • Write each leg with venue, instrument, side, price, size limit, timestamp, and settlement rule
  • If the legs do not resolve to the same outcome, currency, or unit of risk, it is not arbitrage yet

2. Normalize Every Dollar of Friction

  • Always include fees, spread, gas, borrow, financing, FX, transfer, and any user-stated tax or settlement drag
  • Use calculator.md to convert headline edge into net edge before calling anything profitable

3. Sequence for Fill Risk, Not for Hope

  • Identify the constrained leg first: shallow book, max bet, slow venue, borrow dependence, or promo cap
  • Prefer structures that can be locked immediately; otherwise label them soft lock or directional exposure

4. Treat Settlement as First-Class Risk

  • Compare rules, expiry, void conditions, collateral type, withdrawal limits, transfer time, and counterparty exposure
  • Use venue-checks.md and playbooks.md whenever the opportunity crosses venues or products

5. Reject Fake Edge Fast

  • Stale quotes, hidden min or max size, promo-only pricing, mismatched markets, and low depth are default failure modes
  • If the residual risk is execution, model drift, or rule mismatch rather than a true lock, say so explicitly

6. Output a Decision Memo, Not Hype

  • Return the classification, net edge, max realistic size, required sequence, open checks, and kill conditions
  • Good output ends with a clear next action: proceed, verify one item, downgrade to watchlist, or reject

7. Analysis Never Becomes Advice

  • Never call a trade risk-free, guaranteed, or suitable for the user personally
  • Provide analysis and trade structure only; do not execute trades or give portfolio-specific recommendations

Opportunity Types

Type Typical Setup What Makes It Real
Cross-venue spot Buy cheaper on venue A, sell higher on venue B Enough depth, transferable inventory, fees covered
Surebet or matched book Opposite sides across books or exchanges Implied probability sum below 100 percent after fees
Prediction market basket Buy outcomes whose total cost is below guaranteed payout Resolution rules and outcome partition match exactly
Basis or carry Spot versus future, perp, or synthetic hedge Funding, carry, borrow, and expiry all modeled
Retail or pricing mismatch Same item or service priced differently by channel Shipping, returns, fraud, tax, and inventory verified

Arbitrage Traps

Trap Why It Fails Better Move
Matching names instead of resolution rules Similar labels can settle differently Compare exact payout and settlement language
Using top-of-book only Apparent edge disappears after first fill Calculate size against real depth
Ignoring transfer time Edge can vanish before hedge arrives Price latency as a cost, not a note
Forgetting limits and KYC One leg fills, the other is capped or blocked Check limits, region, and account status first
Treating rebates as guaranteed Rebates or promos can change net economics Separate hard edge from conditional incentives
Mixing currencies loosely FX and spread can erase edge Convert every leg into one base currency
Calling EV arbitrage Positive EV is not a locked spread Label it expected value, not arbitrage
Overstating size The shallowest leg defines realistic capacity Size to the weakest link

Scope

This skill ONLY:

  • Analyzes arbitrage structures and net economics
  • Stores user-stated constraints in ~/arbitrage/
  • Uses its own auxiliary files for formulas, venue checks, and playbooks
  • References timestamps and missing inputs when data may be stale

This skill NEVER:

  • Executes real trades, transfers, or withdrawals
  • Uses exchange keys, broker credentials, or wallet secrets
  • Calls an opportunity risk-free or guaranteed
  • Gives personalized financial, tax, or legal advice

Security & Privacy

Data that leaves your machine:

  • None by default
  • If the user explicitly asks for live public data, only the requested symbols, markets, or venue pages needed for the analysis

Data that stays local:

  • Preferences, venue notes, and working opportunity notes in ~/arbitrage/

This skill does NOT:

  • Store credentials
  • Read unrelated files
  • Make undeclared network requests

Related Skills

Install with clawhub install \x3Cslug> if user confirms:

  • trading - technical analysis, risk framing, and trade planning language
  • trader - disciplined execution mindset and position management basics
  • pricing - pricing logic when the opportunity is a commercial mismatch rather than a market trade
  • invest - long-horizon investing context when the user is mixing arbitrage with portfolio decisions

Feedback

  • If useful: clawhub star arbitrage
  • Stay updated: clawhub sync
安全使用建议
This skill appears coherent and analysis-only, but it will create and update files in ~/arbitrage/ to store preferences and opportunity notes. Before using it: (1) don't paste API keys, account passwords, or other secrets into the skill's memory files; (2) inspect the created files after first run to confirm no sensitive data is stored and to set appropriate filesystem permissions; (3) limit the skill to user-invoked activation (the registry default) so it won't act without explicit prompts; and (4) if you want the agent to fetch live market data, confirm how it will do so and which endpoints will be used — the skill itself does not include network-fetch code, so any automated fetching should be vetted separately.
功能分析
Type: OpenClaw Skill Name: arbitrage Version: 1.0.0 The 'arbitrage' skill bundle is a comprehensive analytical framework designed to help an AI agent evaluate market spreads and financial opportunities. It emphasizes risk management, fee-aware calculations, and settlement verification while explicitly prohibiting the use of credentials or the execution of actual trades. All data management is handled locally within the `~/arbitrage/` directory as outlined in `SKILL.md` and `memory-template.md`, and there is no evidence of data exfiltration, malicious execution, or prompt-injection attacks.
能力评估
Purpose & Capability
Name/description (fee-aware arbitrage analysis, sequencing, failure-mode checks) match the files and runtime instructions. The skill is analysis-only and does not claim execution rights; required artifacts (calculator, workflow, venue checks, playbooks) are appropriate for the stated purpose.
Instruction Scope
The SKILL.md and ancillary files instruct the agent to create and maintain a persistent directory at ~/arbitrage/ and store user-stated preferences/opportunities there. That is coherent for a memory-backed analysis skill, but the skill may end up storing any user-provided inputs (which could include sensitive details if the user supplies them). Instructions do not tell the agent to read arbitrary system files or to contact external endpoints automatically; live data is only to be used when the user supplies it or explicitly asks the agent to fetch it.
Install Mechanism
There is no install spec and no code is written to disk by the registry. This is an instruction-only skill (lowest install risk).
Credentials
The skill requests no environment variables, credentials, or system config paths beyond its own ~/arbitrage/ directory (declared in metadata). No unrelated secrets or services are required.
Persistence & Privilege
The skill uses persistent storage under ~/arbitrage/ for memory and opportunities. always:false and autonomous invocation are default. Persistent storage is reasonable for this skill, but any user-provided sensitive data saved there would be persistent and should be avoided or protected.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install arbitrage
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /arbitrage 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Adds the Locked Spread Protocol, fee-aware calculators, and venue validation playbooks for cleaner arbitrage analysis.
元数据
Slug arbitrage
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Arbitrage 是什么?

Find, validate, and compare arbitrage opportunities across markets with fee-aware math, execution sequencing, and failure-mode checks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 262 次。

如何安装 Arbitrage?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install arbitrage」即可一键安装,无需额外配置。

Arbitrage 是免费的吗?

是的,Arbitrage 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Arbitrage 支持哪些平台?

Arbitrage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Arbitrage?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。

💬 留言讨论