- **clp_manager.py**: Renamed from 'uniswap_manager.py'. Standardized logic for Uniswap V3 liquidity provision. - **clp_hedger.py**: Renamed from 'unified_hedger.py'. Consolidated hedging logic including Delta Calculation fixes, EAC (Edge Avoidance), and Fishing order implementation. - **Cleanup**: Removed legacy 'aerodrome' folder and tools. - **Monitoring**: Added Telegram monitoring scripts. - **Config**: Updated gitignore to exclude market data CSVs.
37 lines
855 B
Python
37 lines
855 B
Python
import os
|
|
import sys
|
|
import json
|
|
from dotenv import load_dotenv
|
|
from hyperliquid.info import Info
|
|
from hyperliquid.utils import constants
|
|
|
|
# Load env
|
|
load_dotenv()
|
|
address = os.environ.get("MAIN_WALLET_ADDRESS")
|
|
|
|
if not address:
|
|
print("No address found")
|
|
sys.exit(1)
|
|
|
|
info = Info(constants.MAINNET_API_URL, skip_ws=True)
|
|
|
|
try:
|
|
print(f"Fetching fills for {address}...")
|
|
fills = info.user_fills(address)
|
|
|
|
if fills:
|
|
print(f"Found {len(fills)} fills. Inspecting first one:")
|
|
print(json.dumps(fills[0], indent=2))
|
|
|
|
# Check for closedPnl
|
|
if 'closedPnl' in fills[0]:
|
|
print("✅ 'closedPnl' field FOUND!")
|
|
else:
|
|
print("❌ 'closedPnl' field NOT FOUND.")
|
|
|
|
else:
|
|
print("No fills found.")
|
|
|
|
except Exception as e:
|
|
print(f"Error: {e}")
|