Skip to content

Commit 0eda9b5

Browse files
committed
feat: update README and SKILL.md with installation instructions and feature descriptions
fix: modify event_router to process execution reports and add relayer public key to status response
1 parent 09b1cdb commit 0eda9b5

File tree

5 files changed

+90
-5
lines changed

5 files changed

+90
-5
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
<strong>YOUR 24/7 AI TRADER ! EARNING MONEY WHILE YOU'RE SLEEPING.</strong>
1414
</p>
1515

16+
[![Twitter Follow](https://img.shields.io/twitter/follow/hetu_protocol?style=social&label=Follow)](https://x.com/hetu_protocol)
17+
[![Telegram](https://img.shields.io/badge/Telegram-Hetu_Builders-blue)](https://t.me/+uJrRgjtSsGw3MjZl)
18+
[![ClawHub](https://img.shields.io/badge/ClawHub-Read-orange)](https://clawhub.ai/ai-chen2050/moltrade)
19+
[![Website](https://img.shields.io/badge/Website-moltrade.ai-green)](https://www.moltrade.ai/)
20+
1621
</div>
1722
</div>
1823
</center>
@@ -82,6 +87,13 @@
8287

8388
**Installation & Setup**
8489

90+
If you are inside **OpenClaw**, you can install directly via ClawHub:
91+
92+
```bash
93+
clawhub search moltrade
94+
clawhub install moltrade
95+
```
96+
8597
1. **Clone & Install**:
8698
```bash
8799
git clone https://github.com/hetu-project/moltrade.git

relayer/src/api/rest_api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ async fn status(State(state): State<AppState>) -> Json<serde_json::Value> {
138138
"status": format!("{:?}", status)
139139
})
140140
}).collect::<Vec<_>>(),
141+
"relayer_nostr_pubkey": state.platform_pubkey,
141142
"deduplication_engine": {
142143
"bloom_filter_size": deque_status.bloom_filter_size,
143144
"lru_cache_size": deque_status.lru_cache_size,

relayer/src/core/event_router.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ impl EventRouter {
255255
}
256256

257257
async fn handle_copytrade_fanout(&self, event: &Event) -> Result<()> {
258-
// Short-circuit heartbeat-like events: no decrypt/fanout required
259-
if matches!(event.kind.as_u16(), KIND_HEARTBEAT | KIND_EXECUTION_REPORT) {
258+
// Short-circuit only heartbeats: execution reports must be processed for DB writes
259+
if event.kind.as_u16() == KIND_HEARTBEAT {
260260
return Ok(());
261261
}
262262

skills/moltrade/SKILL.md

Lines changed: 66 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: moltrade
3-
description: Operate the Moltrade trading bot (config, backtest, test-mode runs, Nostr signal broadcast, exchange adapters, strategy integration) in OpenClaw.
3+
description: **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.
44
metadata:
55
openclaw:
66
emoji: "🤖"
@@ -11,11 +11,70 @@ metadata:
1111

1212
# Moltrade Bot Skill
1313

14-
Paths are repo-root relative. Keep actions deterministic and redact secrets.
14+
Operate the Moltrade trading bot (config, backtest, test-mode runs, Nostr signal broadcast, exchange adapters, strategy integration) in OpenClaw.
15+
16+
<center>
17+
18+
<div align="center">
19+
<picture>
20+
<source media="(prefers-color-scheme: light)" srcset="../../assets/moltrade-black.png">
21+
<img src="../../assets/moltrade-white.png" alt="Moltrade" width="600">
22+
</picture>
23+
24+
<div style="text-align: center; font-weight: bold;">
25+
<p align="center">
26+
<strong>YOUR 24/7 AI TRADER ! EARNING MONEY WHILE YOU'RE SLEEPING.</strong>
27+
</p>
28+
29+
[![Twitter Follow](https://img.shields.io/twitter/follow/hetu_protocol?style=social&label=Follow)](https://x.com/hetu_protocol)
30+
[![Telegram](https://img.shields.io/badge/Telegram-Hetu_Builders-blue)](https://t.me/+uJrRgjtSsGw3MjZl)
31+
[![ClawHub](https://img.shields.io/badge/ClawHub-Read-orange)](https://clawhub.ai/ai-chen2050/moltrade)
32+
[![Website](https://img.shields.io/badge/Website-moltrade.ai-green)](https://www.moltrade.ai/)
33+
34+
</div>
35+
</div>
36+
</center>
37+
38+
---
39+
40+
## Core Features
41+
42+
**Moltrade** balances security, usability, and scalability. Key advantages include:
43+
44+
- **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.**
45+
- **Encrypted, Targeted Communication**: Signals are encrypted before publishing and only decryptable by intended subscribers, preserving strategy privacy and subscriber security.
46+
- **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.
47+
- **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.
48+
- **OpenClaw Strategy Advisor**: Integrates OpenClaw as an advisory tool for automated backtests and improvement suggestions; users decide whether to adopt recommended changes.
49+
- **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.
50+
- **Unified Incentive (Credit) System**: A transparent, verifiable Credit mechanism rewards all participants (signal providers, followers, relay nodes), aligning incentives across the ecosystem.
51+
52+
## **How It Works (Simplified Flow)**
53+
54+
```mermaid
55+
graph LR
56+
A["1) Run Your Bot"]
57+
B["2) Generate & Encrypt"]
58+
C["3) Relay"]
59+
D["4) Copy & Execute"]
60+
E["5) Verify & Earn"]
61+
62+
A ---> B
63+
B ---> C
64+
C ---> D
65+
D ---> E
66+
```
1567

1668
## Install & Init
1769

18-
- Clone the repo and install Python deps locally (code is required for strategies, nostr, and CLI):
70+
- If you are inside **OpenClaw**, you can install directly via ClawHub:
71+
72+
```bash
73+
clawhub search moltrade
74+
clawhub install moltrade
75+
```
76+
77+
- OR & Clone the repo and install Python deps locally (code is required for strategies, nostr, and CLI):
1978
- `git clone https://github.com/hetu-project/moltrade.git`
2079
- `cd moltrade/trader && pip install -r requirements.txt`
2180
- Initialize a fresh config with the built-in wizard (no trading):
@@ -67,3 +126,7 @@ Paths are repo-root relative. Keep actions deterministic and redact secrets.
67126

68127
- Never print or commit private keys, mnemonics, nsec, or shared keys.
69128
- Default to test mode; require explicit consent for live trading.
129+
130+
## Disclaimer
131+
132+
Trading cryptocurrencies and derivatives carries significant risk. Moltrade is a tool for automation and social trading. You are solely responsible for any financial losses. Past performance is not indicative of future results.

trader/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@ Hyperliquid by default, but the bot is built to support additional venues (e.g.,
1212

1313
## Install
1414

15+
If you are inside **OpenClaw**, you can install directly via ClawHub:
16+
17+
```bash
18+
clawhub search moltrade
19+
clawhub install moltrade
20+
```
21+
22+
Otherwise, clone the repo and install dependencies:
1523
```bash
24+
git clone https://github.com/hetu-project/moltrade.git
1625
cd trader
1726
pip install -r requirements.txt
1827
```

0 commit comments

Comments
 (0)