85 lines
2.3 KiB
Markdown
85 lines
2.3 KiB
Markdown
# CLP Hedger - Working Configuration Summary
|
||
|
||
## Current Setup Status
|
||
✅ **ACTIVE**: Hedger is running and successfully trading on Hyperliquid
|
||
|
||
## Position Configuration (`hedge_status.json`)
|
||
```json
|
||
{
|
||
"type": "MANUAL",
|
||
"token_id": 5147464,
|
||
"status": "OPEN",
|
||
"hedge_enabled": true,
|
||
"coin_symbol": "ETH",
|
||
"entry_price": 3332.66,
|
||
"range_lower": 2844.11,
|
||
"range_upper": 3477.24,
|
||
"target_value": 6938.95,
|
||
"amount0_initial": 0.45,
|
||
"amount1_initial": 5439.23,
|
||
"static_long": 0.0,
|
||
"timestamp_open": 1765575924,
|
||
"timestamp_close": null
|
||
}
|
||
```
|
||
|
||
## Trading Parameters
|
||
- **Coin**: ETH
|
||
- **Leverage**: 5x (Cross)
|
||
- **Entry Price**: $3,332.66
|
||
- **Price Range**: $2,844.11 - $3,477.24
|
||
- **Position Size**: 0.45 ETH
|
||
- **Static Long**: 0% (fully hedged)
|
||
- **Target Value**: $6,938.95
|
||
|
||
## Hedger Configuration (`clp_hedger.py`)
|
||
- **Check Interval**: 30 seconds
|
||
- **Rebalance Threshold**: 0.15 ETH
|
||
- **Price Buffer**: 0.2% (prevents churn)
|
||
- **Time Buffer**: 120 seconds (between mode switches)
|
||
- **Status File**: `hedge_status.json`
|
||
|
||
## Strategy Parameters
|
||
- **Entry WETH**: 0.45 ETH
|
||
- **Low Range**: $2,844.11
|
||
- **High Range**: $3,477.24
|
||
- **Start Price**: $3,332.66
|
||
- **Static Long Ratio**: 0.0 (0% static long exposure)
|
||
|
||
## Gap Recovery Settings
|
||
- **Current Mode**: NORMAL (100% hedge)
|
||
- **Gap Recovery**: Enabled
|
||
- **Recovery Target**: Entry price + (2 × Gap)
|
||
- **Price Buffer**: 0.2%
|
||
- **Mode Switch Delay**: 120 seconds
|
||
|
||
## Environment
|
||
- **Wallet**: 0xcb262ceaae5d8a99b713f87a43dd18e6be892739
|
||
- **Network**: Hyperliquid Mainnet
|
||
- **Logging Level**: Normal
|
||
- **Virtual Environment**: Active
|
||
|
||
## Last Status
|
||
- ✅ API Connection: Working
|
||
- ✅ Price Feed: Active
|
||
- ✅ Position Tracking: Enabled
|
||
- ✅ Hedge Logic: Operational
|
||
- ✅ Order Execution: Successful
|
||
|
||
## Key Files
|
||
- `clp_hedger.py`: Main hedger bot
|
||
- `hedge_status.json`: Position configuration
|
||
- `.env`: API credentials (not shown for security)
|
||
|
||
## Monitoring
|
||
The hedger runs a continuous loop every 30 seconds, checking:
|
||
1. Current market price
|
||
2. Position size deviation
|
||
3. Gap recovery conditions
|
||
4. Funding rate opportunities
|
||
5. Automatic rebalancing needs
|
||
|
||
## Operations
|
||
- **Normal Mode**: Maintains 100% hedge against ETH exposure
|
||
- **Recovery Mode**: Reduces hedge to 0% when gap recovery conditions are met
|
||
- **Auto-Rebalancing**: Triggers when position deviates by >0.15 ETH |