Install
openclaw skills install easyclawRun 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...
openclaw skills install easyclawRun only user workflows:
Do not run admin/bootstrap/keeper workflows in this skill.
KEYPAIR_PATH or ANCHOR_WALLET (fallback ~/.config/solana/id.json).SOLANA_RPC_URL or ANCHOR_PROVIDER_URL (fallback http://127.0.0.1:8899).EASYCLAW_API_BASE_URL / EASYCLAW_WS_URL (or alias vars in backend-common.js).EASYCLAW_API_TOKEN (required for protected backend controls).solana config get and can spawn child Node.js processes for autotrade execution.easyclaw-skill/.enveasyclaw-skill/state/strategies/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
scripts/balance.js: user balance and order summaryscripts/order-execute.js: user order submission helperscripts/backend.js: backend REST API query helperscripts/ws-watch.js: backend websocket channel subscriberscripts/realtime-agent.js: signal-driven auto-order loopscripts/onboard.js: interactive onboarding flow (wallet selection, registration wait, strategy capture, autotrade kickoff)scripts/backend-common.js: backend endpoint/auth helpersscripts/common.js: PDA, signer, tx, and decode utilitiespackage.json: local runtime dependencies.env.example: required environment keys.env.example to .env.dex-agent.sh install.dex-agent.sh balance first to validate access.dex-agent.sh backend doctor and dex-agent.sh watch --channel system.status.dex-agent.sh onboard --market-id <id> --margin <u64> for guided onboarding.For env definitions and option details, read references/dex-env.md.
KEYPAIR_PATH and private keys local.ORDER_ENGINE_PROGRAM_ID and MARKET_REGISTRY_PROGRAM_ID before placing orders.