当前位置: 首页 > Skill >

Axelrod

Axelrod

Axelrod

AI驱动的Base链交易与链上查询代理,使用自然语言。适用于在Base链上进行买卖/交换代币、设置DCA、限价单、RSI等自动化策略、查询余额与代币价格、获取代币信息/分析、检查订单状态、管理止盈止损,以及咨询加密/DeFi相关问题。请始终运行 scripts/axelrod_chat.py 以获取实时结果。

0.1.0 2026.11.23 554
获取Skill文件查看使用说明
作 者:沈景 许可证: 更新时间:2026.11.23
本文目录展开

Axelrod

Execute Base-chain trading and on-chain queries using natural language through the AIxVC AI Automation.

Quick Start

First-Time Setup

  1. Configure credentials in OpenClaw config under skills.entries.axelrod.env:
{
  "skills": {
    "entries": {
      "axelrod": {
        "enabled": true,
        "env": {
          "AIXVC_ACCESS_KEY": "your_access_key",
          "AIXVC_SECRET_KEY": "your_secret_key"
        }
      }
    }
  }
}
  1. Install dependencies:
pip install -r skills/axelrod/requirements.txt
  1. Verify setup:
python skills/axelrod/scripts/axelrod_chat.py --message "check my balance"

Core Usage

Simple Query

For straightforward requests that complete quickly:

python skills/axelrod/scripts/axelrod_chat.py --message "check my ETH balance"
python skills/axelrod/scripts/axelrod_chat.py --message "what is ETH price now"

JSON Debug Mode

For inspecting the full API response:

python skills/axelrod/scripts/axelrod_chat.py --message "check my balance" --json

Mandatory Workflow

  1. Check AK/SK — If AIXVC_ACCESS_KEY or AIXVC_SECRET_KEY is missing, ask the user to configure them. Do not guess or fabricate credentials.
  2. Run the script — Whenever the request needs real-time on-chain data or execution, always run the CLI. Do not answer from model memory alone.
  3. Return stdout — Capture the script's stdout and return it to the user. Light formatting is fine, but do not omit key results (amounts, tx hashes, confirm keys, error messages).
  4. Handle confirmation — If the response includes confirmKey, guide the user to confirm or cancel (see Confirmation Flow below).

Capabilities Overview

Trading Operations

  • Spot Buy/Sell/Swap: Exchange tokens on Base chain
  • DCA: Dollar-cost averaging automation (e.g. "DCA 20u into ETH every day")
  • Limit/Trigger Orders: Execute at target prices or PnL rates
  • RSI Strategy: Conditional trading based on RSI indicators (e.g. "if 1h RSI < 30, buy 100u BTC")
  • Take-Profit / Stop-Loss: Automated risk management via QUERY_ALGO

Reference: references/api.md

Query Operations

  • Balance Query: Single token or all-asset portfolio
  • Token Info & Analysis: Contract details, decimals, analytics
  • Price Query: Real-time prices with 24h change
  • Order Query: Active order list and details
  • TP/SL Order Query: Take-profit/stop-loss order status

Blockchain Assistant

  • Crypto/DeFi domain Q&A and execution guidance
  • Trading plan suggestions on Base chain

Confirmation Flow

Orders usually require risk-control confirmation; small orders (approximately ≤ $10) may skip confirmation. confirmKey is valid for about 10 minutes.

When the response includes confirmKey, ask the user to send one of:

yes, please execute <confirmKey>
no, please cancel <confirmKey>

If the key has expired, the user must submit the original request again.

Current Limitations

Limitation Details
Chain Base only
Multiple trades One trade per message; ask user to split if needed
Not supported Leverage/futures/options, lending, cross-chain, NFT, fiat on/off-ramp

Common Patterns

Check Before Trading

# Check balance
python skills/axelrod/scripts/axelrod_chat.py --message "check my ETH balance"

# Check price
python skills/axelrod/scripts/axelrod_chat.py --message "what is ETH price now"

# Then trade
python skills/axelrod/scripts/axelrod_chat.py --message "buy 50u of ETH"

Automated Strategies

# DCA strategy
python skills/axelrod/scripts/axelrod_chat.py --message "DCA 20u into ETH every day"

# RSI conditional strategy
python skills/axelrod/scripts/axelrod_chat.py --message "if 1h RSI < 30, buy 100u BTC"

# Limit order
python skills/axelrod/scripts/axelrod_chat.py --message "buy ETH when price drops to 2500"

