據 AlphaMoat 統計,截至 2026-10,moltrade 累計下載 9,456 次、獲 7 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 2,917 位,在「專業領域」分類(1,228 個)中排名第 303 位。
列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。
| 平台 | 累計下載 | 星標 | 評論 |
|---|---|---|---|
| ClawHub ↗ | 5910 | 7 | 1 |
| SkillHub ↗ | 9456 | 7 | — |
各平台的計數口徑不同,統計時間不一致。
該技能用於配置、回測、測試模式執行 Moltrade 交易機器人,並透過 Nostr 網路廣播加密訊號、接入交易所介面卡和策略。源材料說明金鑰與資金保留在使用者本機,雲中繼不持有私鑰,並提供 Binance Spot、Uniswap、Polymarket 等介面卡以及 ClawHub 安裝方式。源材料同時要求預設使用測試模式、切換實盤需使用者明確同意,並提示實盤與憑據處理可能影響真實資金。
資料釋出於 2026-10-27
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-10 | 9456 | — | 7 |
| 2026-09 | 6743 | — | 7 |
| 2026-08 | 6029 | +3.0% | 7 |
| 2026-07 | 5853 | +4.1% | 7 |
| 2026-06 | 5620 | +2.7% | 7 |
| 2026-05 | 5474 | — | 7 |
| 2026-03 | 5068 | — | 7 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
name: moltrade
description: Operate the Moltrade trading bot (config, backtest, test-mode runs, Nostr signal broadcast, exchange adapters, strategy integration) in OpenClaw.
metadata:
openclaw:
emoji: "🤖"
requires:
bins: ["python", "pip"]
homepage: https://github.com/hetu-project/moltrade.git
---
# Moltrade Bot Skill
**Moltrade** is a decentralized, automated trading assistant that lets you run quant strategies, share encrypted signals, and allow others to copy your trades—all securely via the Nostr network. Earn reputation and credits based on your trading performance.

