微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

easyclaw

easyclaw · v0.0.1
安全 unknown 级 作者 ice-coldbell 公开目录收录
1.1k 下载 0 安装 4.6k 收藏 1 浏览

简介

easyclaw

原始描述

Run user-facing EasyClaw DEX actions from a self-contained skill folder. Use when an agent needs to submit user orders or check wallet/margin/order balances...

通过你的 Agent 添加

安装目录:easyclaw-skill/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/easyclaw/
Codex CLI~/.codex/skills/easyclaw/
DeepSeek Harness~/.agents/skills/easyclaw/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: easyclaw-skill description: Run user-facing EasyClaw DEX actions from a self-contained skill folder. Use when an agent needs to submit user orders or check wallet/margin/order balances on EasyClaw without depending on external project directories.

EasyClaw User DEX Skill

Run only user workflows:

  • balance and open-order checks
  • order submission (place order)
  • backend position/order/fill/history/orderbook/chart queries
  • authenticated agent/strategy controls and safety kill-switch
  • realtime websocket monitoring and signal-driven auto order execution

Do not run admin/bootstrap/keeper workflows in this skill.

Command Interface

Use {baseDir}/scripts/dex-agent.sh:

# toolchain + environment diagnostics
{baseDir}/scripts/dex-agent.sh doctor

# install local skill dependencies
{baseDir}/scripts/dex-agent.sh install

# wallet, USDC, margin, and open orders
{baseDir}/scripts/dex-agent.sh balance
{baseDir}/scripts/dex-agent.sh balance --json

# submit order tx
{baseDir}/scripts/dex-agent.sh order --market-id 1 --side buy --type market --margin 1000000
{baseDir}/scripts/dex-agent.sh order --market-id 2 --side sell --type limit --margin 2000000 --price 3000000000

# backend REST queries
{baseDir}/scripts/dex-agent.sh backend positions --mine --limit 20
{baseDir}/scripts/dex-agent.sh backend position-history --mine --limit 20
{baseDir}/scripts/dex-agent.sh backend chart-candles --market BTCUSDT --timeframe 1m --limit 120
{baseDir}/scripts/dex-agent.sh backend orderbook-heatmap --exchange binance --symbol BTCUSDT --limit 30
{baseDir}/scripts/dex-agent.sh backend portfolio --period 7d
{baseDir}/scripts/dex-agent.sh backend strategy-templates
{baseDir}/scripts/dex-agent.sh backend agent-risk --agent-id agent-001

# realtime WS monitor
{baseDir}/scripts/dex-agent.sh watch --channels "agent.signals,portfolio.updates,market.price.BTCUSDT"

# realtime signal -> auto order execution
{baseDir}/scripts/dex-agent.sh autotrade --market-id 1 --margin 1000000 --min-confidence 0.75

# guided onboarding + strategy capture + autotrade start
{baseDir}/scripts/dex-agent.sh onboard --market-id 1 --margin 1000000

Files

  • scripts/balance.js: user balance and order summary
  • scripts/order-execute.js: user order submission helper
  • scripts/backend.js: backend REST API query helper
  • scripts/ws-watch.js: backend websocket channel subscriber
  • scripts/realtime-agent.js: signal-driven auto-order loop
  • scripts/onboard.js: interactive onboarding flow (wallet selection, registration wait, strategy capture, autotrade kickoff)
  • scripts/backend-common.js: backend endpoint/auth helpers
  • scripts/common.js: PDA, signer, tx, and decode utilities
  • package.json: local runtime dependencies
  • .env.example: required environment keys

Setup

  1. Copy .env.example to .env.
  2. Fill signer and RPC values.
  3. Run dex-agent.sh install.
  4. Run dex-agent.sh balance first to validate access.
  5. Run dex-agent.sh backend doctor and dex-agent.sh watch --channel system.status.
  6. Run dex-agent.sh onboard --market-id <id> --margin <u64> for guided onboarding.

For env definitions and option details, read references/dex-env.md.

Safety

  • Keep KEYPAIR_PATH and private keys local.
  • Use devnet/localnet unless explicitly instructed otherwise.
  • Confirm ORDER_ENGINE_PROGRAM_ID and MARKET_REGISTRY_PROGRAM_ID before placing orders.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill