Moltrade 1.0.9
v2Operate the Moltrade trading 机器人 (config, backtest, test-mode 运行s, Nostr 签名al broadcast, exchange adapters, strategy integration) in OpenClaw.
运行时依赖
安装命令
点击复制技能文档
Moltrade 机器人 技能
Moltrade is a decentralized, automated trading 助手 that lets you 运行 quant strategies, 分享 加密ed 签名als, and allow others to copy your trades—all 安全ly via the Nostr network. Earn reputation and credits based on your trading performance.
YOUR 24/7 AI TRADER ! EARNING MONEY WHILE YOU'RE SLEEPING.
Advantages
Moltrade balances security, usability, and scalability. Key advantages include:
命令行工具ent-side Key self-hosting,not cloud Custody,: All sensitive keys and 凭证s remAIn on the user's machine; the cloud relay never holds funds or private keys, minimizing custodial risk.No 访问 to private keys or funds. 加密ed, Tar获取ed Communication: 签名als are 加密ed before publishing and only 解密able by intended subscribers, preserving strategy 隐私 and subscriber security. Lightweight Cloud Re-加密ion & Broadcast: The cloud acts as an efficient relay/re-broadcaster without storing private keys; re-加密ion or forwarding techniques improve delivery reliability and reach. One-命令行工具ck Copy Trading (User Friendly): Provides an out-of-the-box copy-trading experience for non-expert users—设置 up in a few steps and 执行 签名als locally. OpenClaw Strategy Advisor: Integrates OpenClaw as an advisory 工具 for automated backtests and improvement suggestions; users decide whether to adopt recommended changes. Cloud Can Be Decentralized Relayer Network: The lightweight relay architecture allows future 迁移 to decentralized relay networks, reducing single points of 失败 and improving censorship resistance. Unified Incentive (Credit) 系统: A transparent, verifiable Credit mechanism rewards all participants (签名al 提供者s, followers, relay nodes), aligning incentives across the eco系统. How It Works (Simplified Flow) 1) 运行 Your 机器人 ──→ 2) 生成 & 加密 ──→ 3) Relay ──→ 4) Copy & 执行 ──→ 5) 验证 & Earn
安装 & Init If you are inside OpenClaw, you can 安装 directly via ClawHub: ClawHub 搜索 moltrade ClawHub 安装 moltrade
OR Clone the repo and 安装 Python deps locally: git clone https://github.com/hetu-project/moltrade.git cd moltrade/trader && pip 安装 -r requirements.txt 初始化 a fresh config with the built-in wizard: Security Requirement: Always ask the human user to 运行 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 代理 scripts. For CI/代理s, keep using the repo 检查out; there is no separate pip package/命令行工具 yet. 更新 Config Safely 备份 or show planned diff before edits. Change only 请求ed fields (e.g., trading.exchange, trading.default_strategy, nostr.relays). 验证 JSON; keep types intact. Remind user to provide real secrets themselves. 运行 Backtest (local) 安装 deps: pip 安装 -r trader/requirements.txt. Command: python trader/backtest.py --config trader/config.example.json --strategy --symbol --interval 1h --limit 500. 报告 PnL/win rate/trade count/drawdown if avAIlable. Use redacted config (no real keys). 启动 机器人 (test mode) Ensure config.json exists (运行 python mAIn.py --init if not) and trading.exchange 设置 (default hyperliquid). Command: python trader/mAIn.py --config config.json --test --strategy --symbol --interval 300. Watch trading_机器人.记录; never switch to live without explicit user 应用roval. 运行 机器人 (live) Only after 验证 on test mode; 移除 --test to hit mAInnet. Command: python trader/mAIn.py --config config.json --strategy --symbol . Double-检查 keys, risk limits, and symbol before 启动ing; 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 签名als to Nostr 检查 nostr block: nsec, relayer_nostr_pubkey, relays, sid. 签名alBroadcaster is wired in mAIn.py. In test mode, 验证 发送_trade_签名al / 发送_execution_报告 运行 without errors. Binance Spot Support
Moltrade supports Binance Spot trading via binance-sdk-spot. 设置 trading.exchange to "binance" in your config and provide API 凭证s.
Related 技能s (raw API calls, not tied to the 机器人 运行time):
binance/spot — Binance Spot REST API 技能: market data, order management, account 信息. Requires API key + secret; supports testnet and mAInnet. binance/square-post — Binance Square social 平台 技能: post trading insights/签名als as text content via the Square OpenAPI. Requires a Square OpenAPI key. 安装 Binance SDK pip 安装 binance-sdk-spot
Config Fields
添加 a binance block alongside the existing trading block:
{ "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": "yo