okx-risk-guard

Automates stop-loss and take-profit orders for crypto tokens using scheduled price monitoring and onchain swaps.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Nith567/xlayer-skills-arena --skill okx-risk-guard-nith567
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: okx-risk-guard
Source: https://github.com/Nith567/xlayer-skills-arena/tree/main/okx-risk-guard
Command: npx skills add https://github.com/Nith567/xlayer-skills-arena --skill okx-risk-guard-nith567

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Crypto holders risk major losses when prices crash while they are not watching the market, and manually executing stop-losses or take-profits requires constant attention. This Skill sets up automated price-triggered guards that monitor token prices and execute protective swaps onchain when thresholds are hit. ## Core Features & Use Cases - Stop-Loss and Take-Profit Automation: Configure fixed, partial, trailing, or flash-crash guards that auto-sell tokens to stablecoins via onchainos swap execution when price triggers fire. - Scheduled Price Monitoring: Uses CronCreate to check live OKX market prices every 30 minutes, with 30-day kline context for support, resistance, and volatility-based trigger suggestions. - Portfolio and LP Protection: Supports portfolio-wide crash guards and Uniswap LP out-of-range alerts, plus guard management commands to list, adjust, or cancel active guards. - Use Case: Tell the agent "set stop-loss on ETH at $1800 and take profit at $2500" and it validates the levels against current price, shows hit-probability estimates, and activates a recurring monitor that auto-executes the exit swap when triggered. ## Quick Start Ask the agent to set a stop-loss on ETH at $1800 on Base so it configures the guard and starts monitoring the price automatically.

Frequently Asked Questions about okx-risk-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set a stop-loss on ETH or other crypto tokens?▼

Tell the agent something like "set stop-loss on ETH at $1800" and it validates the trigger against the current price, suggests levels based on 30-day support if needed, and activates a CronCreate monitor that auto-sells to USDC when the price crosses your threshold.

How does a trailing stop-loss work for crypto?▼

A trailing stop tracks the highest price since the guard was set and places the stop at a fixed percentage below that peak. Each check cycle updates the peak and recalculates the stop, so the exit level rises with the price but never falls.

Which blockchains does automated stop-loss monitoring support?▼

The guard works on all chains supported by the onchainos CLI, with Base as the default chain. Chain support details and chainIndex values are defined in the shared chain-support reference file.

Can I protect my Uniswap LP position from going out of range?▼

Yes, the LP out-of-range guard checks whether the current price falls outside your position's min and max range and notifies you with a rebalance suggestion. It integrates with the LP position manager skill for follow-up actions.

What happens if my stop-loss triggers during low liquidity?▼

The swap still executes at market price but the guard applies a 2 percent slippage setting and warns you when price impact exceeds 3 percent or the token has low liquidity. Actual exit price may differ from the trigger price.

How do I cancel or adjust an active price guard?▼

Use natural commands like "cancel my ETH guard", "move stop to $1700", or "show my guards" to manage active monitors. Adjustments update the trigger configuration and cancellations remove the scheduled CronCreate job.