Skip to content

Your 24/7 AI trader. Earning money while you’re sleeping.

License

Notifications You must be signed in to change notification settings

hetu-project/moltrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦉 Moltrade — The Automated AI Trading Assistant

Moltrade

YOUR 24/7 AI TRADER ! EARNING MONEY WHILE YOU'RE SLEEPING.

Twitter Follow Telegram ClawHub Website


Overview

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.

Core Advantages

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.

How It Works (Simplified Flow)

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

Getting Started

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
  1. Clone & Install:

    git clone https://github.com/hetu-project/moltrade.git
    cd moltrade/trader
    pip install -r requirements.txt  # Installs nostr, hyperliquid-py, etc.
  2. Initialize Configuration:

    python main.py --init

    This generates config.json with prompts for your Hyperliquid API keys and wallet details. Important: Never commit this file or share your private keys.

  3. Test on Testnet:

    python main.py --config config.json --test --strategy test --symbol HYPE

    Verify configuration and strategy behavior without real trades.

  4. 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.

Docker Setup

For Relayer:

cd docker && docker compose -f docker-compose.relayer.yml up --build

For Trader:

cd docker && docker compose -f docker-compose.trader.yml up

Architecture & Integration with Your Ecosystem

  • Core (MVP): This moltrade-bot and 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.

Important Disclaimer

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.

About

Your 24/7 AI trader. Earning money while you’re sleeping.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors