A CLI tool that retrieves BTC position and pending orders from a Hyperliquid account, then scales the orders proportionally based on your BTC position size.
- Fetches real-time BTC position data from Hyperliquid
- Retrieves all pending BTC orders
- Validates position direction (long/short) matches
- Scales orders proportionally based on your position size
- Displays scaled orders sorted by price
- Shows position summary with average entry price and capital required
pip install -r requirements.txtOr using make:
make installmake runOr directly:
python scale_orders.pyThe tool will prompt you for:
- Your position direction (long or short)
- Your BTC position size
Set a custom Hyperliquid address via environment variable:
# Windows
set HYPERLIQUID_ADDRESS=0x... && python scale_orders.py
# Linux/Mac
HYPERLIQUID_ADDRESS=0x... python scale_orders.pyDefault address: 0xdae4df7207feb3b350e4284c8efe5f7dac37f637
make testMIT License - see LICENSE file.