Skip to content

netzpirat/openclaw-trading-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

592 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐾 OpenClaw — AI Trading Agent for Hyperliquid

OpenClaw is an AI-powered trading agent that uses LLMs to analyze real-time market data, generate trading decisions, and execute trades on the Hyperliquid decentralized exchange.

Built for automation, low-latency execution, and strategy experimentation, OpenClaw continuously monitors markets, evaluates technical indicators, and manages positions with risk controls.


🚀 Features

  • 🤖 LLM-driven trading decisions (multi-model support)
  • 📊 Real-time technical analysis via TAAPI
  • ⚡ Automated trade execution on Hyperliquid
  • 🔁 Continuous trading loop with configurable intervals
  • 🛡️ Built-in risk management (TP / SL logic)
  • 🔌 Tool-calling support for dynamic indicator queries
  • 📡 Lightweight API for logs & trade diary

📚 Table of Contents


⚠️ Disclaimer

This project is experimental and unaudited. There is no guarantee of profitability. Use at your own risk.


🏗️ Architecture

See full documentation: → docs/ARCHITECTURE.md

Architecture diagram:

Recording.2026-05-03.213052.mp4

📡 Live Agents

  • GPT-5 Pro — Portfolio + Logs (active)
  • DeepSeek R1 — paused
  • Grok 4 — paused

(Replace with your updated endpoints if needed)


💡 Trading Stack (Recommended Tools & Infrastructure)

OpenClaw is designed to integrate with a high-performance stack including trading bots, MEV tools, analytics platforms, and low-latency infrastructure.

Using the right stack improves:

  • ⚡ Execution speed
  • 📈 Alpha discovery
  • 🎯 Trade accuracy

⚡ Execution Layer

Axiom Trade

  • Fast on-chain execution
  • Reduced fees (10–30%) → Access

Odin Bot

  • Automated strategies
  • Low-latency execution → Access

Bloom (Telegram Bot)

  • Ultra-fast trading interface → Launch

📊 Analytics & Alpha

GMGN

  • Smart money tracking
  • Early token discovery → Explore

🧠 Advanced Platforms

Padre

  • Advanced execution tools → Open

Polymarket

  • Prediction-based trading → Try

🖥️ Infrastructure

Low-Latency VPS (New York Recommended)

  • Faster transaction propagation
  • Better execution reliability
  • Ideal for bots & MEV strategies

Get VPS


📁 Project Structure

src/
├── main.py                  # Entry point / trading loop
├── agent/
│   └── decision_maker.py   # LLM decision engine
├── indicators/
│   └── taapi_client.py     # TAAPI integration
├── trading/
│   └── hyperliquid_api.py  # Trade execution
└── config_loader.py        # Env config loader

⚙️ Environment Setup

Create .env (see .env.example):

TAAPI_API_KEY=
HYPERLIQUID_PRIVATE_KEY=
OPENROUTER_API_KEY=
LLM_MODEL=

Optional:

OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
API_PORT=3000

▶️ Usage

poetry run python src/main.py --assets BTC ETH --interval 1h

🌐 Local API

  • /diary → trade history
  • /logs → runtime logs

🧠 Tool Calling

Supports dynamic indicator fetching via TAAPI:

  • EMA
  • RSI
  • Custom indicators

☁️ Deployment (EigenCloud)

Run inside a TEE (Trusted Execution Environment) for secure key handling.

Install

curl -fsSL https://eigenx-scripts.s3.us-east-1.amazonaws.com/install-eigenx.sh | bash

Deploy

eigenx app deploy

Monitor

eigenx app logs --watch

⚠️ Notes

  • Tools listed are optional
  • Performance depends on latency + strategy quality
  • Always test before scaling

About

trading agent

Topics

Resources

Stars

447 stars

Watchers

13 watching

Forks

Packages

 
 
 

Contributors