Okx Trader
Skill by esojourn
Why use this skill?
Automate your OKX trading with a professional-grade grid agent. Features dual-grid strategies, automated re-scaling, and built-in risk protection for safe, efficient crypto trading.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/esojourn/okx-traderWhat This Skill Does
The OKX Trader skill is a sophisticated, professional-grade automated trading agent designed specifically for the OKX exchange. It implements a dual-grid trading strategy that distinguishes between macro-level trend capturing and micro-level scalp trading. The skill is built with robust safety protocols, including cost-basis guarding to prevent loss-making sells and inventory control to mitigate the risks of over-leveraging during volatile market conditions. Beyond execution, it provides comprehensive performance reporting and automated daily account snapshots for audit purposes. The agent autonomously handles market drifting through its Rescale logic, ensuring that your grid range remains relevant to current price action without requiring manual intervention.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/esojourn/okx-trader
Ensure that you have populated the required configuration files in /root/.openclaw/workspace/okx_data/. You must create config.json for your API credentials and grid_settings.json to define your specific trading parameters. Ensure your OKX API key permissions are limited to 'Trade' access and that 'Withdrawal' permissions are strictly disabled.
Use Cases
- Automated Trend Following: Running a 'Macro Grid' to capture significant price movements in major pairs like BTC-USDT or ETH-USDT over extended timeframes.
- Market Volatility Harvesting: Using 'Micro Grids' to profit from high-frequency price fluctuations within a tighter range.
- Performance Audit & Reporting: Quickly generating PnL summaries to track the efficiency of various grid configurations across different instruments.
- Risk Mitigation: Utilizing automatic inventory and cost-basis controls to prevent excessive exposure to asset price drops.
Example Prompts
- "Can you generate an OKX trading report to show the current status and total PnL of all my active grid configurations?"
- "Please perform an account snapshot now and ensure all current trading metrics are saved to the daily log."
- "Execute the okx_grid_maintain tool for the 'main' BTC-USDT strategy and verify that the grid is correctly centered against the current market price."
Tips & Limitations
Always prioritize safety by setting OKX_IS_SIMULATION=true until you have thoroughly validated your strategies. Because this skill interacts with live financial markets, ensure your network connection is stable. The 'Rescale' functionality, while powerful, will cancel all existing orders for the configured bot; be mindful of this when adjusting high-frequency settings. Periodically review your grid_settings.json to ensure your risk thresholds match your current portfolio objectives and market risk appetite.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-esojourn-okx-trader": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, external-api