Portfolio Review

# Full portfolio
python skills/axelrod/scripts/axelrod_chat.py --message "check my balance"

# Token analysis
python skills/axelrod/scripts/axelrod_chat.py --message "analyze AXR token for me"

# Order status
python skills/axelrod/scripts/axelrod_chat.py --message "show my recent orders"

Error Handling

Exit Codes

Code Meaning Resolution
0 Success —
2 Missing AK/SK Ask user to configure AIXVC_ACCESS_KEY and AIXVC_SECRET_KEY
3 HTTP failure or invalid/non-JSON response Check network, verify endpoint is reachable
4 API business error (code not in success set) Read the error message, guide user to fix

Common Issues

Issue Resolution
"Please login first" AK/SK is incorrect — reconfigure credentials
Authentication error Verify AK/SK are correct and not expired
Insufficient balance Reduce trade amount or add funds
Token not found Check token symbol or contract address
confirmKey expired Re-submit the original trade request
Multiple trades in one message Split into separate requests

Prompt Examples by Category

Trading

  • "buy 50u of AXR"
  • "sell 50% of my ETH"
  • "swap 10 SOL to ETH"

Automated Strategies

  • "DCA 20u into ETH every day"
  • "if 1h RSI < 30, buy 100u BTC"
  • "buy ETH when price drops to 2500"

Portfolio & Queries

  • "check my balance"
  • "show AXR token info"
  • "what is ETH price now"
  • "show my recent orders"
  • "show my TP/SL orders"

Blockchain Assistant

  • "analyze AXR token for me"
  • "help me make a Base trading plan"

Best Practices

Security

  1. Never share your AK/SK credentials
  2. Start with small test amounts
  3. Verify token addresses before large trades
  4. Review confirmation details carefully before executing

Trading

  1. Check balance before trades
  2. Specify amounts clearly (50u, 50%, 0.1 ETH)
  3. Start small, scale up after validation
  4. Use limit orders for better entry prices
  5. Set TP/SL for risk management

API Reference

For the full API contract, SigV4 signing protocol, request/response format, and response field details, see:

Reference: references/api.md

Implementation Notes

  • The script uses AK/SK with SigV4-style signing to call the AIxVC.
  • Current endpoint: https://api.aixvc.io/gw/openapi/v2/public/twa/agent/chat (chain-id=base).
  • If documentation conflicts with code behavior, follow the script implementation.

File Structure

  • SKILL.md — Agent instructions (this file). The agent reads this to understand how to use the skill.
  • README.md — Human-facing setup and usage guide.
  • scripts/axelrod_chat.py — CLI client. Always invoke with python skills/axelrod/scripts/axelrod_chat.py --message "<instruction>".
  • references/api.md — Full API contract and signing reference.
  • requirements.txt — Python dependencies (requests).

Troubleshooting

Script Not Working

# Ensure Python 3 is available
python --version

# Install dependencies
pip install -r skills/axelrod/requirements.txt

# Test connectivity
curl -I https://api.aixvc.io

API Errors

See exit codes and common issues tables above. If an error persists:

  1. Check the error message from stderr
  2. Use --json mode to inspect the full API response
  3. Verify AK/SK configuration
  4. Test with a simple query first ("check my balance")

💡 Pro Tip: The most common issue is missing or incorrect AK/SK. Always verify credentials first when encountering errors.

⚠️ Security: Keep your AK/SK private. Never commit credentials to version control. Only trade amounts you can afford to lose.

🚀 Quick Win: Start by checking your balance to verify setup, then try a small trade like "buy 1u of ETH" to get familiar with the flow.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Axelrod
    • Quick Start
      • First-Time Setup
    • Core Usage
      • Simple Query
      • JSON Debug Mode
    • Mandatory Workflow
    • Capabilities Overview
      • Trading Operations
      • Query Operations
      • Blockchain Assistant
    • Confirmation Flow
    • Current Limitations
    • Common Patterns
      • Check Before Trading
      • Automated Strategies
      • Portfolio Review
    • Error Handling
      • Exit Codes
      • Common Issues
    • Prompt Examples by Category
      • Trading
      • Automated Strategies
      • Portfolio & Queries
      • Blockchain Assistant
    • Best Practices
      • Security
      • Trading
    • API Reference
    • Implementation Notes
    • File Structure
    • Troubleshooting
      • Script Not Working
      • API Errors
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期