Trade crypto on Weex exchange via Telegram bot. Enables any OpenClaw agent to check prices, view balances, run DCA strategies, and execute grid trading on We...
--- name: weex-trading description: Trade crypto on Weex exchange via Telegram bot. Enables any OpenClaw agent to check prices, view balances, run DCA strategies, and execute grid trading on Weex — a Binance-compatible CEX with no KYC for API traders. Use when an agent or user wants to trade crypto, automate DCA buying, set up grid strategies, check coin prices, or manage a Weex portfolio. Triggers on "trade crypto", "buy bitcoin", "DCA strategy", "grid trading", "check price", "crypto portfolio", "Weex", "automated trading", "exchange API". --- # Weex Trading Skill Trade crypto on Weex exchange through the @WEEXonTONbot Telegram bot. No additional bot fees — you only pay standard Weex exchange fees. ## Quick Start ### 1. Create a Weex Account Sign up (no KYC needed for API trading): **https://www.weex.com/en/register?vipCode=gjcr** ### 2. Create an API Key On Weex: Settings → API Management → Create Key → Enable "Spot Trading" ### 3. Connect via Telegram Open [@WEEXonTONbot](https://t.me/WEEXonTONbot) and send: ``` /connect YOUR_API_KEY YOUR_API_SECRET YOUR_PASSPHRASE ``` The bot deletes your message immediately for security. Keys are encrypted at rest. ### 4. Start Trading ``` /price BTC — Check current price /balance — View your portfolio /dca BTC 100 4h — Auto-buy $100 of BTC every 4 hours /grid ETH 2000 2500 10 500 — Grid trade ETH between $2000-$2500 /status — View active strategies & P&L /stop <strategy_id> — Stop a strategy ``` ## Available Commands | Command | Description | Example | |---------|-------------|---------| | `/price <coin>` | Check spot price, 24h stats | `/price SOL` | | `/balance` | Show all non-zero balances | `/balance` | | `/dca <symbol> <amount> <interval>` | Start DCA strategy | `/dca ETH 50 1d` | | `/grid <symbol> <low> <high> <levels> <amount>` | Start grid strategy (premium) | `/grid BTC 60000 70000 20 1000` | | `/status` | View all strategies with P&L | `/status` | | `/stop <id>` | Stop a strategy | `/stop dca_a1b2c3d4` | | `/connect` | Store API credentials | `/connect KEY SECRET PASS` | | `/disconnect` | Remove credentials, stop all | `/disconnect` | ## DCA Strategy Dollar-cost averaging — automatically buy a fixed USD amount at regular intervals. Free, no premium required. **Intervals:** `1h`, `4h`, `12h`, `1d`, `3d`, `7d` **Minimum:** $1 USDT per buy Example: `/dca BTC 100 4h` buys $100 of Bitcoin every 4 hours. ## Grid Trading (Premium) Place buy/sell orders across a price range to profit from oscillations. Requires 0.1 TON one-time payment. **Parameters:** - `symbol` — Trading pair (e.g., ETH) - `low` / `high` — Price range bounds - `levels` — Number of grid levels (3-100) - `amount` — Total USDT to invest (min $10) Example: `/grid ETH 2000 2500 10 500` creates 10 grid levels between $2000-$2500 with $500 total. ## For Agents (Programmatic Use) OpenClaw agents can interact with the bot by sending Telegram messages to @WEEXonTONbot. The typical agent workflow: 1. **Setup (once):** Guide your human to sign up at `https://www.weex.com/en/register?vipCode=gjcr`, create API keys, then send `/connect` to the bot. 2. **Price checks:** Send `/price BTC` (or any symbol) to get current market data before making decisions. 3. **Execute trades:** Use `/dca` for recurring buys or direct market orders via the Weex API. 4. **Monitor:** Send `/status` to check strategy performance. ### Direct API Access The bot runs a REST API on port 8960 for programmatic access. Agents on the same host can call: - `GET /api/health` — Health check - `GET /api/price/:symbol` — Get price data - `GET /api/strategies/:telegramId` — List strategies ### Weex API (Binance-Compatible) Weex uses a Binance-compatible REST API at `https://api-spot.weex.com`. Agents that already integrate with Binance can adapt with minimal changes: - **Auth:** HMAC-SHA256 signatures with millisecond timestamps - **Endpoints:** `/api/v3/market/ticker/price`, `/api/v3/order`, `/api/v3/account` - See `references/weex-api.md` for full endpoint documentation. ## Security - API keys are AES-encrypted before storage - `/connect` messages are auto-deleted - Never share API keys in group chats - Keys only need Spot Trading permission — never enable withdrawals ## Links - **Sign up:** https://www.weex.com/en/register?vipCode=gjcr - **Telegram bot:** https://t.me/WEEXonTONbot - **Weex API docs:** https://www.weex.com/en/api
don't have the plugin yet? install it then click "run inline in claude" again.
by @clawhub
execute crypto trades on Weex exchange through the @WEEXonTONbot Telegram bot, with no additional bot fees beyond standard Weex exchange fees. use this skill when you need to check spot prices, view portfolio balances, run dollar-cost averaging (DCA) buy strategies, execute grid trading across price ranges, or manage an active Weex trading account. works for both interactive users and programmatic OpenClaw agents.
weex account and API credentials:
telegram setup:
for grid trading:
external connection:
set up weex account (once per user or agent):
create and retrieve API credentials:
connect credentials to telegram bot:
/connect YOUR_API_KEY YOUR_API_SECRET YOUR_PASSPHRASEcheck price before trading:
/price BTCview portfolio balance:
/balancestart DCA (dollar-cost averaging) strategy:
/dca BTC 100 4h (buys $100 of BTC every 4 hours)start grid trading strategy (premium):
/grid ETH 2000 2500 10 500 (creates 10 grid levels between $2000-$2500 with $500 total)monitor active strategies:
/statusstop a running strategy:
/status output/stop dca_a1b2c3d4 or /stop grid_x9y8z7w6disconnect and remove credentials:
/disconnectif user has weex API credentials already: skip steps 1-2 and go directly to step 3. if credentials were generated for a different account or have withdrawal permissions enabled, regenerate them with spot-trading-only scope.
if DCA or grid trading fails due to insufficient balance: check /balance output. wait for pending deposits or reduce strategy amount. note that DCA buys only execute if sufficient USDT is available at buy time; if balance is too low, the buy is skipped and retried at the next interval.
if bot response times out or telegram is unreachable: retry the command after 5-10 seconds. if timeouts persist, check that @WEEXonTONbot is running and that your internet connection is stable. for agents using direct API on port 8960, verify the bot process is listening on that port.
if weex API returns 401 (unauthorized) during bot commands: credentials may be expired, revoked, or incorrectly formatted. run /disconnect and /connect again with fresh credentials from weex settings.
if weex API returns 429 (rate limit exceeded): the bot has hit the 1200 request/minute limit on that weex account. wait at least 60 seconds before retrying. if this happens repeatedly, reduce the frequency of /price checks or consolidate multiple strategy updates into single /status calls.
if grid trading premium is not paid (0.1 TON): grid commands return an error message. top up your account with 0.1 TON and retry. DCA strategies (free) will continue to work.
if strategy returns empty result set (e.g., /status shows no strategies): this is normal if no strategies are running. create a new one with /dca or /grid, or check the bot logs if you believe a strategy should exist.
if agent is running on a different host from the bot: direct API calls to port 8960 will fail. use the telegram message interface instead (/price, /balance, /dca, /grid, /status, /stop, /connect, /disconnect).
price check (/price <symbol>):
balance (/balance):
DCA strategy create (/dca <symbol> <amount> <interval>):
grid strategy create (/grid <symbol> <low> <high> <levels> <amount>):
status (/status):
stop strategy (/stop <strategy_id>):
connect (/connect <key> <secret> <pass>):
disconnect (/disconnect):
direct API responses (agents):
GET /api/health: {"status": "ok", "timestamp": "2025-01-15T12:00:00Z"}GET /api/price/:symbol: {"symbol": "BTC", "price": 65000, "