Grid Trading
v1.5.3Dynamic grid trading strategy for any token pair on EVM L2 chains via OKX DEX API. Features asymmetric grid steps (buy-dense/sell-wide in bullish, reverse in...
⭐ 0· 247·0 current·0 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description (grid trading on OKX) align with declared binaries (onchainos, python3), required env vars (OKX_API_KEY, OKX_SECRET_KEY, OKX_PASSPHRASE, WALLET_ADDR), and included Python strategy code. Nothing requested is unrelated to trading on OKX.
Instruction Scope
SKILL.md and eth_grid.py instruct the agent to fetch prices, compute MTF analysis, build grids, and execute swaps via the onchainos CLI; it also reads a local .env file (if present), writes grid_state.json and logs, and optionally posts to Discord. These actions are expected for an automated trading bot, but reading a local .env and using full trading API keys are sensitive operations the user should be aware of.
Install Mechanism
No install spec (instruction-only plus shipped Python script) — the skill does not download or install arbitrary remote artifacts. This is low-risk from an install mechanism perspective.
Credentials
Required env vars (OKX API key/secret/passphrase and WALLET_ADDR) are proportionate to a DEX trading bot. The presence of OKX_SECRET_KEY and OKX_PASSPHRASE is necessary for signing/executing trades. Optional DISCORD_BOT_TOKEN and ONCHAINOS_ACCOUNT_ID are reasonable. The user should ensure API key scopes are limited (trade-only, no withdrawal) and protect these secrets.
Persistence & Privilege
Skill is not 'always' included and does not request system-wide persistence. It runs as a cron-invoked script and writes local state/log files under its skill directory — expected behavior for a trading bot. Autonomous invocation is allowed (platform default) which is normal but increases blast radius for financial operations.
Assessment
This skill appears to be what it claims: an OKX grid-trading bot. Important cautions before installing and running: 1) Only provide an OKX API key scoped to allow trades (disable withdrawal/transfer permissions) and, if possible, restrict by IP; never reuse high-privilege keys. 2) Review the included references/eth_grid.py yourself or run in read-only/status mode first (python3 eth_grid.py status) and use the recommended test/deposit process. 3) The script will load a local .env if present and will pass your OKX keys to the onchainos CLI — avoid storing keys in world-readable locations and consider using a secure secret manager. 4) Start with small funds or a sandbox account and enable logging/auditing. 5) If you intend to allow autonomous runs (cron), be aware the bot can execute live trades automatically; limit permissions and monitor activity. If you want additional confidence, request a line-by-line code review of references/eth_grid.py or run it in a controlled non-production environment first.Like a lobster shell, security has layers — review code before you run it.
basevk97b922cg7adme2n3menaw9y0h837w97defivk97b922cg7adme2n3menaw9y0h837w97gridvk97b922cg7adme2n3menaw9y0h837w97latestvk971vwq18bx8bacr9gny3451c983mksgokxvk97b922cg7adme2n3menaw9y0h837w97tradingvk97b922cg7adme2n3menaw9y0h837w97
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
OSmacOS · Linux
Binsonchainos, python3
EnvOKX_API_KEY, OKX_SECRET_KEY, OKX_PASSPHRASE, WALLET_ADDR
Primary envOKX_API_KEY
