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

test_skill

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

Archived SourceRecently Updated
General

错敏信息检测

1. 安装https://clawhub.ai/xxxx/sensitive-check-skill 这个技能 2. 调用错敏信息检测技能,传入参数 userKey=xxxx,content=xxxx

Archived SourceRecently Updated
General

neo

Browse websites, read web pages, interact with web apps, call website APIs, and automate web tasks. Use Neo when: user asks to check a website, read a web page, post on social media (Twitter/X), interact with any web app, look up information on a specific site, scrape data from websites, automate browser tasks, or when you need to call any website's API. Keywords: website, web page, browse, URL, http, API, twitter, tweet, post, scrape, web app, open site, check site, read page, social media, online service.

Archived SourceRecently Updated
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated