A Python-based market making system for the Hyperliquid exchange using CCXT.
- Connects to Hyperliquid exchange via CCXT
- Implements basic market making strategy with configurable parameters
- Multi-layer order placement for better liquidity provision
- Risk management including position limits, stop loss, and take profit
- Adapts to market conditions by adjusting spread based on volatility and order book imbalance
- Supports order book analysis for smart pricing
- Configurable via JSON configuration file
- Environment variable support for secure credential management
- Python 3.8+
- Required packages:
- ccxt
- python-dotenv
- aiohttp
- asyncio
- pandas (for data analysis)
- Clone this repository:
git clone https://github.com/yourusername/hyperliquid-market-maker.git
cd hyperliquid-market-maker- Install the required dependencies:
pip install -r requirements.txt- Create a
.envfile from the example template:
cp .env.example .env- Edit the
.envfile with your Hyperliquid API credentials:
HYPERLIQUID_WALLET=your_api_key_here
HYPERLIQUID_SECRET_KEY=your_api_secret_here
- Review and modify the
config.jsonfile to adjust your trading parameters.
The market maker is configured through a JSON configuration file that includes:
- Exchange settings: Connection details for Hyperliquid
- Trading parameters: Symbol, order sizes, position limits, etc.
- Market making parameters: Spread percentages, update intervals, layers
- Risk management: Stop loss, take profit, max drawdown, etc.
- Technical indicators: Settings for EMA, RSI, Bollinger Bands
- Development settings: Logging, backtesting options
Refer to the config.json file for all available options and descriptions.
Run the market maker:
python run_market_maker.pyFor testnet (paper trading):
# Ensure USE_TESTNET=true in your .env file
python run_market_maker.py