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.
Moltrade balances security, usability, and scalability. Key advantages include:
- 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.
- Encrypted, Targeted Communication: Signals are encrypted before publishing and only decryptable by intended subscribers, preserving strategy privacy and subscriber security.
- 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.
- 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.
- OpenClaw Strategy Advisor: Integrates OpenClaw as an advisory tool for automated backtests and improvement suggestions; users decide whether to adopt recommended changes.
- Local Hot-Reload of Profitable Strategies: Strategy code and parameters can be iterated locally and take effect immediately, so performance improvements are under user control.
- 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.
- Unified Incentive (Credit) System: A transparent, verifiable Credit mechanism rewards all participants (signal providers, followers, relay nodes), aligning incentives across the ecosystem.
|
1) Run Your Bot - Clone, configure local bot with your Hyperliquid keys |
| ↓ |
|
2) Generate & Encrypt - Bot creates trade signal, encrypts for subscribers |
| ↓ |
|
3) Relay - Moltrade relayer (super node) picks up and re-broadcasts |
| ↓ |
|
4) Copy & Execute - Subscribers decrypt signal and execute trades locally |
| ↓ |
|
5) Verify & Earn - Bots submit tx hash → on-chain verify → update credits |
Prerequisites
- Python 3.10+
- A Hyperliquid account (Testnet recommended for initial use)
- A Nostr key pair (generated automatically by the bot)
Installation & Setup
If you are inside OpenClaw, you can install directly via ClawHub:
clawhub search moltrade
clawhub install moltrade-
Clone & Install:
git clone https://github.com/hetu-project/moltrade.git cd moltrade/trader pip install -r requirements.txt # Installs nostr, hyperliquid-py, etc.
-
Initialize Configuration:
python main.py --init
This generates
config.jsonwith prompts for your Hyperliquid API keys and wallet details. Important: Never commit this file or share your private keys. -
Test on Testnet:
python main.py --config config.json --test --strategy test --symbol HYPEVerify configuration and strategy behavior without real trades.
-
Run Live Trading: Once confident in your setup, switch to mainnet:
python main.py --config config.json --strategy momentum --symbol HYPE
⚠️ Ensure API keys, risk settings, and strategy parameters are correct before live trading. The bot will start, generate a Nostr key pair for communication, and await configuration via its local API or admin panel.
For Relayer:
cd docker && docker compose -f docker-compose.relayer.yml up --buildFor Trader:
cd docker && docker compose -f docker-compose.trader.yml up- Core (MVP): This
moltrade-botand the cloud relay form the self-sustaining MVP. - OpenClaw/MoltBot (Future): In the future, you can use OpenClaw or MoltBot as an external advisor. You can manually ask it to review or optimize your strategy logic, then update your bot's
config.json. This keeps the core trading system simple and robust. - Prakasa Network (Roadmap): For users who don't want to run their own machine, future versions could offer to host this bot on the decentralized Prakasa compute network.
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.