lazy-okx-dca

Lazy OKX DCA - Automated Dollar Cost Averaging

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "lazy-okx-dca" with this command: npx skills add okx/onchainos-skills

Lazy OKX DCA - Automated Dollar Cost Averaging

Automated DCA strategy powered by OKX OnchainOS DEX API. Execute scheduled token purchases across 20+ chains with optimal routing through 500+ DEXs.

When to Use

Apply this skill when:

  • Setting up automated token purchases (DCA) via OKX

  • Finding optimal swap rates across OKX DEXs

  • Monitoring token prices and execution history

  • Managing portfolio accumulation strategies

Prerequisites

  1. Install OKX OnchainOS Skills

npx skills add okx/onchainos-skills

  1. Get OKX API Credentials

Visit OKX OnchainOS Developer Portal:

  • Connect your OKX Wallet

  • Navigate to API Key management

  • Create a new API Key

  • Save the following credentials:

  • OK-ACCESS-KEY (API Key)

  • OK-ACCESS-SECRET (Secret Key)

  • OK-ACCESS-PASSPHRASE (Passphrase)

  1. Configure Environment Variables

Add credentials to your OpenClaw config:

Via openclaw.json (recommended):

Edit ~/.openclaw/openclaw.json :

{ "skills": { "entries": { "lazy-okx-dca": { "env": { "OKX_API_KEY": "your-api-key", "OKX_SECRET_KEY": "your-secret-key", "OKX_PASSPHRASE": "your-passphrase", "WALLET_PRIVATE_KEY": "your-wallet-private-key" } } } } }

Via .env file:

Create .env in project directory:

OKX_API_KEY=your-api-key OKX_SECRET_KEY=your-secret-key OKX_PASSPHRASE=your-passphrase WALLET_PRIVATE_KEY=your-wallet-private-key

Via shell profile:

Add to ~/.zshrc or ~/.bashrc :

export OKX_API_KEY="your-api-key" export OKX_SECRET_KEY="your-secret-key" export OKX_PASSPHRASE="your-passphrase" export WALLET_PRIVATE_KEY="your-wallet-private-key"

Run source ~/.zshrc to apply changes.

  1. Verify Installation

Restart OpenClaw and test:

"What's the current price of ETH?"

OKX Capabilities

Feature Description

Multi-chain Ethereum, Polygon, Arbitrum, Optimism, Solana, Sui, TON, X-Layer, 20+ chains

DEX Aggregation Routes across 500+ DEXs for optimal pricing

Best Price Real-time comparison with smart order splitting

Low Slippage Intelligent routing minimizes price impact

Supported Chains

Chain Status Popular Tokens

Ethereum Supported ETH, USDC, USDT

Polygon Supported MATIC, USDC

Arbitrum Supported ETH, USDC

Optimism Supported ETH, USDC

Solana Supported SOL, USDC

Base Supported ETH, USDC

X-Layer Supported OKB, USDC

Sui Supported SUI

TON Supported TON

See OKX OnchainOS Docs for full list.

Usage Patterns

Single Purchase

"Buy 100 USDC worth of ETH with 0.5% slippage"

Setup DCA Schedule

"Set up weekly DCA: buy 50 USDC of BTC every Monday at 10am"

Query Best Rate

"Show me the best rate for swapping 1 ETH to USDC across all DEXs"

View History

"Show my recent DCA transactions"

Environment Variables

Required

Variable Description Source

OKX_API_KEY

OKX API key OKX OnchainOS

OKX_SECRET_KEY

OKX API secret Same as above

OKX_PASSPHRASE

OKX API passphrase Same as above

WALLET_PRIVATE_KEY

Wallet private key for signing Your wallet export

Optional

Variable Default Description

DCA_DEFAULT_AMOUNT

100

Default DCA amount (USDC)

DCA_DEFAULT_TOKEN

ETH

Default purchase token

DCA_DEFAULT_SLIPPAGE

0.005

Default slippage (0.5%)

DCA_DEFAULT_CHAIN

eth

Default blockchain

Workflow

  1. Receive DCA instruction ↓
  2. Query OKX DEX API for optimal quote ↓
  3. Display price estimate + slippage + fees ↓
  4. Wait for user confirmation ↓
  5. Construct transaction data ↓
  6. Sign and broadcast (requires private key) ↓
  7. Log transaction ↓
  8. Wait for on-chain confirmation

Security Notes

  • Private key storage: Keys stored locally only, never uploaded

  • Test first: Use small amounts for initial testing (e.g., 1 USDC)

  • Slippage settings: Increase during high volatility to avoid failed transactions

  • Gas fees: Be aware of on-chain gas costs for small transactions

  • Dedicated wallet: Use a separate wallet for DCA operations

DCA Psychology Tips

  • Cost averaging: Buy less at highs, more at lows, lowering average cost

  • Emotional stability: No need to watch markets, avoid FOMO and panic selling

  • Long-term focus: Time in market beats timing the market

  • Automation: Discipline matters more than timing

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

ll-feishu-audio

飞书语音交互技能。支持语音消息自动识别、AI 处理、语音回复全流程。需要配置 FEISHU_APP_ID 和 FEISHU_APP_SECRET 环境变量。使用 faster-whisper 进行语音识别,Edge TTS 进行语音合成,自动转换 OPUS 格式并通过飞书发送。适用于飞书平台的语音对话场景。

Archived SourceRecently Updated
General

test_skill

import json import tkinter as tk from tkinter import messagebox, simpledialog

Archived SourceRecently Updated
General

51mee-resume-profile

简历画像。触发场景:用户要求生成候选人画像;用户想了解候选人的多维度标签和能力评估。

Archived SourceRecently Updated
General

51mee-resume-parse

简历解析。触发场景:用户上传简历文件要求解析、提取结构化信息。

Archived SourceRecently Updated