Home
Softono
openclaw-trading-agent

openclaw-trading-agent

Open source Python
445
Stars
51
Forks
6
Issues
13
Watchers
1 month
Last Commit

About openclaw-trading-agent

trading agent

Platforms

Web Self-hosted

Languages

Python

Links

🐾 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:

https://github.com/user-attachments/assets/d8f5110a-6401-42bd-b5f5-b154c7b0a418


πŸ“‘ 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