**YOUR 24/7 AI TRADER ! EARNING MONEY WHILE YOU'RE SLEEPING.**
[](https://x.com/hetu_protocol) [](https://t.me/+uJrRgjtSsGw3MjZl) [](https://clawhub.ai/ai-chen2050/moltrade) [](https://www.moltrade.ai/)
---
## Advantages
**Moltrade** balances security, usability, and scalability. Key advantages include:
1. **Client-side Key self-hosting,not cloud Custody,**: All sensitive keys and credentials remain on the user's machine; the cloud relay never holds funds or private keys, minimizing custodial risk.**No access to private keys or funds.**
2. **Encrypted, Targeted Communication**: Signals are encrypted before publishing and only decryptable by intended subscribers, preserving strategy privacy and subscriber security.
3. **Lightweight Cloud Re-encryption & Broadcast**: The cloud acts as an efficient relay/re-broadcaster without storing private keys; re-encryption or forwarding techniques improve delivery reliability and reach.
4. **One-Click Copy Trading (User Friendly)**: Provides an out-of-the-box copy-trading experience for non-expert users—set up in a few steps and execute signals locally.
5. **OpenClaw Strategy Advisor**: Integrates OpenClaw as an advisory tool for automated backtests and improvement suggestions; users decide whether to adopt recommended changes.
6. **Cloud Can Be Decentralized Relayer Network**: The lightweight relay architecture allows future migration to decentralized relay networks, reducing single points of failure and improving censorship resistance.
7. **Unified Incentive (Credit) System**: A transparent, verifiable Credit mechanism rewards all participants (signal providers, followers, relay nodes), aligning incentives across the ecosystem.
## **How It Works (Simplified Flow)**
```bash
1) Run Your Bot ──→ 2) Generate & Encrypt ──→ 3) Relay ──→ 4) Copy & Execute ──→ 5) Verify & Earn
```
## Install & Init
- If you are inside **OpenClaw**, you can install directly via ClawHub:
```bash
clawhub search moltrade
clawhub install moltrade
```
- OR Clone the repo and install Python deps locally:
- `git clone https://github.com/hetu-project/moltrade.git`
- `cd moltrade/trader && pip install -r requirements.txt`
- Initialize a fresh config with the built-in wizard:
- **Security Requirement**: Always ask the human user to run `python main.py --init` themselves in a separate terminal. Do not ask for or handle their wallet private keys directly or save them to disk via agent scripts.
- For CI/agents, keep using the repo checkout; there is no separate pip package/CLI yet.
## Update Config Safely
- Backup or show planned diff before edits.
- Change only requested fields (e.g., `trading.exchange`, `trading.default_strategy`, `nostr.relays`).
- Validate JSON; keep types intact. Remind user to provide real secrets themselves.
## Run Backtest (local)
- Install deps: `pip install -r trader/requirements.txt`.
- Command: `python trader/backtest.py --config trader/config.example.json --strategy <name> --symbol <symbol> --interval 1h --limit 500`.
- Report PnL/win rate/trade count/drawdown if available. Use redacted config (no real keys).
## Start Bot (test mode)
- Ensure `config.json` exists (run `python main.py --init` if not) and `trading.exchange` set (default hyperliquid).
- Command: `python trader/main.py --config config.json --test --strategy <name> --symbol <symbol> --interval 300`.
- Watch `trading_bot.log`; never switch to live without explicit user approval.
## Run Bot (live)
- Only after validation on test mode; remove `--test` to hit mainnet.
- Command: `python trader/main.py --config config.json --strategy <name> --symbol <symbol>`.
- Double-check keys, risk limits, and symbol before starting; live mode will place real orders.
## Copy-trade Usage (live)
- Follower (mirrors leader, no strategy trading): `python trader/main.py --config trader/config.json --strategy momentum --symbol HYPE --copytrade follower`
## Broadcast Signals to Nostr
- Check `nostr` block: `nsec`, `relayer_nostr_pubkey`, `relays`, `sid`.
- `SignalBroadcaster` is wired in `main.py`. In test mode, verify `send_trade_signal` / `send_execution_report` run without errors.
## Binance Spot Support
Moltrade supports Binance Spot trading via `binance-sdk-spot`. Set `trading.exchange` to `"binance"` in your config and provide API credentials.
> **Related Skills** (raw API calls, not tied to the bot runtime):
>
> - [`binance/spot`](binance/spot/SKILL.md) — Binance Spot REST API skill: market data, order management, account info. Requires API key + secret; supports testnet and mainnet.
> - [`binance/square-post`](binance/square-post/SKILL.md) — Binance Square social platform skill: post trading insights/signals as text content via the Square OpenAPI. Requires a Square OpenAPI key.
### Install Binance SDK
```bash
pip install binance-sdk-spot
```
### Config Fields
Add a `binance` block alongside the existing `trading` block:
```json
{
"trading": {
"exchange": "binance",
"default_symbol": "BTCUSDT",
"default_strategy": "momentum"
},
"binance": {
"api_key": "your_mainnet_api_key",
"api_secret": "your_mainnet_api_secret",
"testnet_api_key": "your_testnet_api_key",
"testnet_api_secret": "your_testnet_api_secret"
}
}
```
> **Note**: Binance testnet uses keys generated separately at <https://testnet.binance.vision> (GitHub login required). Mainnet keys do **not** work on the testnet.
### Testnet (–-test)
When `--test` is passed the bot routes all requests to `testnet.binance.vision` and uses `binance.testnet_api_key` / `testnet_api_secret`. If testnet keys are absent it falls back to mainnet keys, which will cause auth errors against the testnet endpoint.
```bash
python trader/main.py --config config.json --test --strategy momentum --symbol BTCUSDT
```
### Live Trading
```bash
python trader/main.py --config config.json --strategy momentum --symbol BTCUSDT
```
### Backtest
```bash
python trader/backtest.py --config trader/config.example.json --strategy momentum --symbol BTCUSDT --interval 1h --limit 500
```
### Supported Interface
`BinanceClient` (`trader/binance_api.py`) implements the same interface as `HyperliquidClient`:
| Method | Description |
| ------------------------------------------------------ | ------------------------------------------------------------- |
| `get_candles(symbol, interval, limit)` | K-line data as `[ts, open, high, low, close, vol]` |
| `get_balance(asset)` | Free balance for an asset (default `"USDT"`) |
| `get_positions()` | Non-zero asset balances (spot has no margin positions) |
| `get_open_orders()` | All current open orders |
| `place_order(symbol, is_buy, size, price, order_type)` | LIMIT or MARKET order with auto lot-size / tick-size rounding |
| `cancel_order(order_id, symbol)` | Cancel by order ID |
| `cancel_all_orders(symbol)` | Cancel all orders (optionally for one symbol) |
| `get_ticker_price(symbol)` | Latest traded price |
## Uniswap V3 Support
Moltrade supports decentralized swaps on EVM chains using Uniswap V3 Router via `web3`. Set `trading.exchange` to `"uniswap"` in your config. Note that DEX swaps are atomic; there are no open limit orders or margin positions, and price charting requires an external oracle (currently returns empty or mock data locally).
### Install Web3
```bash
pip install web3
```
### Config Fields
Add a `uniswap` block alongside the existing `trading` block:
```json
{
"trading": {
"exchange": "uniswap",
"default_symbol": "WETH",
"default_strategy": "momentum"
},
"uniswap": {
"rpc_url": "https://eth-mainnet.g.alchemy.com/v2/...",
"private_key": "your_wallet_private_key",
"chain_id": 1,
"router_address": "0xE592427A0AEce92De3Edee1F18E0157C05861564",
"slippage_tolerance": 0.005,
"default_token_in": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"default_token_out": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
}
```
## Polymarket Support
Moltrade supports prediction markets on Polymarket via the official `py-clob-client`. Set `trading.exchange` to `"polymarket"` in your config.
### Install CLOB Client
```bash
pip install py-clob-client
```
### Config Fields
Add a `polymarket` block alongside the existing `trading` block:
```json
{
"trading": {
"exchange": "polymarket",
"default_symbol": "TOKEN_ID_HERE",
"default_strategy": "momentum"
},
"polymarket": {
"api_key": "your_polymarket_api_key",
"api_secret": "your_polymarket_api_secret",
"api_passphrase": "your_polymarket_api_passphrase",
"private_key": "your_wallet_private_key",
"chain_id": 137
}
}
```
## Add Exchange Adapter
- Implement adapter in `trader/exchanges/` matching `HyperliquidClient` interface (`get_candles`, `get_balance`, `get_positions`, `place_order`, etc.).
- Register in `trader/exchanges/factory.py` keyed by `trading.exchange`.
- Update config `trading.exchange` and rerun backtest/test-mode.
## Integrate New Strategy
- Follow `trader/strategies/INTEGRATION.md` to subclass `BaseStrategy` and register in `get_strategy`.
- Add config under `strategies.<name>`; backtest, then test-mode before live.
## Safety / Secrets
- Never print or commit private keys, mnemonics, nsec, or shared keys.
- Default to test mode; require explicit consent for live trading.
AIGC創作過程自動存證技能。自動識別創作平台與生成工具,將創作過程記錄存證並蓋有公安備案電子印章,具備可信時間戳,可以在全國電子印章互認平台核驗。
反電信網路詐騙(反詐)專家技能。當用戶描述一個疑似詐騙的場景、簡訊、電話、連結、聊天記錄、App、投資平台、招聘資訊或轉賬要求,並詢問「這是不是詐騙」「要不要轉錢」「怎麼止損」「錢還能不能追回來」,或需要識別詐騙話術、拆解騙局結構、生成報案材料與取證清單時使用。同時在對話中主動嗅探「轉賬、驗證碼、螢幕共享、安全帳戶、保證金、刷單、穩賺、百萬保障、跑分」等風險詞並插入預警,即使對方並未詢問反詐。適用場景還包括:家屬求助勸阻疑似被騙的親人、企業/銀行/支付機構/網際網路平台做涉詐帳戶識別與交易監測規則、涉詐資金鍊(跑分、卡四件套、GOIP)分析、反詐合規與員工培訓、反詐實戰演練。
電子印章公安備案、全網互認,實現所有格式檔案電子簽章與影片確權,覆蓋全國所有CA廠商自2005年以來的全量電子簽章資料,無論由哪個地區、哪套系統、哪家CA機構簽發,均可精準校驗與互認。
包拯.Skills你身邊的專家律師團 — 專業法律諮詢 + 要素式/通用起訴狀起草 + 刑事專項材料輔助 + 法條分析與法規檢索。flk.npc.gov.cn API即時法條優先,不可用時AI知識庫降級兜底,**法條來源按四檔標註可核驗(已核驗-flk API / 已核驗-單源 / 已引-離線庫 / 未核驗-模型生成),交付末尾附法條/事實/金額/程式分項置信度**;以22類法律領域覆蓋矩陣約束路由邊界;支援35個起訴狀模板、5類刑事專項材料輔助;內建Logic Doctor邏輯自檢、訴訟時效追蹤及10類異常容錯處理(含連續失敗熔斷);漸進式意圖收斂協議(3輪狀態機);混合意圖自動任務拆解(按依賴排序→合併→順序執行);含反模式清單與危機干預出口(自殺/家暴/未成年人侵害先於一切法律分析)。非標準案由自動使用通用模板。
律師AI辦案工作臺:從接案到結案全流程提效——案件分析、要件梳理、文書初稿、證據質證、法庭攻防演練、賠償與費用計算、期限提醒、復盤歸檔;覆蓋民事、刑事、勞動、非訴、破產、執行、行政、仲裁八大領域,111 個專家技能;法條可核驗、結論可複核。
包拯.Skills你身邊的專家律師團 — 專業法律諮詢 + 要素式/通用起訴狀起草 + 刑事專項材料輔助 + 法條分析與法規檢索。flk.npc.gov.cn API即時法條優先,不可用時AI知識庫降級兜底,**法條來源按四檔標註可核驗(已核驗-flk API / 已核驗-單源 / 已引-離線庫 / 未核驗-模型生成),交付末尾附法條/事實/金額/程式分項置信度**;以22類法律領域覆蓋矩陣約束路由邊界;支援35個起訴狀模板、5類刑事專項材料輔助;內建Logic Doctor邏輯自檢、訴訟時效追蹤及10類異常容錯處理(含連續失敗熔斷);漸進式意圖收斂協議(3輪狀態機);混合意圖自動任務拆解(按依賴排序→合併→順序執行);含反模式清單與危機干預出口(自殺/家暴/未成年人侵害先於一切法律分析)。非標準案由自動使用通用模板。
基於技術交底書生成專利申請初稿。技術交底書內容至少包含技術問題、解決方案、技術效果。內建的推理、視覺、多模態、數學、函式、模擬等模型底座均為國產,國外模型0使用,可放心食用。 近期安裝量暴增感謝支援,不少私信希望能力提升但這已是國產極限,我們不必追求最強技能,達到及格即可。學習交流歡迎聯絡微訊號A26dian4
露禾論文寫作助手(免費版):一句話生成引用可溯源、不編造的專業學術論文,按國標 GB/T 7714 插入真實文獻引用,中英文 3000/5000/8000 字,一鍵匯出 Word。說「寫論文 / 幫我寫論文」即可使用。
資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。