← 返回
开发者工具 Key 中文

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...
从独立技能文件夹中运行面向用户的 EasyClaw DEX 操作。当代理需要提交用户订单或查询钱包/保证金/订单余额时使用。
ice-coldbell ice-coldbell 来源
开发者工具 clawhub v0.0.2 1 版本 99889.1 Key: 需要
★ 0
Stars
📥 901
下载
💾 7
安装
1
版本
#latest

概述

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.

Runtime & Credential Requirements

  • Wallet signer source: KEYPAIR_PATH or ANCHOR_WALLET (fallback ~/.config/solana/id.json).
  • Solana RPC source: SOLANA_RPC_URL or ANCHOR_PROVIDER_URL (fallback http://127.0.0.1:8899).
  • Backend endpoint source: EASYCLAW_API_BASE_URL / EASYCLAW_WS_URL (or alias vars in backend-common.js).
  • Optional API credential: EASYCLAW_API_TOKEN (required for protected backend controls).
  • Local process usage: onboarding probes solana config get and can spawn child Node.js processes for autotrade execution.
  • Local file writes:
  • onboarding persists selected wallet envs into easyclaw-skill/.env
  • strategy onboarding writes files into easyclaw-skill/state/strategies/

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 --margin 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.

版本历史

共 1 个版本

  • v0.0.2 当前
    2026-03-29 19:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 273 📥 57,294
dev-programming

Clawland

ice-coldbell
在Solana开发网上通过Clawland玩链上奇偶游戏。用SOL或USDC铸造GEM,投注奇数或偶数,赢取2倍奖励。脚本自动处理钱包设置、铸造和自动游戏。
★ 2 📥 2,175
professional

All-Market Financial Data Hub

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